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

pgcopy list databases should not fall over source.db with differnet Postgres source #897

Open
mbanck-ntap opened this issue Jan 24, 2025 · 0 comments

Comments

@mbanck-ntap
Copy link

If I run pgcopy list databases --source <SRC> after doing some other pgcopydb commands, it potentially fails like

postgres:~$ pgcopydb list databases --source $PGCOPYDB_SOURCE_PGURI
11:15:12.013 211459 INFO   Running pgcopydb version 0.17-1.pgdg120+1 from "/usr/bin/pgcopydb"
11:15:12.072 211459 INFO   Using work dir "/tmp/pgcopydb"
11:15:12.074 211459 ERROR  Catalogs at "/tmp/pgcopydb/schema/source.db" have been setup for Postgres source "postgres://:5432/test" and current source is "postgres://:5432/"
11:15:12.075 211459 ERROR  Failed to initialize pgcopydb internal catalogs
11:15:12.075 211459 ERROR  Failed to fetch a local copy of the catalogs, see above for details

Contrary to pgcopydb copy db, there is no --restart option for list databases that would disregard the source.db, but I think pgcopydb should just not use whatever is in "/tmp/pgcopydb/schema/source.db for this command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant