We’re using a 3rd party SSH daemon - Centrify SSHD. When attempting to install gitlab, I get the following output. I already removed Centrify’s SSH and it installed successfully, but any hints on how to get GitLab to install properly with a 3rd part SSHD?
After running # apt-get install gitlab-ee - Following output:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
1 not fully installed or removed.
Need to get 976 MB of archives.
After this operation, 2602 MB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu focal/main amd64 gitlab-ee amd64 13.10.0-ee.0 [976 MB]
Fetched 976 MB in 2min 24s (6775 kB/s)
Selecting previously unselected package gitlab-ee.
(Reading database … 193841 files and directories currently installed.)
Preparing to unpack …/gitlab-ee_13.10.0-ee.0_amd64.deb …
Unpacking gitlab-ee (13.10.0-ee.0) …
Setting up openssh-server (1:8.2p1-4ubuntu0.2) …
rescue-ssh.target is a disabled or a static unit, not starting it.
Job for ssh.service failed because the control process exited with error code.
See “systemctl status ssh.service” and “journalctl -xe” for details.
invoke-rc.d: initscript ssh, action “restart” failed.
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-03-30 19:59:55 PDT; 8ms ago
Process: 1193017 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 1193018 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=255/EXCEPTION)
Main PID: 1193018 (code=exited, status=255/EXCEPTION)
Mar 30 19:59:55 systemName systemd: Starting OpenBSD Secure Shell server…
Mar 30 19:59:55 systemName sshd: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Mar 30 19:59:55 systemName sshd: error: Bind to port 22 on :: failed: Address already in use.
Mar 30 19:59:55 systemName systemd: ssh.service: Main process exited, code=exited, status=255/EXCEPTION
Mar 30 19:59:55 systemName sshd: fatal: Cannot bind any address.
Mar 30 19:59:55 systemName systemd: ssh.service: Failed with result ‘exit-code’.
Mar 30 19:59:55 systemName systemd: Failed to start OpenBSD Secure Shell server.
dpkg: error processing package openssh-server (–configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gitlab-ee:
gitlab-ee depends on openssh-server; however:
Package openssh-server is not configured yet.
dpkg: error processing package gitlab-ee (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)