Hi everyone, I have a problem:
I used docker to build a gitlab on my mac, but every time I re-run it, it will be 502. After checking various places, I found that it was a problem with puma, but it was not the “puma permission problem” on the Internet. I had no choice but to give up.
I found from the puma log:
==> /var/log/gitlab/puma/current <==
2024-06-11_06:39:11.26057 bundler: failed to load command: puma (/opt/gitlab/embedded/bin/puma)
2024-06-11_06:39:11.26533 Errno::ENOTSUP: Operation not supported @ realpath_rec - /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket
Info:
- macbook pro 2018
- docker engine: 26.1.1
- gitlab image: gitlab/gitlab-ce:latest
- gitlab version: gitlab-ce=14.6.1-ce.0
- gitlab.rb: default, no changes
gitlab-ctl status
run: alertmanager: (pid 3039) 1338s; run: log: (pid 374) 2164s
run: gitaly: (pid 3052) 1337s; run: log: (pid 274) 2168s
run: gitlab-exporter: (pid 3075) 1337s; run: log: (pid 341) 2166s
run: gitlab-workhorse: (pid 3079) 1337s; run: log: (pid 343) 2166s
run: grafana: (pid 3090) 1336s; run: log: (pid 395) 2162s
run: logrotate: (pid 3105) 1336s; run: log: (pid 270) 2168s
run: nginx: (pid 3111) 1335s; run: log: (pid 340) 2166s
run: postgres-exporter: (pid 3129) 1335s; run: log: (pid 397) 2162s
run: postgresql: (pid 3141) 1335s; run: log: (pid 269) 2168s
run: prometheus: (pid 3150) 1334s; run: log: (pid 2885) 1382s
run: puma: (pid 6944) 8s; run: log: (pid 268) 2168s
run: redis: (pid 3175) 1333s; run: log: (pid 273) 2168s
run: redis-exporter: (pid 3181) 1333s; run: log: (pid 371) 2164s
run: sidekiq: (pid 3204) 1329s; run: log: (pid 272) 2168s
run: sshd: (pid 3210) 1329s; run: log: (pid 27) 2189s
puma log
# gitlab-ctl tail puma
==> /var/log/gitlab/puma/puma_stdout.log <==
==> /var/log/gitlab/puma/current <==
2024-06-11_06:38:34.00315 /opt/gitlab/embedded/bin/puma:23:in `<top (required)>'
2024-06-11_06:38:34.96253 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"Puma starting in cluster mode..."}
2024-06-11_06:38:34.96292 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Puma version: 5.5.2 (ruby 2.7.5-p203) (\"Zawgyi\")"}
2024-06-11_06:38:34.96330 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Min threads: 4"}
2024-06-11_06:38:34.96364 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Max threads: 4"}
2024-06-11_06:38:34.96396 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Environment: production"}
2024-06-11_06:38:34.96430 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Master PID: 6115"}
2024-06-11_06:38:34.96458 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Workers: 6"}
2024-06-11_06:38:34.96495 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Restarts: (✔) hot (✖) phased"}
2024-06-11_06:38:34.96530 {"timestamp":"2024-06-11T06:38:34.962Z","pid":6115,"message":"* Preloading application"}
==> /var/log/gitlab/puma/puma_stderr.log <==
==> /var/log/gitlab/puma/current <==
2024-06-11_06:39:11.26057 bundler: failed to load command: puma (/opt/gitlab/embedded/bin/puma)
2024-06-11_06:39:11.26533 Errno::ENOTSUP: Operation not supported @ realpath_rec - /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket
2024-06-11_06:39:11.26642 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/binder.rb:195:in `realdirpath'
2024-06-11_06:39:11.26713 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/binder.rb:195:in `block in parse'
2024-06-11_06:39:11.26860 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/binder.rb:155:in `each'
2024-06-11_06:39:11.27091 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/binder.rb:155:in `parse'
2024-06-11_06:39:11.27138 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/runner.rb:155:in `load_and_bind'
2024-06-11_06:39:11.27256 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/cluster.rb:339:in `run'
2024-06-11_06:39:11.27588 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/launcher.rb:181:in `run'
2024-06-11_06:39:11.27675 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/lib/puma/cli.rb:80:in `run'
2024-06-11_06:39:11.27725 /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/puma-5.5.2/bin/puma:10:in `<top (required)>'
2024-06-11_06:39:11.27776 /opt/gitlab/embedded/bin/puma:23:in `load'
2024-06-11_06:39:11.27821 /opt/gitlab/embedded/bin/puma:23:in `<top (required)>'
2024-06-11_06:39:12.58583 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"Puma starting in cluster mode..."}
2024-06-11_06:39:12.58636 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Puma version: 5.5.2 (ruby 2.7.5-p203) (\"Zawgyi\")"}
2024-06-11_06:39:12.58682 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Min threads: 4"}
2024-06-11_06:39:12.58734 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Max threads: 4"}
2024-06-11_06:39:12.58787 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Environment: production"}
2024-06-11_06:39:12.58840 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Master PID: 6260"}
2024-06-11_06:39:12.58882 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Workers: 6"}
2024-06-11_06:39:12.58921 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Restarts: (✔) hot (✖) phased"}
2024-06-11_06:39:12.58961 {"timestamp":"2024-06-11T06:39:12.585Z","pid":6260,"message":"* Preloading application"}
Thank you very much!