You are not logged in.

#1 2022-06-10 07:03:03

marcus
Member
Registered: 2012-09-26
Posts: 23

[SOLVED] GitLab: unable to push/pull via ssh after upgrade

Hi Forum,

since the last upgrade, I am unable to push to / pull from my GitLab server via ssh. It fails with:

$ git pull                                                                                                                                                                                                                                                                                                                                                                                                      main= 8:51
remote:
remote: ========================================================================
remote:
remote: rpc error: code = Unimplemented desc = unknown method SSHUploadPackWithSidechannel for service gitaly.SSHService
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.

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

On the server, i can see the following when I try git pull:

# tail -f /var/log/gitlab/*.log
==> gitlab-shell.log <==
{"command":"*uploadpack.Command","correlation_id":"01G566EXVP0TA4ZYWB28W5T7HH","env":{"GitProtocolVersion":"","IsSSHConnection":true,"OriginalCommand":"git-upload-pack 'pub/dotfiles.git'","RemoteAddr":"10.0.0.9"},"level":"info","msg":"gitlab-shell: main: executing command","time":"2022-06-10T06:57:38Z"}

==> production.log <==
Started POST "/api/v4/internal/allowed" for 127.0.0.1 at 2022-06-10 08:57:38 +0200

==> api_json.log <==
{"time":"2022-06-10T06:57:38.243Z","severity":"INFO","duration_s":0.03379,"db_duration_s":0.00364,"view_duration_s":0.03015,"status":200,"method":"POST","path":"/api/v4/internal/allowed","params":[{"key":"action","value":"git-upload-pack"},{"key":"project","value":"pub/dotfiles.git"},{"key":"changes","value":"_any"},{"key":"protocol","value":"ssh"},{"key":"key_id","value":"5"},{"key":"check_ip","value":"10.0.0.9"}],"host":"unix","remote_ip":"127.0.0.1","ua":"GitLab-Shell","route":"/api/:version/internal/allowed","queue_duration_s":0.041555,"redis_calls":6,"redis_duration_s":0.002147,"redis_read_bytes":1044,"redis_write_bytes":523,"redis_cache_calls":6,"redis_cache_duration_s":0.002147,"redis_cache_read_bytes":1042,"redis_cache_write_bytes":321,"redis_rate_limiting_read_bytes":2,"redis_rate_limiting_write_bytes":202,"db_count":6,"db_write_count":0,"db_cached_count":0,"db_replica_count":0,"db_primary_count":6,"db_main_count":6,"db_main_replica_count":0,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_main_cached_count":0,"db_main_replica_cached_count":0,"db_replica_wal_count":0,"db_primary_wal_count":0,"db_main_wal_count":0,"db_main_replica_wal_count":0,"db_replica_wal_cached_count":0,"db_primary_wal_cached_count":0,"db_main_wal_cached_count":0,"db_main_replica_wal_cached_count":0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.01,"db_main_duration_s":0.01,"db_main_replica_duration_s":0.0,"cpu_s":0.062878,"pid":1478,"rate_limiting_gates":["gitlab_shell_operation"],"correlation_id":"01G566EXVQNQRC77Z2SRH8901B","meta.user":"marcus","meta.project":"pub/dotfiles","meta.root_namespace":"pub","meta.client_id":"user/2","meta.caller_id":"POST /api/:version/internal/allowed","meta.remote_ip":"127.0.0.1","meta.feature_category":"source_code_management","content_length":"126","request_urgency":"default","target_duration_s":1}

==> gitlab-shell.log <==
{"content_length_bytes":619,"correlation_id":"01G566EXVP0TA4ZYWB28W5T7HH","duration_ms":78,"level":"info","method":"POST","msg":"Finished HTTP request","status":200,"time":"2022-06-10T06:57:38Z","url":"http://unix/api/v4/internal/allowed"}
{"command":"git-upload-pack","correlation_id":"01G566EXVP0TA4ZYWB28W5T7HH","git_protocol":"","gl_key_id":5,"gl_key_type":"key","gl_project_path":"pub/dotfiles","gl_repository":"project-5","level":"info","msg":"executing git command","remote_ip":"10.0.0.9","time":"2022-06-10T06:57:38Z","user_id":"user-2","username":"marcus"}
{"correlation_id":"01G566EXVP0TA4ZYWB28W5T7HH","error":"rpc error: code = Unimplemented desc = unknown method SSHUploadPackWithSidechannel for service gitaly.SSHService","exit_status":0,"level":"error","msg":"Failed to execute Git command","time":"2022-06-10T06:57:38Z"}
{"correlation_id":"01G566EXVP0TA4ZYWB28W5T7HH","error":"rpc error: code = Unimplemented desc = unknown method SSHUploadPackWithSidechannel for service gitaly.SSHService","level":"warning","msg":"gitlab-shell: main: command execution failed","time":"2022-06-10T06:57:38Z"}

My installed versions are:

% pacman -Qs gitlab | grep local
local/gitlab 15.0.2-1
local/gitlab-gitaly 14.4.5-2
local/gitlab-runner 15.0.0-2
local/gitlab-shell 3:14.7.1-1
local/gitlab-workhorse 8.65.0-1

Any advise?

Cheers,
Marcus

Last edited by marcus (2022-06-10 07:32:43)

Offline

#2 2022-06-10 07:08:13

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] GitLab: unable to push/pull via ssh after upgrade

You'll have to update gitaly. For some reason the gitlab package in the arch repositories has been updated without gitaly. gitlab-gitaly is in community.testing, so you could move to the testing repositories or wait until gitaly leaves testing.
https://bugs.archlinux.org/task/74950

Last edited by progandy (2022-06-10 07:10:29)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2022-06-10 07:32:07

marcus
Member
Registered: 2012-09-26
Posts: 23

Re: [SOLVED] GitLab: unable to push/pull via ssh after upgrade

THX progandy, that fixed it.

For reference:

# pacman -U https://phinau.de/arch/community-testing/os/x86_64/gitlab-gitaly-15.0.2-1-x86_64.pkg.tar.zst https://phinau.de/arch/community-testing/os/x86_64/gitlab-shell-3:14.7.3-1-x86_64.pkg.tar.zst

Marking as solved

Offline

Board footer

Powered by FluxBB