Permissions issue on docker

Hey all,

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:

Running handlers:
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 [0], but received ‘1’
---- Begin output of /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions ----
STDERR: /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_logger.rb:30:in 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’
from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_logger.rb:30:in initialize' from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_logger.rb:119:in new’
from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_logger.rb:119:in <top (required)>' from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_keys.rb:4:in require_relative’
from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_keys.rb:4:in <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
–hostname gitlab.local
–publish 443:443 --publish 80:80 --publish 2222:22
–name gitlab
–restart no
–volume /srv/gitlab/config:/etc/gitlab
–volume /srv/gitlab/logs:/var/log/gitlab
–volume /srv/gitlab/data:/var/opt/gitlab

Any help would be appreciated.

Bumping this up, any help would be appreciated

Exactly the same problem. Following documentation, OS is RHEL 7.6, selinux is enabled