Can't clone Remote Repository via SSH / Gitlab-Shell
Created by: discostur
Hi,
i updated from 6.1 to 6.2 and since then, i can't checkout repositories via SSH. It looks like Gitlab-Shell has some problems ...
root@dev1:/home/git/gitlab# 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.7.4 ? ... OK (1.7.4)
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
update hook up-to-date? ... yes
update hooks in repos are links: ...
...
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: /usr/lib/ruby/1.9.1/net/http.rb:762:in initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/lib/ruby/1.9.1/net/http.rb:762:in
open'
from /usr/lib/ruby/1.9.1/net/http.rb:762:in block in connect' from /usr/lib/ruby/1.9.1/timeout.rb:54:in
timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:99:in timeout' from /usr/lib/ruby/1.9.1/net/http.rb:762:in
connect'
from /usr/lib/ruby/1.9.1/net/http.rb:755:in do_start' from /usr/lib/ruby/1.9.1/net/http.rb:744:in
start'
from /home/git/gitlab-shell/lib/gitlab_net.rb:62:in get' from /home/git/gitlab-shell/lib/gitlab_net.rb:29:in
check'
from /home/git/gitlab-shell/bin/check:11:in `'
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u git -H editor /home/git/gitlab-shell/config.yml
Please fix the error above and rerun the checks.
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
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 namespace: ... ... Projects have satellites? ... ... Redis version >= 2.0.0? ... yes Your git bin path is "/usr/bin/git" Git version >= 1.7.10 ? ... yes (1.7.10)
Checking GitLab ... Finished
Here is my gitlab-shell config:
GitLab user. git by default
user: git
Url to gitlab instance. Used for api calls. Should end with a slash.
gitlab_url: "https://URL:81"
http_settings:
user: someone
password: somepass
ca_file: /etc/ssl/cert.pem
ca_path: /etc/pki/tls/certs
self_signed_cert: true
Repositories path
Give the canonicalized absolute pathname,
REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!
Check twice that none of the components is a symlink, including "/home".
repos_path: "/home/git/repositories"
File used as authorized_keys for gitlab user
auth_file: "/home/git/.ssh/authorized_keys"
Redis settings used for pushing commit notices to gitlab
redis: bin: /usr/bin/redis-cli host: 127.0.0.1 port: 6379
socket: /tmp/redis.socket # Only define this if you want to use sockets
namespace: resque:gitlab
Log file.
Default is gitlab-shell.log in the root directory.
log_file: "/home/git/gitlab-shell/gitlab-shell.log"
Log level. INFO by default
log_level: INFO
Audit usernames.
Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
incurs an extra API call on every gitlab-shell command.
audit_usernames: false