/var/opt/gitlab is not writable

Hi,

I run gitlab in docker swarm.
I have done update from 11 to 12 ( latest ) and I have “/var/opt/gitlab is not writable” problem.

here is the log:

Recipe: gitlab::database_migrations
* bash[migrate gitlab-rails database] action run
[execute] /var/opt/gitlab is not writable.
Bundler will use `/tmp/bundler/home/unknown’ as your home directory temporarily.

I have tried an " update permissions " without success.

Can you help me to solve my problem ?

Thanks
Thomas

Hi,

maybe the host system prevents the directory being written. This could be wrong outside permissions, SELinux or a problem with Docker itself.

Cheers,
Michael

1 Like