I have a Docker container with a Gitlab application. When i execute a git clone/push/pull the command not work and output this message: "fatal protocol error bad line length character: Welc"
The server response is not the response expected by git (it is a response for a common ssh connection).
This occurs because there is an error during the connection, see:
Mar 20 14:55:31 gitlab sshd[7934]: reverse mapping checking getaddrinfo for XXXX.XXXX.XXX.XX.static.host.gvt.net.br [XXXX.XXXX.XXX.XX] failed - POSSIBLE BREAK-IN ATTEMPT!
Mar 20 14:55:32 gitlab sshd[7934]: Accepted publickey for git from XXXX.XXXX.XXX.XX port XXXX ssh2
Mar 20 14:55:32 gitlab sshd[7934]: pam_loginuid(sshd:session): set_loginuid failed
Mar 20 14:55:32 gitlab sshd[7934]: pam_unix(sshd:session): session opened for user git by (uid=0)
Mar 20 14:55:32 gitlab sshd[7934]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory
Mar 20 14:55:32 gitlab sshd[7934]: error: PAM: pam_open_session(): Cannot make/remove an entry for the specified session
Info
I think i need to enable something in my Docker container because outside a Docker container the gitlab works correctly.
How to fix this? Thanks!
I fix this following this article: http://www.linuxweblog.com/blogs/sandip/20090203/setloginuid-failed-opening-loginuid
Just comment this line in file "/etc/pam.d/sshd":
session required pam_loginuid.so
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With