极狐GitLab 正式推出面向 GitLab 老旧版本(12.x、13.x、14.x、15.x 等)免费用户的专业升级服务,点击查看详情

返回列表 发布新帖

docker swarm 部署权限异常问题

59 0
发表于 5 小时前 | 显示全部楼层 阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

在使用docker swarm 部署gitlab,宿主机用的是smba挂载共享存储,//127.0.0.1/gluster-share/gitlab/git-data /data/glusterfs/gfs/gitlab/git-data cifs vers=3.0,guest,soft,uid=998,gid=998,file_mode=0660,dir_mode=02770,forceuid,forcegid,mapposix 0 0 //127.0.0.1/gluster-share/gitlab/shared /data/glusterfs/gfs/gitlab/shared cifs vers=3.0,guest,soft,uid=998,gid=997,file_mode=0644,dir_mode=02755,forceuid,forcegid,mapposix 0 0 docker-compose.yml: volumes:

  • /data/glusterfs/gfs/gitlab/config:/etc/gitlab
  • /data/glusterfs/gfs/gitlab/logs:/var/log/gitlab
  • /data/glusterfs/gfs/gitlab/data:/var/opt/gitlab
  • /data/glusterfs/gfs/gitlab/shared:/var/opt/gitlab/shared
  - /data/glusterfs/gfs/gitlab/gitlab-ci/builds:/var/opt/gitlab/gitlab-ci/builds
  - /data/glusterfs/gfs/gitlab/git-data:/var/opt/gitlab/git-data

drwxrws--- 2 git git 0 Aug 19 22:24 git-data drwxr-sr-x 2 git gitlab-www 0 Aug 19 22:23 shared 但是一直报错 [2025-08-20T06:54:25+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: storage_directory[/var/opt/gitlab/git-data/repositories] (gitaly::git_data_dirs line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] (gitaly::git_data_dirs line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: Failed asserting that ownership of "/var/opt/gitlab/git-data/repositories" was git:git [2025-08-20T06:54:25+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: storage_directory[/var/opt/gitlab/shared] (gitlab::rails_pages_shared_path line 5) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /var/opt/gitlab/shared] (gitlab::rails_pages_shared_path line 36) had an error: Mixlib::ShellOut::ShellCommandFailed: Failed asserting that ownership of "/var/opt/gitlab/shared" was git:gitlab-www gt_gitlab.1.exh6ll2u59bx@master-1 | ---- Begin output of set -x && [ "$(stat --printf='%U:%G' $(readlink -f /var/opt/gitlab/shared))" = 'git:gitlab-www' ] ----

回复

使用道具 举报

意见建议

Email:forum@gitlab.cn
  • 关注公众号
  • 添加专业顾问
Copyright © 2001-2025 极狐GitLab论坛 版权所有 All Rights Reserved. 鄂ICP备2021008419号-1|鄂公网安备42018502006137号
关灯 快速发帖
扫一扫添加专业顾问
返回顶部
快速回复 返回顶部 返回列表