I’m trying to install gitlab-ce on an active directory domain joined Linux server. It’s installed but some/most (varies upon reboot) gitlab services are not started; to be more accurate, it seems that they delay way too much (a couple of hours until the web interface is up for example). No customizations, standard setup according to gitlab’s instructions.
Local users needed by gitlab installation are created, I’m wondering if they are looked up in active directory. An error I could locate in the logs is .socket files that are not created.
I tried to install gitlab-ee also, same behaviour.
To rule out other possible causes, I repeated the installation on a cloned VM, same config and specs, but not joined to domain; gitlab-ce was installed without problems.
Errors returned after initial installation:
== Seed from /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/010_settings.rb
Could not save CI JWT signing key
--> Help page documentation base url is blocked: execution expired
--> Diagramsnet url is blocked: execution expired
--> Public runner releases url is blocked: execution expired
STDERR:
---- End output of "bash" ----
Ran "bash" returned 1
warning: %posttrans(gitlab-ce-16.7.0-ce.0.el8.x86_64) scriptlet failed, exit status 1
For anybody having similar problem: The issue seems to be network connectivity, not AD domain membership! After adding gitlab-ce repo, I downloaded the package instead of installing it. Next step, disconnected server from network by unplugging the (virtual) cable. Afterwards the installation went smoothly.
Some info on the enterprise network setup. Proxy server to access the internet, DNS servers do not resolve internet urls-addresses. Could these produce the problem? I didn’t investigate further.
Yet the problem is not solved: gitlab-ce is installed by delays and I cannot change some preferences.
I suspect that due to being installed to a closed network, no Internet access, there are some connectivity issues. I still get in Preferences.
The form contains the following errors:
· Help page documentation base url is blocked: execution expired
· Diagramsnet url is blocked: execution expired
· Public runner releases url is blocked: execution expired
Apparently @rypgl76 's solution seems to be the proper one. In the meantime I had solved the problem with this workaround:
I noticed using tcpdump that the gitlab server tried to connect to certain IPs to the internet. So I added these in /etc/hosts, since no internet dns resolving is possible inside the company network:
In my setup, they still cannot be accessed, only resolved. This somehow had solved the issue. Nevertheless I executed the commands in psql as a more proper solution.