Questions tagged [gitlab]

Gitlab is self hosted Git management software.

The main site for Gitlab.

464 questions
4
votes
1 answer

GitlabHQ + Gitlab-CI: customizing build logic

We are using GitlabHQ and Gitlab-CI in our infrastructure. Having such continuous integration set we are willing to customize the build logic in CI. Right now on new commit GitlabHQ triggers a hook to CI, which tells gitlab-ci-runner to run a build…
4
votes
2 answers

How to redirect http requests to https (nginx)

There appear to be many questions and guides out there that instruct how to setup nginx to redirect http requests to https. Many are outdated, or just flat out wrong. # MANAGED BY PUPPET upstream gitlab { server…
spuder
  • 1,725
  • 3
  • 26
  • 42
4
votes
2 answers

Moving Gitlab and Gitolite server to another machine

Now, I have gitlab and gitolite running on my ubuntu server. However, this server is too slow and my company wish to move the server to another machine. Are there any way to move gitlab and gitolite server( the whole files, users and setting) to…
Sam Mie
  • 49
  • 1
  • 2
4
votes
2 answers

GitLab post-receive hook not firing

Apologies if this isn't the right stackexchange. I have a GitLab install. It was installed over the top of a gitolite install that was only a few days old, and I assume this non-standard setup is at the root of my problem, but I cannot pin it…
Ben Graham
  • 181
  • 1
  • 7
4
votes
1 answer

Gitlab Debian Repository Public Key is Not Available

When running 'sudo apt update' I get the following error: user@gitlab:~$ sudo apt update Hit:1 http://security.debian.org/debian-security stretch/updates InRelease Ign:2 http://ftp.fi.debian.org/debian stretch InRelease Hit:3…
Stuggi
  • 3,506
  • 4
  • 19
  • 36
3
votes
2 answers

ERROR: (gcloud.auth.activate-service-account) Could not read json file /root/gcloud-service-key.json: No JSON object could be decoded

I'm getting the below error when running CI/CD pipeline in GitLab. $ echo "$GCLOUD_SERVICE_KEY" > ${HOME}/gcloud-service-key.json $ gcloud auth activate-service-account gitlabci@bizao-hub.iam.gserviceaccount.com…
3
votes
1 answer

"initdb: encoding mismatch" when running gitlab-ctl reconfigure

I am installing Gitlab-ce Omnibus in a Vagrant box (Debian 18.04 LTS). In my provisioning script, I run gitlab-ctl reconfigure. I get an error: initdb: encoding mismatch Console output: default: * execute[/opt/gitlab/embedded/bin/initdb -D…
Amedee Van Gasse
  • 328
  • 3
  • 18
3
votes
2 answers

GitLab always Redirects to HTTPS

I would like to run GitLab behind an Apache Reverse Proxy. The Apache makes all the SSL Stuff. I´ve configured gitlab.rb like this. external_url 'https://gitlab.example.com' nginx['listen_address'] = '192.168.178.63' nginx['listen_port'] =…
Jan Rosum
  • 71
  • 2
  • 6
3
votes
1 answer

Dockerfile cloning from private gitlab with ssh and deploy key

(EDIT) This problem was happening also from my laptop using root and my user, which could get the greeting when trying to ssh with git user. Then tried the ansible playbook and it raised errors for the repo too. Tried another one and that clones…
Rubén Cabrera
  • 171
  • 1
  • 9
3
votes
4 answers

Issues installing gitlab-ce on Ubuntu 16.04 (xenial)

I've been trying to install gitlab-ce from the Omnibus packages for Ubuntu 16.04 (GNU/Linux 4.6.5-x86_64-linode71 x86_64) and I'm completely stuck. Issue #1 All of the docs say to run the command sudo apt-get install gitlab-ce but I always get a…
Mark Biek
  • 1,927
  • 2
  • 14
  • 12
3
votes
2 answers

Is it safe to expose dev/team tools publicly without VPN?

We would like to have self-hosted slack alternative (mattermost, rocket.chat), but hiding it behind VPN is uncomfortable for some our users. I would feel more safe if it wasn't public, but how risky it really is? I believe this question can be…
smokeing
  • 33
  • 2
3
votes
2 answers

Configure Gitlab to use FreeIPA as LDAP server

I'm running in ran into a bit of a trouble and I don't seem to be able to fix it. Please follow the scenario bellow: I have two servers: ONE (10.0.3.10): Ubuntu based, having Gitlab (as deb package) installed with the following…
Dragos Cirjan
  • 31
  • 1
  • 4
3
votes
1 answer

Nginx forwarding git.example.com to www.example.com

As in the title, my website, git.mad3ngineer.net forwards to www.mad3ngineer.net. However, my ci.mad3ngineer.net uses the same system but works just fine... The website can be checked out at http://git.mad3ngineer.net which you can see forwards you…
3
votes
1 answer

How to provide external access to only the Git projects (clone/pull/push) of an internal GitLab deployment

We have set-up a GitLab server (GitLab 7.0 Community Edition). It is up and running and our colleagues can use it within the LAN (the IP address and Host are only visible from the LAN). Some of the projects hosted on this GitLab instance should be…
Huygens
  • 1,708
  • 3
  • 20
  • 36
3
votes
3 answers

gitlab ssh access connection refused

I'm trying to access gitlab with my account in SSH with public key authentication. I have uploaded my public key and here is my SSH configuration: content of /home/$my_user/.ssh/config Host gitlab User git Port 22 Hostname…
philippe
  • 2,303
  • 4
  • 32
  • 53