-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
v4 upgrade fails to start #2112
Comments
This is mainly related to your environment (i've run the upgrade earlier today and everything worked as expected). From the error message, it looks like your new container is running postgres 17 while you were previously using postgres 13, this is root cause of the problem. I am not a docker user myself but try modifying this line in the docker-compose.yml file: image: postgres:17-alpine By replacing it with the below instead: image: postgres:13-alpine |
I've been able to successfully upgrade to v4.0.1 while using the old I haven't been successful in updating to the new docker-compose.yml file, due to the upgrade from PostgreSQL 13 to 17. That process doesn't seem to be documented anywhere. Thanks @nkosi23 |
Great to hear that! I think the difficulty is that for new users they have to propose a docker image having the latest stable versions of software such as postgres (as it wouldn't make sense to require new users to start with postgres13 in 2024). At the same time it would be challenging to provide different images for all combination of legacy software existing users may be running. Therefore I think that you may have to slightly tinker with the docker-compose.yml file from time to time. |
Fair, we do have about a year before v13 is no longer supported. It would be great to have some official docs on how to make the v13->v17 jump, since it's an inevitability. I was definitely confused by the phrasing in the upgrade docs and the release notes. I took them to mean that the new It seems like several others are confused by the recent doc updates to be so heavily v4-oriented - #2108 & #2107 (and now my #2113 because I didn't notice those) Thanks again! |
Explicitly addressed docker compose instructions for the older files and the new version: https://listmonk.app/docs/upgrade/#docker
This will involve the standard steps for doing a pg_dump of the old DB and importing to the dump to the new DB. Did a quick search and found these: |
That is correct. The docker-compose files that repositories have (like the one listmonk has) are examples and starter references, which the end users are expected to customize to work for their specific needs. |
I was tripped up on the fact that the db container would only go into restart loop. Your links helped me understand the process of isolating the db container outside of the full app context in order to work with the data. Here's the full process I came up with, in case it's helpful for anyone (or if you want to include it in the docs as a guide to upgrading PostgreSQL):
- type: bind
source: /path/to/data
target: /data
|
Version:
Description of the bug and steps to reproduce:
After upgrading to v4 the containers fail to start.
The app container has these logs:
The db container has these logs:
I mainly followed the upgrade nodes in https://listmonk.app/docs/upgrade/#docker with the addition of managing the new
docker-compose.yml
file in a way that seemed right. My step-by-step upgrade process was:curl -LO https://github.com/knadh/listmonk/raw/master/docker-compose.yml
mv docker-compose.yml listmonk/docker-compose.yml.new
cd listmonk
POSTGRES_PASSWORD
andhostname
entries in thedocker-compose.yml.new
filedocker compose down app
mv docker-compose.yml docker-compose.yml.old
mv docker-compose.yml.new docker-compose.yml
docker compose pull
docker compose up app -d
I'm unsure how to resolve the situation with the db container in a constant restarting cycle.
Screenshots:
If applicable, add screenshots to help explain your problem.
UPDATE
I found a different set of upgrade steps in https://github.com/knadh/listmonk/releases/tag/v4.0.1 which is producing a different error:
If I immediately run
docker compose logs db
it displays:The text was updated successfully, but these errors were encountered: