Recent comments
twovests OP wrote
Reply to comment by emma in silly question, does anyone know what we did to fix thumbnails? (fixed!) by twovests
Yeah; they're populated in "/app/public/media/cache/submission_thumbnail_2x/{hash}.jpg
", and even have the right permissions. (I also chmod 777'd one of them just to test, but the web
logs still say "Permission denied".)
E.g. Just like JstPst, I have:
/app/public/media/cache/submission_thumbnail_2x # ls -lha
total 40K
drwxrwx--- 2 www-data www-data 4.0K Mar 10 04:19 .
drwxrwxr-x 4 root root 4.0K Mar 8 10:30 ..
-rw-rwxr-- 1 www-data www-data 15.3K Mar 8 03:02 1e7e72e1f466066e11c9ec8cfd764c1b13bd26f15059ffcecb12798da45eac13.png
-rw-rwxr-- 1 www-data www-data 1.3K Mar 10 04:19 83c04d36f7e707aad8323d5e8536fa6921f0e0e78254da4c1e0cfcb6065ddf24.png
-rwxrwxrwx 1 www-data www-data 3.7K Mar 8 02:55 8949be8ddb088c68d93b1904633d2a0e7d94c99c5a47b72d5a98614b8a15a62d.jpg
/app/public/media/cache/submission_thumbnail_2x #
(Where 8949...a62d.jpg
I messed with the permissions to see if that would work.)
I deleted /app/var/cache
and... Broke the site! So I'm going to go fix that now. (Wait, I was able to fix it, yay.)
tldr: TRUSTED_PROXIES
set, the cached image files are indeed present with identical permissions to jstpst. Will continue debugging later;
emma wrote
Reply to happy international women's day by hollyhoppet
i hope that one day we'll have a day for non-international women
emma wrote
Reply to comment by twovests in silly question, does anyone know what we did to fix thumbnails? (fixed!) by twovests
ok, so, when the image is thumbnailed, this fact is stored in the cache. being thumbnailed, it should have an image in /app/public/media/cache/submission_etc_blahblahblah
, so you should check that these are being created, and that files in these directories are web accessible.
if they aren't there, then you could try clearing the cache. i believe bin/console cache:pool:clear cache.app
is the right thing here, but you could also just delete /app/var/cache
entirely. this will force it to check if a thumbnail exists again, and if not, attempt to thumbnail it again.
it really sounds like persistent storage is misconfigured or something, though.
twovests OP wrote (edited )
Reply to comment by emma in silly question, does anyone know what we did to fix thumbnails? (fixed!) by twovests
Just like with Jstpst, the thumbnail URL (e.g. https://jstpst.net/media/cache/submission_thumbnail_2x/8715833c4e1d896ba5cc0a3857f7db8b59f36886409251b2871b505c5b1bf25b.jpg
) instead throws a 404.
TRUSTED_PROXIES is set, as are the same permissions for the directories in the relevant Docker.
(The 404 page for JstPst still throws the Vary: Accept
and Vary: Accept-Encoding
. So, I was wrong in OP.) (I'm hesitant to post the site here, since this is an instance for my Irls and I've made some very personal posts here over the years hehe)
EDIT: The postmill-docker-example-web-1
says its for 'permission denied' so I'm still looking into that
emma wrote
i think it was just setting TRUSTED_PROXIES.
exactly how are the thumbnails broken? what do the thumbnail urls being generated look like?
Jenheadjen OP wrote
Reply to comment by voxpoplar in Women in Suits by Jenheadjen
many are saying this
voxpoplar wrote
Reply to Women in Suits by Jenheadjen
jen you might be home of sexual
twovests wrote
Sorry, I missed this at the time, never fixed it, and am wondering now what exactly happened to fix it lol
twovests wrote
Reply to Today is Sysadmin Appreciation Day! by nitori
:D THANKS :D
I am currently looking through your posts to try and figure out how we fixed the thumbnail problem, because I broke it again on another Postmill install lol
twovests wrote
Reply to so they have a blackberry dr pepper now by hollyhoppet
blackberry dr pepper is the flavor that i savor.......
neku wrote
there's still time
nomorepie wrote
Reply to comment by twovests in Last night I dreamt I got banned here but now there’s bookmarks instead by SWORDSCROSSED
Dockerfile? I hardly touched her file 🌝
twovests wrote
Reply to comment by SWORDSCROSSED in Last night I dreamt I got banned here but now there’s bookmarks instead by SWORDSCROSSED
Please please praise /user/emma instead! She wrote Postmill, including the bookmarks updates, and set it up on a Dockerfile and Compose setup. She made it very easy to just_host.
I can accept some sysadmin credit but Emma seriously deserves the credit for all the hard work and dedication.
SWORDSCROSSED OP wrote (edited )
Reply to comment by nomorepie in Last night I dreamt I got banned here but now there’s bookmarks instead by SWORDSCROSSED
Praise be /user/emma and /user/twovests. Amen
nomorepie wrote
Look how the Lord provides
neku wrote
Reply to bookmark this post. by I_got_killed_one_time
🔖
twovests OP wrote
Reply to comment by emma in Downtime over, upgrade complete! Sorry for logging you out. by twovests
I think I must have borked something which broke the sync-themes command, and commenting that out in the install script fixed it. I instantiated a fresh install of Postmill about 40 hours ago where no such problem was present!
Will need to figure that out when I am at a keyboard again
nomorepie wrote
Reply to bookmark this post. by I_got_killed_one_time
Shit, jstpst has bookmarks now...this changes everything
I_got_killed_one_time wrote
holey dfamn. i like the cute little book mark flag <3
emma wrote
sorry, fans of the Latte theme
uh, that should not have disappeared
twovests OP wrote
Reply to comment by hollyhoppet in Downtime over, upgrade complete! Sorry for logging you out. by twovests
Yay! Must have just been me clearing my cookies or something
cowloom wrote
Hooray! I saw your downtime message, and thought it was pretty funny ;)
cowloom wrote
Reply to comment by hollyhoppet in Downtime over, upgrade complete! Sorry for logging you out. by twovests
Me too.
hollyhoppet wrote
i'm still logged in...
twovests OP wrote (edited )
Reply to comment by twovests in silly question, does anyone know what we did to fix thumbnails? (fixed!) by twovests
huh, the
media_cache
,submission_images
, andvar
folders exist in the same subdirectory as thedocker-compose.yml
. Investigating...(edit) Still the same permissions as on jstpst. hmmm