postgres: localhost: FAILED (user snapproxy-user) FATAL: database "snapproxy-user" does not exist

Bug #1876812 reported by Chris Johnston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
Undecided
Unassigned

Bug Description

Running snap-proxy check-connections seems to attempt to use a db called "snapproxy-user" rather than the db defined:

ubuntu@snapproxy:~⟫ sudo snap-proxy config proxy.db.connection="postgresql://snapproxy-user@localhost:5432/snapproxydb"
Database authentication failed
Please enter password for database user snapproxy-user (attempt 1 of 3):
No store keys configured
proxy.db.connection: postgresql://snapproxy-user:snapproxy-password@localhost:5432/snapproxydb
ubuntu@snapproxy:~⟫ snap-proxy check-connections
http: https://dashboard.snapcraft.io: OK
http: https://login.ubuntu.com: OK
http: https://api.snapcraft.io: OK
postgres: localhost: FAILED (user snapproxy-user) FATAL: database "snapproxy-user" does not exist
Not all connections are accessible

William Grant (wgrant)
Changed in snapstore-server:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.