TLDR:
I get 404 on /ghost/assets/* in the First Time Setup after clean Docker Install
only /var/lib/ghost/content
is mounted, so the /assets/ files should exist self-contained within the docker image. Why are they not present?
Heya, I’m trying to set up Ghost on Unraid (for the 3rd time actually :) )
I had it semi-working before but Ghost didn’t generate resized images and showed 404s for them instead and the linked ‘content’ folder didn’t have any of the recently uploaded images in it at all (they also weren’t in the in-memory container … weird stuff!)
Anyway, my issue is that I now did a completely fresh setup after completely wiping both content, appdata, database and previous container image. I can access the /ghost page and could create my user. On the Let’s get started! page it then already fails on the 2nd entry (Customize your design) which fails to load a module. Most of the /ghost/assets/* files seem to 404. How come? These files are, from what I understand, part of the Ghost docker image itself which is, by default, not mounted as a volume so it cannot (should not) be a permission issue.
I know the info and problem is likely very broad, but I hope we can pick at one thing at a time to get it working.
Bonus question:
In other forum posts I heard mentions of ‘package.json’ and being able to edit HTML directly in specific files. The only place I could find package.json is the container image itself and when attempting to mount the Theme(s) folder externally, it doesn’t work because its contents are symlinks. Has this been successfully done via Docker install before?
What’s your URL?
I’ll provide once it’s useful. It fails in the admin panel already
What version of Ghost are you using?
5.82.11
How was Ghost installed and configured?
- Installed via CommunityApps on Unraid ( https://hub.docker.com/_/ghost/ )
- used following configs (password, user and url not real)
Container IP 172.18.0.25
url:https://www.example.com
database__client:mysql
database__connection__host:173.18.0.3
database__connection__port:3306
database__connection__user:ghost
database__connection__password:not1234
database__connection__database:ghost
mail__transport:SMTP
mail__options__service:
mail__options__auth__user:webmaster@example.com
mail__options__auth__pass:not1234
mail__options__host:smtp.gmail.com
mail__options__port:587
mail__from:'Name' <webmaster@example.com>
/var/lib/ghost/content -> /mnt/user/ghost/example
What Node version, database, OS & browser are you using?
- If my install uses Node it must be bundled
- DB is mariadb 11.3.2
- OS of host is Unraid 6.12.10 , Client is Windows 11 (22631)
- Browser is Chrome 125.0.6422.78
What errors or information do you see in the console?
Chrome
Failed to load resource: the server responded with a status of 403 () ghost/api/admin/users/me/?include=roles:1
Failed to load resource: the server responded with a status of 404 () ghost/assets/admin-x-settings/modals-ae924d1e.mjs:1
Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://example.com/ghost/assets/admin-x-settings/modals-ae924d1e.mjs
Docker:
[2024-05-24 22:18:15] INFO "GET /ghost/api/admin/newsletters/?include=count.active_members%2Ccount.posts&limit=50" 200 29ms
[2024-05-24 22:18:15] INFO "GET /ghost/api/admin/integrations/?include=api_keys%2Cwebhooks" 200 36ms
[2024-05-24 22:18:24] INFO "GET /ghost/assets/vendor-c767bea8e64198534441e9cbd3fce355.map" 404 5ms
[2024-05-24 22:18:24] INFO "GET /ghost/assets/chunk.524.712c85d7aae3325b5222.map" 404 15ms
[2024-05-24 22:18:24] INFO "GET /ghost/assets/chunk.799.4deb46f52edfd88977f5.map" 404 17ms
[2024-05-24 22:18:24] INFO "GET /ghost/assets/ghost-fc1f02c2f5616859eca1ee4cdba068b8.map" 404 19ms
[2024-05-24 22:18:24] INFO "GET /ghost/assets/admin-x-settings/index-8d67ef5d.mjs.map" 404 22ms
What steps could someone else take to reproduce the issue you’re having?
Install docker via Unraid out of the box, navigate to the /ghost website, create admin account in setup screen and click on the 2nd entry “Customize your design”