-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/ghost] startup issues when upgrading past v5.68.0 #72308
Comments
Hi, Could you try with |
Another option to further debug the issue could be running a sleep infinity as entrypoint in the ghost container, then enter the container and run this command:
If that fails, you can also run the command https://forum.ghost.org/t/how-to-enable-debugging-output-in-ghost/8479/5 |
This is after running the command on a sleep infinity version of it! Since I am trying to debug it, I then run ghost run only for it to exit the running process as soon as I enter the command, just like when I run the script. On the other hand if I built it from the 5.68.0 version that does work, when I execute your entrypoint.sh and run.sh it doesn't return, which makes me thing the process is running. Not sure why it is breaking out of the process once I upgrade past that version. |
I did some more digging, I run ghost with the -D! parameter and I got an error, looks like in this version it fails to open SQLITE database? Which is weird as everything I have is configured to use mysql. Any idea why it would be trying to initialize SqlLite? When I try to chase the error "/opt/bitnami/ghost/versions/5.94.0/node_modules/knex-migrator/lib/database.js" I threw in some console.log statements, and it looks like with this version jump is causing it to default to sqlite3 instead of mysql. (see below) I ran ghost config database.client and it outputted the target DB was MySQL (see very bottom) I also included my environment variables in-case I am missing one? But I didn't see any on https://github.com/bitnami/containers/tree/main/bitnami/ghost#configuration that I missed. |
Hi, Thank you so much for all the digging. This behavior of defaulting to sqlite when the config returns that the database should be mysql seems more like an upstream issue rather than an issue with the Bitnami packaging. I think it is worth sharing with the upstream developers. |
Unfortunately they are rejecting it as a bug and stating that it is an environment issue. Going through more of the Ghost documentation it looks like the ghost configuration is loaded from a config.json, not environment variables that I have provided for this container. Any chance you know where those config files are stored within the container and I can manually validate / alter it to see if I can get it working? Do you think it has anything to do with the env vars? It looks like the old template I used for UnraidOS has it mapped to MARIADB_HOST and MARIADB_PORT_NUMBER rather than GHOST_DATABASE_HOST and GHOST_DATABASE_PORT_NUMBER? If the env vars changed then my legacy container 5.68.X might use those two env vars but when upgrading past 5.69.X it references the new ones prefixed with GHOST_*. Do you think this could be a possibility that if it doesn't find the database host it fallbacks to Sqlite3? |
Hi! The configuration file should be in /opt/bitnami/ghost/config.production.json |
Looks like the /opt/bitnami/ghost/versions/5.XX.0/node_modules/knex-migrator/lib/database.js is getting the incorrect client, any support from Ghost is claiming it is a docker environment issue not an issue with the application. I've confirmed that the generated config.production.json file is the exact same between v5.68.0 and 5.98.0 located at Any command running |
In case it helps, these are the commands we use to build ghost:
|
Are you able to run that alter table command manually? Just to ensure if the syntax is supported |
Hi! Thanks for letting us know! |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
Name and Version
bitnami/ghost:5.68.0
What architecture are you using?
amd64
What steps will reproduce the bug?
Using Unraid (or docker command line), pull and run the containers v5.68.0
Application will start and run,
Using Unraid (or docker command line), upgrade and pull the next version v5.69.0
Application has the same startup message but the container has exited
What is the expected behavior?
I expected the upgrade to complete without any issues, I was on a 5.3.X and jumped to latest and it failed to start. I slowly tried differing versions until I came from the upgrade to 5.68.0 > 5.69.0 which is when it started to fail to start. I don't see any logs in the docker container logs and the container isn't ever on long enough for me to check the logs while it is running.
What do you see instead?
The container fails to start once upgrading to 5.69.0
Additional information
The text was updated successfully, but these errors were encountered: