搭建git 服务器出现 Error executing action `create` on resource 'user[GitLab user and group]'
错误:
================================================================================
Error executing action `create` on resource 'account[GitLab user and group]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
linux_user[GitLab user and group] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/account.rb line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ----
STDOUT:
STDERR: usermod: user git is currently used by process 15309
---- End output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ----
Ran ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] returned 8
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/users.rb
28: account "GitLab user and group" do
29: username gitlab_username
30: uid node['gitlab']['user']['uid']
31: ugid gitlab_group
32: groupname gitlab_group
33: gid node['gitlab']['user']['gid']
34: shell node['gitlab']['user']['shell']
35: home gitlab_home
36: manage node['gitlab']['manage-accounts']['enable']
37: end
38:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/users.rb:28:in `from_file'
account("GitLab user and group") do
action [:create]
default_guard_interpreter :default
declared_type :account
cookbook_name "gitlab"
recipe_name "users"
username "git"
uid nil
ugid "git"
groupname "git"
gid nil
shell "/bin/sh"
home "/var/opt/gitlab"
manage true
end
System Info:
------------
chef_version=13.6.4
platform=ubuntu
platform_version=18.04
ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client
Running handlers:
There was an error running gitlab-ctl reconfigure:
account[GitLab user and group] (gitlab::users line 28) had an error: Mixlib::ShellOut::ShellCommandFailed: linux_user[GitLab user and group] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/account.rb line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ----
STDOUT:
STDERR: usermod: user git is currently used by process 15309
---- End output of ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] ----
Ran ["usermod", "-s", "/bin/sh", "-d", "/var/opt/gitlab", "git"] returned 8
解决方案
搭建git 服务器出现 Error executing action `create` on resource 'user[GitLab user and group]'相关推荐
- CentOS7搭建Git服务器
CentOS7搭建Git服务器 文章目录 CentOS7搭建Git服务器 前言 搭建步骤 参考链接 前言 现有一台操作系统为CentOS 7的服务器,要将其作为代码库服务器使用,要求使用Git进行代码 ...
- Windows 使用 Gogs 搭建 Git 服务器
随便说两句 之前有使用 Gitblit 在Windows搭建Git服务器,用的也挺好的,可能安装起来略麻烦一点.现在全用 Gogs 在windows搭建Git服务器,主要是因界面好看,管理更方便一些. ...
- 88.搭建git服务器 安装与使用gitlab gitlab备份与恢复
2019独角兽企业重金招聘Python工程师标准>>> 22.13 搭建git服务器 22.14/22.15 安装gitlab 22.16 使用gitlab 22.17 gitlab ...
- CentOS下搭建Git服务器Gitosis
说明:由于条件有限,我这里使用的是同一台centos的,但教程内容基本上通用. 1.编译安装git git安装教程:http://blog.haohtml.com/archives/10093 2.安 ...
- 使用 Gitolite 搭建 Git 服务器
Gitolite 是在 Git 之上的一个授权层,依托 sshd 或者 httpd 来进行认证.(认证是确定用户是谁,授权是决定该用户是否被允许做他想做的事情). 通过 Gitolite 你可以设置访 ...
- 使用Gitosis搭建Git服务器
使用Gitosis搭建Git服务器作者: JeremyWei | 可以转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明 网址: http://weizhifeng.net/build-g ...
- centos7 下搭建git服务器
总的来说,搭建git和svn形式差不多 1.首先要在服务器安装git环境,创建用户密码和仓库等 2.然后个人主机(基本是window)安装git客户端 3.将个人主机客户端的秘钥写到git服务器的一个 ...
- 搭建Git服务器教程转载
1. 在Windows下使用ssh+msysgit客户端搭建Git服务器 http://www.codeproject.com/Articles/296398/Step-by-Step-Setup-G ...
- git进入项目目录 windows_Windows下搭建Git服务器
Windows平台下搭建Git服务器的图文详解及教程 Git没有客户端服务器端的概念,但是要共享Git仓库,就需要用到SSH协议(FTP , HTTPS , SFTP等协议也能实现Git共享,此文档不 ...
最新文章
- 机器学习中的线性回归,你理解多少?
- 如何查看SharePoint未知错误
- jquery ajax POST/GET 请求至 ASP.NET WebAPI
- KMP算法的nextval[] 即优化next[]
- LeetCode MySQL 184. 部门工资最高的员工
- 【算法分析与设计】快速幂算法与快速幂取模算法
- 宝塔可以修改服务器内存限制吗,宝塔内存使用率很高的解决方法 cpu过高这样做!...
- 数独基本规则_数独专题一:幼儿数独启蒙
- 使用grunt合并压缩js、css文件
- Redis 常见问题 与 常见错误
- PreferenceActivity和PreferenceFragment对比
- python回复qq信息_python脚本实现QQ自动发送、回复消息机器人
- 图像检索系列——利用深度学习实现以图搜图
- ISO8583 报文协议
- 微信的支付(二维码,APP)
- 键盘与电脑识别问题?
- vue进入浏览器大屏
- Type Qualifier (GLSL)--GLSL类型修饰词
- 北京西客站火车行李托运指南
- Python+Selenium 实现新理念外语网络教学平台 自动答英语听力 -- 山东科技大学
热门文章
- 光纤收发器双模和单模有什么区别?如何区分单模、双模光纤收发器?
- 远程桌面分辨率取决于服务器还是客户端,关于Windows8.1高分辨率,远程桌面连接的界面显示很小的问题~...
- 自定义控件其实很简单 五
- 关于IOS中设置中找不到开发者选项的解决办法
- hadoop - hadoop2.6 伪分布式 示例 wordcount 分词 和 hdfs常用操作命令
- Python量化交易实战:获取股票数据并做分析处理
- beego的安装和升级
- adb install 安装错误常见列表
- 配置WebLogic Tuxedo Connector (转)
- Base64方式上传文件