Skip to content
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

Make mix ecto.dump work | Upgrade dev image postgresql-client #471

Closed
PragTob opened this issue Nov 11, 2024 · 3 comments
Closed

Make mix ecto.dump work | Upgrade dev image postgresql-client #471

PragTob opened this issue Nov 11, 2024 · 3 comments
Labels
type-enhancement New feature or request

Comments

@PragTob
Copy link
Collaborator

PragTob commented Nov 11, 2024

mix ecto.dump is helpful to look at the database structure.

Sadly this fails currently:

root@a24346dbfa92:/app# mix ecto.dump

19:40:50.490 [info] Loading System Certificates
** (Mix) The structure for Mindwendel.Repo couldn't be dumped: pg_dump: error: server version: 15.8 (Debian 15.8-1.pgdg120+1); pg_dump version: 13.16 (Debian 13.16-0+deb11u1)
pg_dump: error: aborting because of server version mismatch

I fear that this requires an OS upgrade or some other workaround.

@PragTob PragTob added the type-enhancement New feature or request label Nov 11, 2024
@JannikStreek
Copy link
Member

OS upgrade with the docker image shouldn't be too bad / hard? Also a good idea to update the OS if we are based on an old image.

@nwittstruck
Copy link
Contributor

I've upgraded debian as part of #484 - does this solve this issue?

@PragTob
Copy link
Collaborator Author

PragTob commented Nov 24, 2024

Läuft!

root@c327688327c2:/app# mix ecto.dump
The structure for Mindwendel.Repo has been dumped to /app/priv/repo/structure.sql in 145 ms

@PragTob PragTob closed this as completed Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants