Repository navigation
Home folder is not set for app user #34
Description
Activity
I think it is fixed with the above change. If you can, please confirm and let me know.
The image is ghcr.io/borgbase/vorta-docker:f989d72IntermittentlyRupert commented
on May 16, 2026 AuthorMore actionsI wasn't able to pull that image, sorry. But I built and tested #35, and I saw the same error as before.
This might be a bug in borg that I can't address. Can you reach out there and see what they say?
In the meantime, I'll see if I can come up with a solution but I don't have one yet. You may need to us the old image for now.IntermittentlyRupert commented
on May 17, 2026 AuthorMore actionsSure, I'll also see if I can put together a standalone minimal reproduction.
Just to double check something - in jlesage/docker-baseimage-gui#190 you say:
I ended up adding
usermodback into my image and that isn't working yetWas that in a separate change to #35? I don't see anything in that PR that would install
usermod. (Or am I misunderstanding what you're saying there/the nature of the problem? I'm not super familiar with the approach the base image is using.)IntermittentlyRupert commented
on May 17, 2026 AuthorMore actionsDid a bit more digging and it definitely seems to be borg (or openssh itself?) ignoring the
HOMEenvironment variable and only looking at/etc/passwdfor the app user's home directory.The base container doesn't let you set the app user's home dir in
/etc/passwdbut if I manually sed replace it in50-init.sh:sed -i -r s/app\:\:\([0-9]+\):\([0-9]+\)::[^:]+:\(.+\)/app\:\:\\1\:\\2\:\:\\/config\:\\3/ /etc/passwd
...then it resolves this issue.
It doesn't seem wrong for an application to use the user's canonical home directory rather than the environment variable, so I'd guess this is a base image issue to solve rather than an application bug.
The
usermodchange was something I tried but since it didn't work, I didn't push it up.
It sounds like it may be addressed in the baseimage, and it definitely is an app bug I think.
For now, as both of you have suggested, I'm pushing up an instance with the abovesed. I was trying to avoid manual manipulation but 🤷Reacted by IntermittentlyRupertIntermittentlyRupert commented
on May 18, 2026 AuthorMore actionsYeah, I agree it's definitely not ideal. IMO if the base image sets the home dir in
/etc/passwdthat'd be much cleaner.Really appreciate how responsive and helpful you've been on this! Thanks! 🙏
This seems to be a re-occurrence of #3 and was introduced somewhere between image revision
948e90e(works) and latest7d735cc(has the error).Setting
HOMEinstartapp.shdoesn't seem to be sufficient for borg to look up the ssh config. I appears to be using the app user's actual home dir in passwd, which is/dev/null.