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

Backup does not respect the postgres port #13980

Closed
1 of 3 tasks
martabal opened this issue Nov 7, 2024 · 4 comments · Fixed by #13992
Closed
1 of 3 tasks

Backup does not respect the postgres port #13980

martabal opened this issue Nov 7, 2024 · 4 comments · Fixed by #13992
Assignees

Comments

@martabal
Copy link
Member

martabal commented Nov 7, 2024

The bug

As the title says.

const databaseParams = isUrlConnection ? [config.url] : ['-U', config.username, '-h', config.host];

And if the service fails, an empty temp file is created immich-db-backup-1730941200145.sql.gz.tmp

The OS that Immich Server is running on

Unraid

Version of Immich Server

v1.120.0

Version of Immich Mobile App

v1.120.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

  1. Use a different port the postgres db
  2. Run the backup job
  3. Should throw an error in the docker logs
    ...

Relevant log output

pg_dumpall: error: connection to server at "postgres_immich", port 5432 failed: FATAL:  password authentication failed for user "immich"

(I have a different postgres server running on port 5432)

Additional information

No response

@zackpollard zackpollard self-assigned this Nov 7, 2024
@zackpollard
Copy link
Contributor

Resolved by #13970

@bo0tzz
Copy link
Member

bo0tzz commented Nov 7, 2024

Only if using a DB_URL, but not with DB_PORT right @zackpollard ?

@martabal
Copy link
Member Author

martabal commented Nov 7, 2024

Only if using a DB_URL, but not with DB_PORT right @zackpollard ?

Yeah, it does not fix that issue

@bo0tzz bo0tzz reopened this Nov 7, 2024
@zackpollard
Copy link
Contributor

Sorry, I somehow got those mixed up 😆

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

Successfully merging a pull request may close this issue.

3 participants