We’ve had a Gitlab docker deployed for a while now on an Ubuntu 16 machine for a while now. Recently there were some issues due to low disk space, and I’m pretty sure one of the devs screwed something up while looking for stuff to delete.
The problem right now is that Gitlab won’t start, it almost immediately throws a permission error in the docker logs. If I create a new docker and point it to different folders, it creates them just fine but then of course I lose all my data.
This is the log:
There was an error running gitlab-ctl reconfigure:
execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] (gitlab::gitlab-shell line 100) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with , but received ‘1’
---- Begin output of /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions ----
initialize': Permission denied @ rb_sysopen - /var/log/gitlab/gitlab-shell/gitlab-shell.log (Errno::EACCES) from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_logger.rb:30:in open’
initialize' from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_logger.rb:119:in new’
<top (required)>' from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_keys.rb:4:in require_relative’
<top (required)>' from /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys:24:in require’
from /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys:24:in `’
---- End output of /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions ----
Ran /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions returned 1
And this is my docker run command:
sudo docker run --detach
–publish 443:443 --publish 80:80 --publish 2222:22
Any help would be appreciated.