-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Description
Steps to reproduce the problem
I'm installing Mastodon on a Gentoo machine behind a Cloudlfare Tunnel.
- Install Mastodon using official guide
- Use OpenRC scripts from the Gentoo phackerlay repo https://data.gpo.zugaina.org/phackerlay/www-apps/mastodon-openrc/files/
- Use official but edited nginx.conf (I removed SSL bits because Cloudflare provides its own certificates and encryption)
- Try accessing web interface
Expected behaviour
Home page displaying correctly.
Actual behaviour
Browser shows a blank page with only the mastodon logo and title with 404s and NS_ERROR_CORRUPTED_CONTENT all over the console logs. Mastodon server-side logs show 404 for every other resource than /.
Detailed description
Browser console logs:
console-export-2025-12-8_19-59-8.log
nginx.conf:
(renamed for GitHub)
nginx.txt
/etc/nginx/sites-available/mastodon:
mastodon.txt
Mastodon's web server log example:
...
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.025812 #28565] INFO -- : [fbe621a1-caaa-4218-b462-1eb55115177c] method=GET path=/packs/person_add-fill-DQeM1NZB.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=0.59 view=0.23 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.027896 #28565] INFO -- : [48aa1a76-c71f-4a56-b332-8dfdd89febbb] method=GET path=/packs/done-rrP1FZgA.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=1.06 view=0.39 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.028637 #28565] INFO -- : [ce3da262-62d0-43f2-92b5-f70d5818f580] method=GET path=/packs/list_alt-CLjlm4Dn.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=0.54 view=0.18 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.030372 #28565] INFO -- : [94043c57-288b-4525-8ef6-e387f6ce5d61] method=GET path=/packs/embedded_status-SHBttx-d.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=0.56 view=0.26 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.031456 #28565] INFO -- : [faf1fa70-86dd-446b-8f59-9d732d1ae03f] method=GET path=/packs/notifications-Vp6wx34w.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=0.56 view=0.19 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.034797 #28565] INFO -- : [d3dc3a53-d958-41fe-89e3-bb8a460f9968] method=GET path=/packs/notifications-CoT6B805.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=2.64 view=2.28 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.035790 #28565] INFO -- : [071b99a4-fc2c-4fbf-82d5-c2ee29d4cb6f] method=GET path=/packs/index-CSRW9xAL.js format=*/* controller=ApplicationController action=raise_not_found status=404 allocations=2358 duration=0.46 view=0.18 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.217457 #28565] INFO -- : [e8d55a7a-080c-47dd-8a8e-73b34314a9da] method=GET path=/packs/assets/themes/default-D1X5U0rV.css format=css controller=ApplicationController action=raise_not_found status=404 allocations=2356 duration=1.83 view=0.67 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.279186 #28565] INFO -- : [913a02d2-ee64-4328-a4a1-be581ad34089] method=GET path=/packs/assets/favicon-16x16-74JBPGmr.png format=png controller=ApplicationController action=raise_not_found status=404 allocations=2356 duration=2.70 view=1.19 db=0.00
Dec 8 19:59:13 tamlab mastodon: I, [2025-12-08T19:59:13.281095 #28565] INFO -- : [fb10a394-84f8-4237-83da-98f015f31d2a] method=GET path=/packs/assets/apple-touch-icon-1024x1024-B3Tu3EqI.png format=png controller=ApplicationController action=raise_not_found status=404 allocations=2356 duration=1.27 view=0.49 db=0.00
...
All the web ui files (/home/mastodon/**) are owned by the mastodon user and readable + traversable (+x) by all users.
All my other services work fine, including a PeerTube instance which runs with nginx.
Mastodon instance
fedi.tamlab.zip
Mastodon version
v4.5.3
Technical details
If this is happening on your own Mastodon server, please fill out those:
- Ruby version: 3.4.7
- Node.js version: v22.13.1
Metadata
Metadata
Assignees
Labels
Type
Projects
Status