FS#61863 - [gitlab-shell] ssh push/pull are broken
Attached to Project:
Community Packages
Opened by Geno (genofire) - Monday, 25 February 2019, 23:58 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 02 April 2019, 02:47 GMT
Opened by Geno (genofire) - Monday, 25 February 2019, 23:58 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 02 April 2019, 02:47 GMT
|
Details
Description:
New Go gitlab-shell binary isn't able to find configuration or old old ruby binary. There are: Forum discussion: https://bbs.archlinux.org/viewtopic.php?pid=1812291 Upstream merge request: https://gitlab.com/gitlab-org/gitlab-shell/merge_requests/252 Additional info: * 8.6.0-1 * /etc/passwd gitlab:x:105:105::/var/lib/gitlab:/usr/share/webapps/gitlab-shell/bin/gitlab-shell Steps to reproduce: * update to 8.6.0-1 * push/pull (or just connect) via ssh Workaround: * Change shell to /usr/share/webapps/gitlab-shell/bin/gitlab-shell-ruby |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Tuesday, 02 April 2019, 02:47 GMT
Reason for closing: Fixed
Tuesday, 02 April 2019, 02:47 GMT
Reason for closing: Fixed
I got the following error after updating gitlab-shell to 8.6.0-1:
```
$ git pull
no such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.`
```
That is not the same error as described in the forum post or in the merge request. However, changing the shell for user gitlab to the gitlab-shell-ruby one did fix the problem.
It seems to me this might be another bug?
I tried what "Geno (genofire)" suggested and the workaround seems to work. Thank you!
Just to be clear, until now the user "gitlab" where using "gitlab-shell" as shell:
# getent passwd gitlab
gitlab:x:105:105::/var/lib/gitlab:/usr/share/webapps/gitlab-shell/bin/gitlab-shell
then I applied the following command to change the shell to "gitlab-shell-ruby"
usermod -s /usr/share/webapps/gitlab-shell/bin/gitlab-shell-ruby gitlab
I see 252.patch is still being applied, so it could be another separate issue with gitlab-shell go version.
For me i still have this problem when i switch back to the go version:
chsh gitlab -s /usr/share/webapps/gitlab-shell/bin/gitlab-shell