如果出现一些种种问题,跑下面的命令 !  会有相应的提示的。

问题1

Access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

问题

git push

error: The requested URL returned error: 403 Forbidden while accessing

git push

error: The requested URL returned error: 401 Forbidden while accessing

[root@devops-ruifengyun ~ ]$ bunde exec rake gitlab:shell:setup RAILS_ENV=production
zsh: command not found: bunde
[root@devops-ruifengyun ~ ]$ 
[root@devops-ruifengyun ~ ]$ 
[root@devops-ruifengyun ~ ]$ cd /home/git/gitlab
                                                                                
[root@devops-ruifengyun gitlab (5-3-stable)]$ 
[root@devops-ruifengyun gitlab (5-3-stable)]$ 
[root@devops-ruifengyun gitlab (5-3-stable)]$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment …

Git configured for git user? … yes
Has python2? … yes
python2 is supported version? … yes

Checking Environment … Finished

Checking GitLab Shell …

GitLab Shell version >= 1.4.0 ? … OK (1.8.0)
Repo base directory exists? … yes
Repo base directory is a symlink? … no
Repo base owned by git:git? … yes
Repo base access is drwxrws—? … yes
post-receive hook up-to-date? … can’t check because of previous errors
post-receive hooks in repos are links: … can’t check because of previous errors

Checking GitLab Shell … Finished

Checking Sidekiq …

Running? … no
  Try fixing it:
  sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production
  For more information see:
  doc/install/installation.md in section “Install Init Script”
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq … Finished

Checking GitLab …

Database config exists? … yes
Database is SQLite … no
All migrations up? … 
yes
GitLab config exists? … yes
GitLab config outdated? … no
Log directory writable? … yes
Tmp directory writable? … yes
Init script exists? … yes
Init script up-to-date? … yes
Projects have satellites? … 
webscoket … yes
admin / Clusterops … yes
admin / reportops … yes
admin / dbaops … yes
admin / sdf … can’t create, repository is empty
admin / aaaa … can’t create, repository is empty
Redis version >= 2.0.0? … yes
Your git bin path is “/usr/bin/git”
Git version >= 1.7.10 ? … yes (1.8.3)

Checking GitLab … Finished

[root@devops-ruifengyun gitlab (5-3-stable)]$ 
[root@devops-ruifengyun gitlab (5-3-stable)]$ git –version
git version 1.8.3.2



对Python及运维开发感兴趣的朋友可以加QQ群 : 478476595 !!!
{ 2000人qq大群内有各厂大牛,常组织线上分享及沙龙,对高性能及分布式场景感兴趣同学欢迎加入该QQ群 }

另外如果大家觉得文章对你有些作用!   帮忙点击广告. 一来能刺激我写博客的欲望,二来好维护云主机的费用.
如果想赏钱,可以用微信扫描下面的二维码. 另外再次标注博客原地址  xiaorui.cc  ……   感谢!
暂无相关产品

发表评论