paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c65a65e34ffb523e635d5a8414bc6cab5c6b1c92
parent b5690795ee9961ae671010f6603cfe00d656239d
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Fri, 17 Jul 2020 23:48:18 -0400

Publish new blog post

Diffstat:
Mpages/blog.md | 1+
Apages/blog/my-attempts-to-fix-my-mastodon-instance.md | 73+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpages/home.md | 4++--
Mpublic/feeds/sitewide-feed.xml | 33+++++++++++++++++++++++++++++++++
Apublic/img/mastodon-error-thumb.png | 0
Apublic/img/mastodon-error.png | 0
Mpublic/sitemap.xml | 1+
7 files changed, 110 insertions(+), 2 deletions(-)

diff --git a/pages/blog.md b/pages/blog.md @@ -27,6 +27,7 @@ href="https://social.paritybit.ca/@jbauer">Mastodon</a>. ### 2020 <ul> + <li>2020-07-17 <a href="blog/my-attempts-to-fix-my-mastodon-instance">My Attempts to Fix My Mastodon Instance</a></li> <li>2020-07-14 <a href="blog/debian-with-btrfs">Installing Debian 10 Buster with Encrypted LVM and btrfs Subvolumes</a></li> <li>2020-07-13 <a href="blog/using-rm-with-trash">Using the "rm" Command with Trash</a></li> <li>2020-07-13 <a href="blog/new-desktop-checklist">New Desktop Checklist</a></li> diff --git a/pages/blog/my-attempts-to-fix-my-mastodon-instance.md b/pages/blog/my-attempts-to-fix-my-mastodon-instance.md @@ -0,0 +1,73 @@ +## My Attempts to Fix My Mastodon Instance + +[//]: # "I've been having strange issues with my Mastodon instance but every attempt to diagnose, fix, or understand the issue has been met with failure. Here are the issues I've encountered and what I've tried to fix them." + +[//]: # "main.min.css" + +[//]: # + +<div class="byline"> +<b>Written By:</b> Jake Bauer | + <b>Posted:</b> 2020-07-17 | + <b>Last Updated:</b> 2020-07-17 +</div> + +Self-hosting Mastodon was going so well until about a month-and-a-half ago when, +seemingly out of nowhere, I started getting HTTP error 422 in response to any +action I took to update my profile or instance from the web UI. I could still +update things like my profile description using the Tusky mobile app, yet it +wouldn't work in the web interface. I also couldn't even log out, as clicking +the log out button gave me the exact same error page and HTTP response: + +<figure> + <a href="/img/mastodon-error.png"><img src="/img/mastodon-error-thumb.png" + alt="A mastodon error page with the text 'Security verification failed. Are + you blocking cookies?'."/></a> +</figure> + +I tried fiddling with the server, re-compiling the UI pages, updating it and its +dependencies, all to no avail. Just today I spent about 4 hours (mostly just +waiting for things to backup, copy, transfer, etc) standing up a new mastodon +server and migrating the database over but, although the back-end seemed to work +just fine, the front-end kept giving me webpack errors that I have no idea how +to fix: + +``` +Jul 18 02:03:31 eris bundle[901]: [f0b3cdd5-a423-43ac-beba-9484b5100b10] method=GET path=/ format=html controller=HomeController action=index status=302 duration=22.14 view=0.00 db=17.60 location=https://social.paritybit.ca/@jbauer +Jul 18 02:03:31 eris bundle[902]: [7187785d-5345-413e-a08a-3854c43a0e94] method=GET path=/@jbauer format=html controller=AccountsController action=show status=500 error='ActionView::Template::Error: Webpacker can't find public.js in /home/mastodon/live/public/packs/manifest.json. Possible causes: +Jul 18 02:03:31 eris bundle[902]: 1. You want to set webpacker.yml value of compile to true for your environment +Jul 18 02:03:31 eris bundle[902]: unless you are using the `webpack -w` or the webpack-dev-server. +Jul 18 02:03:31 eris bundle[902]: 2. webpack has not yet re-run to reflect updates. +Jul 18 02:03:31 eris bundle[902]: 3. You have misconfigured Webpacker's config/webpacker.yml file. +Jul 18 02:03:31 eris bundle[902]: 4. Your webpack configuration is not creating a manifest. +Jul 18 02:03:31 eris bundle[902]: Your manifest contains: +Jul 18 02:03:31 eris bundle[902]: { +Jul 18 02:03:31 eris bundle[902]: } +Jul 18 02:03:31 eris bundle[902]: ' duration=233.72 view=0.00 db=9.78 +Jul 18 02:03:31 eris bundle[902]: [7187785d-5345-413e-a08a-3854c43a0e94] +``` + +I've tried re-compiling the front-end assets, checking the content of the stated +`webpacker.yml` and the `manifest.json` files (they looked fine to my untrained +eye and contained the things Webpacker says it can't find), and even things like +what was suggested [here on +StackOverflow](https://stackoverflow.com/questions/58520418). Nothing worked. + +I'm kind of getting fed up with the technologies used by Mastodon. Not only does +my server eat RAM because of the use of things like Ruby and Node.js, it feels +very duct-taped together and difficult to diagnose without being intimately +familiar with either Mastodon's workings or Ruby environments in general. I +appreciate the efforts of the Mastodon developers in creating this software, but +I don't think the technologies used are particularly good. + +For this reason, unless I can figure out how to solve the above problems, I will +be standing up a Pleroma instance (it's basically like Mastodon but doesn't eat +as much RAM and only externally requires a database, as opposed to a whole suite +of web technologies, among other things). The migration won't be quick and I'll +probably lose a few followers along the way, but I think it'll be worth it in +the end to move to a platform that won't be as frustrating to diagnose or fix. + +_This is my seventy-fourth post for the +[#100DaysToOffload](https://social.paritybit.ca/tags/100DaysToOffload) +challenge. You can learn more about this challenge over at +[https://100daystooffload.com](https://100daystooffload.com)._ diff --git a/pages/home.md b/pages/home.md @@ -18,6 +18,8 @@ This site will soon™️ be available over Gopher and Gemini. <a class="rss-icon" href="/feeds/sitewide-feed.xml"> <img src="/img/feed-icon.png" width="15" height="15" alt="Click for RSS Feed"/> </a> </div> +2020-07-17 <a class="feed-item" href="blog/my-attempts-to-fix-my-mastodon-instance">My Attempts to Fix My Mastodon Instance</a> + 2020-07-14 <a class="feed-item" href="blog/debian-with-btrfs">Installing Debian 10 Buster with Encrypted LVM and btrfs Subvolumes</a> 2020-07-13 <a class="feed-item" href="blog/using-rm-with-trash">Using the "rm" Command with Trash</a> @@ -35,8 +37,6 @@ This site will soon™️ be available over Gopher and Gemini. 2020-07-08 <a class="feed-item" href="blog/my-todo-solution">My TODO Solution</a> 2020-07-07 <a class="feed-item" href="blog/are-todo-applications-a-waste-of-time">Are TODO Applications a Waste of Time?</a> - -2020-07-06 <a class="feed-item" href="blog/improving-blog-searching">Improving Blog Searching</a> ### What is a Parity Bit? It is a bit (in the 1's and 0's sense) used in checking for errors in digital diff --git a/public/feeds/sitewide-feed.xml b/public/feeds/sitewide-feed.xml @@ -7,6 +7,39 @@ <description>The feed that covers all notable additions, updates, announcements, and other changes for the entire paritybit.ca website.</description> <item> + <title>My Attempts to Fix My Mastodon Instance</title> + <link>https://www.paritybit.ca/blog/my-attempts-to-fix-my-mastodon-instance</link> + <guid>https://www.paritybit.ca/blog/my-attempts-to-fix-my-mastodon-instance</guid> + <pubDate>Fri, 17 Jul 2020 23:41:55 -0400</pubDate> + <description><![CDATA[<h2 id="my-attempts-to-fix-my-mastodon-instance">My Attempts to Fix My Mastodon Instance</h2> +<div class="byline"> +<p><b>Written By:</b> Jake Bauer | <b>Posted:</b> 2020-07-17 | <b>Last Updated:</b> 2020-07-17</p> +</div> +<p>Self-hosting Mastodon was going so well until about a month-and-a-half ago when, seemingly out of nowhere, I started getting HTTP error 422 in response to any action I took to update my profile or instance from the web UI. I could still update things like my profile description using the Tusky mobile app, yet it wouldn’t work in the web interface. I also couldn’t even log out, as clicking the log out button gave me the exact same error page and HTTP response:</p> +<figure> +<a href="/img/mastodon-error.png"><img src="/img/mastodon-error-thumb.png" + alt="A mastodon error page with the text 'Security verification failed. Are + you blocking cookies?'."/></a> +</figure> +<p>I tried fiddling with the server, re-compiling the UI pages, updating it and its dependencies, all to no avail. Just today I spent about 4 hours (mostly just waiting for things to backup, copy, transfer, etc) standing up a new mastodon server and migrating the database over but, although the back-end seemed to work just fine, the front-end kept giving me webpack errors that I have no idea how to fix:</p> +<pre><code>Jul 18 02:03:31 eris bundle[901]: [f0b3cdd5-a423-43ac-beba-9484b5100b10] method=GET path=/ format=html controller=HomeController action=index status=302 duration=22.14 view=0.00 db=17.60 location=https://social.paritybit.ca/@jbauer +Jul 18 02:03:31 eris bundle[902]: [7187785d-5345-413e-a08a-3854c43a0e94] method=GET path=/@jbauer format=html controller=AccountsController action=show status=500 error=&#39;ActionView::Template::Error: Webpacker can&#39;t find public.js in /home/mastodon/live/public/packs/manifest.json. Possible causes: +Jul 18 02:03:31 eris bundle[902]: 1. You want to set webpacker.yml value of compile to true for your environment +Jul 18 02:03:31 eris bundle[902]: unless you are using the `webpack -w` or the webpack-dev-server. +Jul 18 02:03:31 eris bundle[902]: 2. webpack has not yet re-run to reflect updates. +Jul 18 02:03:31 eris bundle[902]: 3. You have misconfigured Webpacker&#39;s config/webpacker.yml file. +Jul 18 02:03:31 eris bundle[902]: 4. Your webpack configuration is not creating a manifest. +Jul 18 02:03:31 eris bundle[902]: Your manifest contains: +Jul 18 02:03:31 eris bundle[902]: { +Jul 18 02:03:31 eris bundle[902]: } +Jul 18 02:03:31 eris bundle[902]: &#39; duration=233.72 view=0.00 db=9.78 +Jul 18 02:03:31 eris bundle[902]: [7187785d-5345-413e-a08a-3854c43a0e94]</code></pre> +<p>I’ve tried re-compiling the front-end assets, checking the content of the stated <code>webpacker.yml</code> and the <code>manifest.json</code> files (they looked fine to my untrained eye and contained the things Webpacker says it can’t find), and even things like what was suggested <a href="https://stackoverflow.com/questions/58520418">here on StackOverflow</a>. Nothing worked.</p> +<p>I’m kind of getting fed up with the technologies used by Mastodon. Not only does my server eat RAM because of the use of technologies like Ruby and Node.js, it feels very duct-taped together and difficult to diagnose without being intimately familiar with either Mastodon’s workings or Ruby environments in general. I appreciate the efforts of the Mastodon developers in creating this software, but I don’t think the technologies used are particularly good.</p> +<p>For this reason, unless I can figure out how to solve the above problems, I will be standing up a Pleroma instance (it’s basically like Mastodon but doesn’t eat as much RAM and only externally requires a database, as opposed to a whole suite of web technologies, among other things). The migration won’t be quick and I’ll probably lose a few followers along the way, but I think it’ll be worth it in the end to move to a platform that won’t be as frustrating to diagnose or fix.</p> +<p><em>This is my seventy-fourth post for the <a href="https://social.paritybit.ca/tags/100DaysToOffload">#100DaysToOffload</a> challenge. You can learn more about this challenge over at <a href="https://100daystooffload.com">https://100daystooffload.com</a>.</em></p>]]></description> + </item> +<item> <title>Installing Debian 10 Buster with Encrypted LVM and btrfs Subvolumes</title> <link>https://www.paritybit.ca/blog/debian-with-btrfs</link> <guid>https://www.paritybit.ca/blog/debian-with-btrfs</guid> diff --git a/public/img/mastodon-error-thumb.png b/public/img/mastodon-error-thumb.png Binary files differ. diff --git a/public/img/mastodon-error.png b/public/img/mastodon-error.png Binary files differ. diff --git a/public/sitemap.xml b/public/sitemap.xml @@ -3,6 +3,7 @@ <url><loc>https://www.paritybit.ca</loc></url> <url><loc>https://www.paritybit.ca/home</loc></url> <url><loc>https://www.paritybit.ca/blog</loc></url> + <url><loc>https://www.paritybit.ca/blog/my-attempts-to-fix-my-mastodon-instance</loc></url> <url><loc>https://www.paritybit.ca/blog/debian-with-btrfs</loc></url> <url><loc>https://www.paritybit.ca/blog/using-rm-with-trash</loc></url> <url><loc>https://www.paritybit.ca/blog/new-desktop-checklist</loc></url>