Questions tagged [gitlab]
Gitlab is self hosted Git management software.
472
questions
2
votes
1
answer
615
views
GitLab Helm Chart Minio use existing PVC
Previously in my helm chart, I had the snippet below...
minio:
replicas: 1
persistence:
enabled: true
existingClaim: minio
#size: 10Gi
serviceType: LoadBalancer
Because I do have an ...
0
votes
0
answers
3k
views
How to run aws cli on amazon linux container?
I want to run amazon linux commands as part of gitlab pipeline.
So, trying to use docker image as runner, amazonlinux:latest
So, connected to docker container and ran below command.
yum -yq install ...
0
votes
1
answer
377
views
Key forwarding with putty isn't working, but plink DOES work
I'm having a problem where putty's key forwarding (via pageant) to my gitlab server isn't working. I'm doing a putty session to my server, with ssh auth forwarding enabled. I see the effects of that ...
1
vote
1
answer
244
views
Using git lfs to manage data in storage server
I am part of a small physics research team (10-15 people) which recently has acquired a storage server and I will be responsible for setting it up. As such, I needed to think the best way to organize ...
1
vote
0
answers
2k
views
Unable to login to docker via Ubuntu 18.04.5 LTS
I am having an issue on login to docker from my Ubuntu 18.04.5 LTS
This is the command I run to login docker
sudo docker login -u myname -p mypass
This is the error I've got
Error response from ...
0
votes
1
answer
131
views
How do I write a maintainable Terraform template
for my company I have been tasked with creating a standard configuration and template for an (EKS) Kubernetes cluster in Terraform that can be deployed using GitLab CI/CD. The deployment and ...
0
votes
0
answers
3k
views
Mount volume to build image used by gitlab runner
I have custom image where I want to run some tests which require installed app which in turn need openGL context. I can run it in container composed this way and manually build project and run tests. ...
0
votes
1
answer
1k
views
NGINX location rewrite for Gitlab
I'm trying to make Gitlab work behind Nginx. my configs:
Nginx:
upstream gitlab-workhorse {
server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket fail_timeout=0;
}
location /gitlab/ {
...
2
votes
1
answer
5k
views
Terraform source Gitlab module
I need help with sourcing terraform modules from a gitlab repository with multiple modules in it like ec2, vpc etc. I have two branches in module repo - develop and main. I tried all the ways below ...
0
votes
0
answers
2k
views
In Gitab repo Merge Requests shows "Checking pipeline status" as stuck
We recently updated gitlab server and we can see for some repos while creating Merge Requests we can see "Checking pipeline status" as stuck. We verified and confirmed settings for "...
0
votes
1
answer
98
views
How to detect traffic change and trigger GitLab pipeline?
We have two etcd clusters running in Kubernetes one act as primary(A) and the second one act as backup(B). We also have etcdctl make-mirror in place between these two clusters, now the problem is if ...
0
votes
0
answers
3k
views
Openssl s_client shows CONNECT_CR_SRVR_HELLO only when -servername option provided
I have an HTTPS-enabled centOS7 server setup with GitLab/nginx, with an A record registered on a payed DNS and certificate verified by Let's Encrypt. (I will use gitlab.example.com here). The domain ...
1
vote
0
answers
92
views
How to automatically link commit-history to a ticketing system?
Our organization uses Gitlab to host all our git-repositories. Most commits refer to one (sometimes more) Jira-tickets and/or other issue-trackers. Something like:
Add a widget to the trinket
Jira: ...
0
votes
2
answers
997
views
How to pass enveronment variable in gitlab to setup cicd gitlab-ci.yml
Running with gitlab-runner 14.5.2 (e91107dd)
on ibrahimrunner a8c7nx2r
Preparing the "shell" executor
00:00
Using Shell executor...
Preparing environment
00:00
Running on ip-172-31-5-177...
...
0
votes
1
answer
28
views
Problems with deploy
I've got problem when deploying to server getting the below error (screen 1). After machine restart I can't install gitlab-runner. Any idea where the problem is?
2
votes
1
answer
8k
views
curl says a valid certificate is expired
I have a gitlab community edition hosted on a server, and when using curl on this server to fetch this local gitlab website, I get an expired certificate error even if the dates are valid:
curl --...
1
vote
2
answers
2k
views
GitLab with local IP install hangs at logrotate
I am trying and failing to install GitLab (EE) onto an on-premises bare-metal server PC running Ubuntu Server 20.04. The server is intended to later have internet-facing access, but for now it needs ...
3
votes
1
answer
2k
views
Docker/Podman in Docker fails as a GitLab CI job
Context
I am running my own GitLab instance with an extra server for CI. In case it matters my host for the gitlab runner has CentOS 8 and the gitlab runner is version 14.4.0 and the gitlab instance ...
-1
votes
1
answer
615
views
Is Gitlab the only vendor support subgroups level git repos?
Try to evaluate a few SaaS Git providers (e.g., Github, Bitbucket) other than Gitlab, but I don't think any of them support a subgroup level repo
mycompany/backend/core.git
mycompany/devtools.git
...
1
vote
2
answers
24k
views
No such file or directory when trying to create .ssh keys
When I attempt to create ssh keys on my Debian instance :
ssh-keygen -f /home/serverkeys/.ssh/id_rsa
I am getting the error : Saving key "/home/serverkeys/.ssh/id_rsa" failed: No such file ...
0
votes
1
answer
157
views
Which host of redis in config, if running in the same k8 cluster?
I am running a redis cluster helm install -n redis staging bitnami/redis-cluster in my k8s cluster and want to use this with a self hosted gitlab. In the docs I see I have to set
redis:
install: ...
1
vote
0
answers
2k
views
Postgres and redis pods are failing from time to time
I've setup a kubernetes cluster (1.19) using RKE on a bare betal ubuntu (20.04) machine.
I'm running a self hosted gitlab instance (installed by helm chart) on that cluster.
From time to time (every 1-...
0
votes
0
answers
365
views
Whitelist external IP for an external service for on premise Gitlab in AWS private network (VPC)
I have a technical question, I have an on premise Gitlab on a private network and I would like to have an integration (Localize), there documentation says that I have to whitelist a range of IP ...
0
votes
1
answer
325
views
GitLab serves certificate list of 1 certificates
I'm trying to run GitLab's omnibus installer and use my organization's SSL certificate, but SSL clients complain that the certificate issuer is unknown. How am I supposed to configure intermediate ...
1
vote
1
answer
15k
views
GitLab Runner for GitLab server with CA signed certificate failing with: self signed certificate in certificate chain
My company changed the Certification Authority (it was a single CA and now we have a root CA and an intermediate CA). I changed the configuration in the GitLab instance with success and moved to the ...
0
votes
1
answer
902
views
Forward local ssh key to remote host
I'm using ansible and i'm wondering. Is it possible to rewrite a local ssh key to a remote machine? I need to clone a repository using my private key on a remote machine. I cannot add the key from the ...
0
votes
1
answer
296
views
Certificate for Gitlab-Server is invalid für Subject Alternative Name
My company has a certificate for https://data.ddl.at, which has, among others, a SAN (Subject Alternative Name) for gitlab.ddl.at.
This Gitlab-Server is internal, and the domain name is only resolved ...
1
vote
2
answers
3k
views
GitLab Runner failing to register after migration to new cluster
I have GitLab installed in Kubernetes with their Helm chart.
I migrated my old Gitlab deployment from one cluster to another with the following steps:
Scale down all pods in old cluster
Apply values....
0
votes
0
answers
118
views
Pass SSH connection to different server on connect
Good evening,
I'm currently trying to get my hands a bit more deeper into linux then im familiar with.
Lets get straight to my problem:
First, lets talk about my setup.
I have 3 servers, with each ...
0
votes
1
answer
1k
views
How do I have to configure certmanaager when using a gitlab managed cluster?
I use a scaleway kubernetes cluster v1.21.1 managed by gitlab.
To do this, I created a Cluster Management Project with the default template.
https://docs.gitlab.com/ee/user/clusters/...
1
vote
1
answer
885
views
apache2.4 reverse proxy to nginx gitlab server [closed]
I'm currently running an owncloud server based on a apache 2.4 webserver on my raspberry pi 4 8GB (working on dietpi 7.3) which works great i have a public domain setup and use letsencrypt to create ...
0
votes
2
answers
12k
views
PM2 - Process or Namespace not found when deploying with GitLab CI
When deploying from CI, as the user who started PM2, pm2 restart appname always results in [PM2][ERROR] Process or Namespace appname not found
whoami/who on deployment shows the correct user.
Tried ...
0
votes
1
answer
167
views
GitLab self-hosted instances data sharing
I'm working on a personal project with some friends and it is becoming quite large, so I'm considering to self-host a GitLab instance to help preventing the development to go to complete chaos.
...
2
votes
1
answer
1k
views
Gitlab Omnibus Background Migrations Continually Fail on Upgrade
I’m working on upgrading a gitlab omnibus installation (v12.3.0-ce) on a VM instance. Our goal is to ultimately upgrade to the latest version of gitlab (v13.x). According to the documentation we need ...
1
vote
1
answer
576
views
Separate server for gitlab-pages
I am trying to configure a setup, where gitlab-pages is being server from separate gitlab instance. I have followed steps described in official docs (all with NFS shares, and same UIDs on both ...
1
vote
1
answer
7k
views
CreateContainerError: context deadline exceeded
For a project, I must use big containers (500Mb to 60Gb).
I don't have a precise measurement but when I run containers larger than 3-5Gb with gitlab-runner, I get an error in rancher: ...
0
votes
1
answer
911
views
Is it possible to run gitlab as https/ssh through OS-Login IAP tunnels?
We have a gitlab server running on a GCP instance. Currently this instance has a mapped internet IP and a proper DNS name. Recently we have desired to remove this internet IP and force all access ...
-1
votes
1
answer
154
views
Why is login with key authentication into gitlab behind a nat not working
I want to use gitlab behind a router doing key authentication. For some reason it does not.
It exits already with the command git clone
> git clone https://git.example.org/me/project.git c:\Users\...
0
votes
1
answer
3k
views
Gitlab as Terraform state management with HTTP backend not using project credentials?
I've been working to get a monorepo for Terraform up and running. Terraform is executed inside a container. However, when I try to init the backend for http pointing towards my self-hosted Gitlab, it ...
2
votes
0
answers
494
views
System call failure when executing CI script in Docker
I'm currently setting up GitLab CI/CD. The Runner is installed on a Windows Server 2019 VM which has Docker Engine running. My gitlab-ci.yml looks something like this:
variables:
GIT_STRATEGY: clone
...
0
votes
1
answer
982
views
Can't ssh to GitLab ee in a docker container
I've installed GitLab ee on Docker. I'd like to use authentication via ssh instead password but each time I try to authenticate, connection is closed. SSH Port is 1122->22 so I'm connecting with ...
0
votes
0
answers
150
views
Generate certs for Integrating GitLab CI with Kubernetes
I want to integrate GitLab CI with Kubernetes and I need to fill up the config.toml file. Do you have any idea how can I generate these certificates?
cert_file: Optional Kubernetes apiserver user auth ...
2
votes
1
answer
4k
views
Gitlab Container Registry timeout when connecting
Building an on-prem / self-hosted deployment of Gitlab for the first time. I've got the self-installation completed, single box and three dedicated hosts for runners (that I'm working to get them ...
0
votes
1
answer
930
views
Catch logs of containers created by a Docker executor of a GitLab Runner
Given a Docker Engine client (GitLab Runner) which creates and destroys containers dynamically through the Docker Engine API.
Constraints
The HostConfig.LogConfig.Type is always set to json-file and ...
2
votes
1
answer
846
views
How do I configure the hostname for the GitLab NixOS service?
I am trying to deploy a new GitLab instance on NixOS 20.09.1632.a6a3a368dda (Nightingale).
I have this rather minimal configuration.nix:
{ modulesPath, ... }:
let
host = "example.org";
...
1
vote
1
answer
3k
views
Kaniko (GitLab CI, K8s) can not push to Nexus Repository Manager: UNAUTHORIZED: access to the requested resource is not authorized
my GitLab CI job build a example container image with Kaniko with the GitLab runner on K8s. All services are in my LAN behind a static IP. The build process pulls an ArchLinux image from my first ...
19
votes
6
answers
48k
views
Docker login to AWS ECR from GitLab CI fails with "dial tcp: lookup docker on x.x.x.x:53: no such host" when pulling docker:dind from ECR
I'm working on porting a collection of Docker images used for GitLab CI/CD building and deployment from Dockerhub to AWS public ECR.
Everything works as it should except for the standard Docker image ...
0
votes
2
answers
2k
views
Gitlab with Apache 2.4 gives 502: AH01102: error reading status line from remote server 127.0.0.1:8080
I am not a server admin, so I do not configure Apache Servers on a daily basis.
But I want to use Gitlab on our server with SSL and Apache 2.4.6. (httpd on CentOS 7).
So far I have added the ...
1
vote
1
answer
2k
views
Gitlab push very slow - Gitlab-CE
Gitlab push is very slow, Is there any settings I can modify on the internal gitlab-ce server that can make the git push much faster? Right now the push speed is 13.00 KiB/s.
I have some large repo ...
3
votes
0
answers
481
views
How to show docker logs until container becomes healthy
I'm trying to create CI infrastructure for a project. We deploy application with docker. It usually takes some time, to start up application. I would like to see in my gitlab job logs my docker logs......