Docker image permissions problems
Docker image is plagued by basically this issue (which for some unfathomable and unexplained reason is closed): https://gitlab.com/gitlab-org/gitlab-foss/-/issues/35040 .
================================================================================
Error executing action `run` on resource 'execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions]'============================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions ----
STDERR: /opt/gitlab/embedded/lib/ruby/2.3.0/logger.rb:703:in `initialize': Permission denied @ rb_sysopen - /var/log/gitlab/gitlab-shell/gitlab-shell.log (Errno::EACCES)
No amount of docker exec -it heptapod update-permissions
nor setfacl
magic helps. Straight-out chmod
, chgrp
, chown
moves the target (different file fails), but doesn't fix, and the permissions seem to be reset by docker as you go.