Post ASOVrFafiK4Ifd2ycS by malte@hachyderm.io
(DIR) More posts by malte@hachyderm.io
(DIR) Post #ASOQsyXzYGJYcVnSOO by misty@digipres.club
2023-02-06T05:35:52Z
0 likes, 0 repeats
OK, fellow Mastodon admins, help me out here: I'm migrating from on-disk storage to blob storage. When deployed with blob storage on, Mastodon stops looking for the on-disk files and just serves up the blob storage URLs, which aren't populated yet.Do people mostly handle this via Nginx URL rewriting/proxy, or is ther eanother way?
(DIR) Post #ASORYBZQ2Mamsp7Aq8 by e_nomem@hachyderm.io
2023-02-06T05:43:09Z
0 likes, 0 repeats
@misty Some info here on what Hachyderm did: https://www.digitalocean.com/blog/digitalocean-spaces-mastodon-hachyderm@malte probably has more details
(DIR) Post #ASOS2LhuucVl0hTMhs by motorola68k@electron.ninja
2023-02-06T05:48:46Z
0 likes, 0 repeats
@misty Not related to the core question, but I am very curious why you are wanting to go to blob vs object storage or s3 compatible layer
(DIR) Post #ASOSFxeZ8pJwSiObey by misty@digipres.club
2023-02-06T05:51:14Z
0 likes, 0 repeats
@motorola68k A large chunk of my hosting costs are paid for via a monthly credit. For that reason, I'm defaulting to my host's options instead of looking at other options like S3.
(DIR) Post #ASOSX6eevY0lIpcBt2 by misty@digipres.club
2023-02-06T05:54:20Z
0 likes, 0 repeats
@demize Makes sense. I guess some 404s in the intermediate period were kind of avoidable?
(DIR) Post #ASOU2XwLdBGArFRcEC by jordan@sometimes.social
2023-02-06T06:09:13Z
0 likes, 0 repeats
@misty I did exactly what @demize did
(DIR) Post #ASOU2YQTp9MYMhXgC8 by jordan@sometimes.social
2023-02-06T06:10:32Z
0 likes, 0 repeats
@misty @demize And yeah, some 404s were unavoidable in the intervening period, and also still occasionally happen for me, because I migrated to Wasabi and it's Real Slow Sometimes
(DIR) Post #ASOU2YqMGw3xexeLWy by misty@digipres.club
2023-02-06T06:11:11Z
0 likes, 0 repeats
@jordan @demize Thank you both! That's really helpful.
(DIR) Post #ASOVrFafiK4Ifd2ycS by malte@hachyderm.io
2023-02-06T06:31:24Z
0 likes, 0 repeats
@misty @jordan @demize have a look at nginx `try_files` to avoid 404s while syncing.
(DIR) Post #ASOYaPUFxuisIshwie by ljwrites@rage.love
2023-02-06T07:02:06Z
0 likes, 0 repeats
@misty *strikes melodramatic pose* My moment has come.You can set the following, or the equivalent path in your server, in your nginx proxy:root /home/mastodon/live/public/system;...to make the service look to your local Mastodon media first. Here's the post I wrote on the subject of migrating, specifically this section: https://ljwrites.blog/posts/mastodon-b2/#step-2-set-up-a-proxy-on-nginx
(DIR) Post #ASOcOogmq2g8oAIPeS by misty@digipres.club
2023-02-06T07:44:53Z
0 likes, 0 repeats
@ljwrites Aha! Thank you! I’ll give it a try
(DIR) Post #ASOcUB66x4CjkqhKDY by ljwrites@rage.love
2023-02-06T07:45:50Z
0 likes, 0 repeats
@misty np! Hope it works.
(DIR) Post #ASSOJRvvOYhw3flMrQ by misty@digipres.club
2023-02-08T03:25:52Z
0 likes, 0 repeats
@ljwrites Quick question - I see you put the root at /home/mastodon/live/public/system, rather than /public, which is what the default one uses. When I tried that, the app wasn't able to load assets from in public. How'd you handle that?
(DIR) Post #ASSSTRHx2xHAls5JM8 by ljwrites@rage.love
2023-02-08T04:12:29Z
0 likes, 0 repeats
@misty which was the one you tried, /home/mastodon/live/public/system or /public ?
(DIR) Post #ASSUXqc522fENfjIUi by ljwrites@rage.love
2023-02-08T04:35:42Z
0 likes, 0 repeats
@misty assuming you tried /home/mastodon/live/public/system , when you inspect the (I'm guessing empty) elements in your instance what URL are they loaded from? Are they loading from the server proxy you set up, such as your subdomain?Also, is the newly loaded media loading properly?
(DIR) Post #ASSUb27Qi7nKvwucD2 by ljwrites@rage.love
2023-02-08T04:36:18Z
0 likes, 0 repeats
@misty assuming you tried /home/mastodon/live/public/system , when you inspect the (I'm guessing empty) elements in your instance what URL are they loaded from? Are they loading from the server proxy you set up, such as your subdomain?Also, is the newly uploaded/requested media loading properly?