update-permissions doesn't fix gitaly pid
I restored a raw (ie filesystem copy) backup of a gitlab omnibus docker on my mac, which ruined all permissions settings.
I used update-permissions
to get back to a working installation, which mostly worked fine but gitaly was not able to start:
{"error":"open /var/opt/gitlab/gitaly/gitaly.pid: permission denied","level":"fatal","msg":"find process","pid":3499,"time":"2022-07-13T14:56:03.048Z","wrapper":3499}
which I could confirm (unfortunately i didn't check /var/opt/gitlab/gitaly/ itself)
root@a3de00be717f:/# ls -l /var/opt/gitlab/gitaly/gitaly.pid
-rw------- 1 root root 4 Jul 2 20:45 /var/opt/gitlab/gitaly/gitaly.pid
after a chown git /var/opt/gitlab/gitaly/
it came back up, so I think this is just a minor detail missed by update-permissions
Edited by Arnold Hendriks