hg.sr.ht package from the alpine mirror did not create the hg user, nor the
# apk policy hg.sr.ht hg.sr.ht policy: 0.27.5_hg20210430-r0: lib/apk/db/installed https://mirror.sr.ht/alpine/v3.13/sr.ht
EDIT: The user hg was created, I misread the error: it’s shell was nologin. It appears that the package creates the
/var/lib/mercurial directory instead of
/var/lib/hg that the docs and the configuration example assumes. The default nginx configuration also uses
/var/lib/mercurial , so this is an inconsistency issue after all.