using Postgres, app tries to connect as root user #28
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Observed
abra app new hedgedoc 3.0.10+1.10.8abra app config my.hedgedoc.domainand uncomment the two postgres linesabra app secret generate my.hedgedoc.domain --allabra app deploy my.hedgedoc.domaindocker service logs my_hedgedoc_domain_db:Analysis
The only issue I could find in the compose is that
CMD_DB_USERNAMEis incorrectly specified asCMD_DB_USER(see docs). But that shouldn't matter, because the entrypoint setsCMD_DB_URLwhich should overrideCMD_DB_USERNAME. And in any case, changing toCMD_DB_USERNAMEdidn't seem to fix things.A bit more context:
I initially thought this log was a breaking issue, because I was having difficulty getting my services to communicate in a multi-node setup.
But, I now have a working setup on a single node server, and the "FATAL" logs are still present. So it might be lower prio, and possibly upstream.
(I guess I'll have to investigate separately why I can't have
appon a worker node, and figure out if this is related.)hey @amras could you check the processes on the postgresql container? if hedgedoc is working, the rejected connections from root may come from another client, possibly health checks?
also i'm not sure what you mean by multinode setup, are you connecting hedgedoc to a remote postgresql? from the same recipe?
I think pg health checks are a likely hypothesis. I'll try and look at the processes when I have a moment.
By multi-node setup, I mean that I have two machines in my docker swarm. The manager is running the
dbservice defined incompose.postgresql.yml, and a worker is running theappservice. For some reason,appsometimes reports that it can't connect to the database and locks on deployment. Which is unusual, because having a database on another node hasn't been an issue in other recipes.