using Postgres, app tries to connect as root user #28
Open
opened 2026-05-14 10:08:31 +00:00 by amras
·
3 comments
No Branch/Tag Specified
main
sutty
renovate/pgautoupgrade-pgautoupgrade-18.x
anubis
forceSsl
upgrade
main-2
fauno-sqlite
entrypoint-fix
fix-uploads-volume
mayel-patch-1
3.2.0+1.12.0
3.1.1+1.11.1
3.1.0+1.11.0
3.0.10+1.10.8
3.0.9+1.10.7
3.0.8+1.10.7
3.0.7+1.10.6
3.0.6+1.10.5
3.0.5+1.10.5
3.0.4+1.10.4
3.0.3+1.10.3
3.0.2+1.10.3
3.0.1+1.10.3
3.0.0+1.10.1
2.0.0+1.10.1
1.2.2+1.10.1
1.2.1+1.10.0
1.2.0+1.10.0
1.1.0+1.9.9
1.0.1+1.9.9
1.0.0+1.9.9
0.6.0+1.9.9
0.5.1+1.9.8
0.5.0+1.9.6
0.4.0+1.9.3
0.3.0+1.9.3
0.2.0+1.9.3
0.1.0+1.8.2
No labels
Milestone
No items
No Milestone
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/hedgedoc#28
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.