Open mgrimace opened 1 year ago
additional data, running compose up
I see the following issue:
kaizoku-db-1 | 2023-09-19 18:08:50.104 UTC [1] FATAL: database files are incompatible with server
kaizoku-db-1 | 2023-09-19 18:08:50.104 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 15, which is not compatible with this version 16.0.
kaizoku-db-1 exited with code 1
My database was created in v15. Without specifying a version number in my compose, the db postgres image updated to the latest version (v16), which is incompatible, and broke Kaizoku's access to the db. Updating the database from v15 to v16 appears possible, but requires some kind of database converstion/update that is beyond me. My solution was to specify a fixed v15 of postgres in my compose file. Steps below.
You may first have to run docker compose up
and see what version your database was created in. If it's 15 you can use the compose line below. If it's something different, just use the applicable version. The available version tags can be found here https://hub.docker.com/_/postgres
Available v15 apline tags: 15.4-alpine3.18, 15-alpine3.18, 15.4-alpine, 15-alpine
, I just went with 15-alpine
, I'm not sure if that's the best choice, but it works.
Then, in compose, make the following change (if applicable). Old:
db:
image: postgres:alpine
New
db:
image: postgres:15-alpine
The DB image must have updated with Watchtower before I added in the 'ignore' label. Or, it's possibly an actual issue, I'm not sure. Either way, this was my solution in case anyone else is impacted.
I just double checked the default compose.yaml
at it does appear that it is listed as
db:
image: postgres:alpine
Which may cause issues for folks who update the db image and created their database on a previous version of postgres, e.g., by using watchtower or manually. Potential fix above.
I also had this issue. By adding the 15-alpine it does appear to work again. Though Agreed with mgrimace, this could be an issue for others that dont know about this issue and try to use the default compose.
Describe the bug
kaizoku-redis-1
was stopped for some reason. Restarted Redis.Reproduction steps
docker compose up -d
starts redis, and db, but doesn't start kaizoku (hangs atrecreated
, does not proceed tostarted
)Expected behavior
Access webUI as normal
Additional context
My compose: