Hi, I’ve been trying to install gitlab on my docker swarm for days.
I always get this error:
There was an error running gitlab-ctl reconfigure:
directory[/etc/gitlab] (gitlab::default line 36) had an error: Errno::EINVAL: Invalid argument @ apply2files - /etc/gitlab
[2023-09-03T17:54:13+00:00] ERROR: Running exception handlers
Running handlers complete
[2023-09-03T17:54:13+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 07 seconds
[2023-09-03T17:54:13+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2023-09-03T17:54:13+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-09-03T17:54:13+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-09-03T17:54:13+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-09-03T17:54:13+00:00] FATAL: Errno::EINVAL: directory[/etc/gitlab] (gitlab::default line 36) had an error: Errno::EINVAL: Invalid argument @ apply2files - /etc/gitlab
Docker service file:
version: "3.6"
services:
gitlab:
image: gitlab/gitlab-ce:latest
ports:
- "2222:22"
- "8880:80"
- "4443:443"
volumes:
- /mnt/docker/gitlab/data:/var/opt/gitlab
- /mnt/docker/gitlab/logs:/var/log/gitlab
- /mnt/docker/gitlab/config:/etc/gitlab
shm_size: '256m'
environment:
GITLAB_OMNIBUS_CONFIG: "from_file('/omnibus_config.rb')"
configs:
- source: gitlab
target: /omnibus_config.rb
secrets:
- gitlab_root_password
gitlab-runner:
image: gitlab/gitlab-runner:alpine
deploy:
mode: replicated
replicas: 4
configs:
gitlab:
file: ./gitlab.rb
secrets:
gitlab_root_password:
file: ./root_password.txt