默认情况下,GitLab会将数据库文件放在 /var/opt/gitlab/postgresql/data 中。如果要修改数据库文件位置,需要将 /var/opt/gitlab/postgresql/data 中的所有文件复制到新的位置,然后在 /etc/gitlab/gitlab.rb 中设置以下4个配置至新的位置:postgresql['dir'] =
postgresql['data_dir'] =
postgresql['log_directory'] =
postgresql['home'] =进行这样的设置后,运行gitlab-ctl reconfigure,却出现下面的错误提示:================================================================================
Error executing action `create` on resource 'user[gitlab-psql]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-d", "/gitlab/postgresql/data", "gitlab-psql"] ----
STDOUT:
STDERR: usermod: user gitlab-psql is currently logged in
---- End output of ["usermod", "-d", "/gitlab/postgresql/data", "gitlab-psql"] ----
Ran ["usermod", "-d", "/gitlab/postgresql/data", "gitlab-psql"] returned 8
1 回答
慕的地10843
TA贡献1785条经验 获得超8个赞
usermod -d /gitlab/postgresql/data gitlab-psql,意思应该是切换一下gitlab-psql用户的登入目录.
- 1 回答
- 0 关注
- 1772 浏览
添加回答
举报
0/150
提交
取消