如果出现一些种种问题,跑下面的命令 ! 会有相应的提示的。
问题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