Questions tagged [gitlab]
Gitlab is self hosted Git management software.
466
questions
0
votes
1
answer
93
views
Why the host of the gitlab url appears encoded
why does my local gitlab generate project clone urls the following way:
http://84fdf6ccc7dc/test/testproject.git
And how can i either
clone the repo using this url and authenticate it with username ...
0
votes
1
answer
100
views
Is it possible to connect directly CloudRun with Gitlab?
I am trying to configure a continuously deployed revision from a source repository with CloudRun on Google Cloud. It is unclear to me how to set, as a source repository, GitLab instead of GitHub or ...
0
votes
0
answers
26
views
How do I get the name of the backup file when using gitlab-backup?
Our Setup:
Ubuntu 22.04 (hosted public vm)
GitLab Community Edition v16.4.0
I'm attempting to create a script to backup our GitLab server. I was testing the gitlab-backup command and it created ...
0
votes
0
answers
67
views
MicroK8s does not authenticate with gitlab private registry
I have an instance of MicroK8s, I am currently migrating my applications. But I can't authenticate to Gitlab's private registry.
About my environment:
MicroK8s
Gitlab (with registry working securely)
...
0
votes
1
answer
95
views
GitLab pages for group get a weird URL
I have an instance of GitLab running on-premise (gitlab-ee/jammy,now 16.4.1-ee.0 amd64), and I've configured GitLab pages. Base domains are:
https://gitlab.mydomain.com for the GitLab instance;
https:...
0
votes
0
answers
240
views
Getting "Not authorized" error when running SonarQube analysis in Docker container with GitLab Runner
I am trying to run a SonarQube analysis in a Docker container using GitLab Runner, but I'm encountering the following error:
Caused by: org.springframework.beans.factory.BeanCreationException: Error ...
0
votes
0
answers
35
views
Gitlab Access Tokens, protected by authenticating Apache Reverse Proxy?
We hide a Gitlab instance (among several other applications) behind a single Apache Reverse Proxy, that is doing user authentication (OpenID) before granting further access to the lower services.
This ...
0
votes
1
answer
313
views
how to share "build repository dir" between jobs in multiple gitlab runner configuration?
I'm using a gitlab runner to deploy application
-shared gitlab runner and concurrent count is 4
/etc/gitlab-runner/config.toml
concurrent = 4
check_interval = 0
executor = ...
1
vote
0
answers
308
views
AuthorizedKeysCommand setup prompts for password
The issue: Even though I've set up AuthorizedKeysCommand and password authentication is stopped when I attempt to log in from my Mac, I am still being asked to enter the password:
OS: Rocky Linux 9.2
...
0
votes
0
answers
72
views
In a GitLab runner SSH to local network that has IP as default Docker Bridge IP
I have a GitLab Pipeline based on the python:3.10.11 image. The runner needs access to a local network that is on 172.17.0.0 via SSH/Paramiko. But it is unable to connect to the newtwork, when the ...
0
votes
0
answers
54
views
Varying, exclusive limits on concurrency in GitLab runner
I have a Linux server used as a GitLab runner. I'd like the server to be usable for two different purposes simultaneously:
For build jobs, unit tests, etc. (things that aren't timing sensitive) many ...
0
votes
0
answers
53
views
Cannot log into new GitLab installation
I have recently installed an instance of GitLab CE using Docker. The application sits behind an Nginx proxy and I can access the login page without problems.
Unfortunately, I also cannot log into ...
0
votes
1
answer
807
views
Terraform init error: Failed to download module (local changes would be overwritten)
I have a brand-new local Terraform project that I have just cloned from gitlab. I have not made any changes to the code, but when I run terraform init I get the following error, repeated for every ...
0
votes
0
answers
59
views
How can I debug a 'KidNotFound' error when implimenting GitLab SSO with Azure AD as IdP?
I am trying to integrate our self-managed GitLab 15.9.3-ee instance with our Azure AD. Using Azure AD as the IdP for SSO in to GitLab, I have been using the documentation here:
https://docs.gitlab.com/...
0
votes
1
answer
114
views
Cannot execute nested command on remote host over ssh tunnel
Im running the following command in my GitLab CI job:
ssh ${REMOTE_HOST} "docker restart $(docker ps --format '{{.Names}}' | grep '^backend')"
The problem is that it returns me the ...
1
vote
0
answers
529
views
SSH connection to gitlab server not working
I have recently installed a gitlab server on a Fedora Server VM hosted locally on my computer. To install the gilab server I used this command : sudo yum install -y gitlab-ce.
I had no errors during ...
0
votes
0
answers
130
views
How can I configure gitlab and nginx as a reverse proxy with SSL authenticating to Azure AD?
I've been pushing on this for days, I'm really hoping some kind soul can help.
Nginx is sitting on an Ubuntu machine in Azure. On that same machine, Docker engine is running a Gitlab container (which ...
0
votes
0
answers
42
views
Deploy to AWS EKS using a service account
I need to deploy multiple (> 2 dozen) applications into distinct namespaces from GitLab. Unfortunately, Gitlab's old instance-wide Kubernetes integration has long been deprecated, and the new agent ...
0
votes
1
answer
250
views
gitlab runner error with environment
I have installed a new gitlab runner and am getting an error.
ERROR: Job failed: prepare environment: Process exited with status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-...
0
votes
1
answer
624
views
How to properly set up private key for gitlab runner
I would like to make this scenario possible (some problem unrelated aspects were simplified for better understanding)
Imagine we have a simple gitlab repository with only two files.
index.html - ...
0
votes
0
answers
136
views
Continous delivery using Gitlab, Foreman and Puppet
We are using different tools to orchestrate our environment. On one side, we have Puppet and Foreman to deploy our different server applications, on the other side, we are using Gitlab in order to ...
0
votes
0
answers
343
views
Gitlab runner fails when running too many job same time
I've set some scheduled jobs on gitlab. It is running some parallel jobs every minute and reaches about 500 simultaneous process . After some point runner throws below error and fails.
Running with ...
0
votes
0
answers
247
views
How to ssh through the gitlab subdomain URL
From this question I'd like to ask more of it
https://stackoverflow.com/questions/75527943/unable-to-git-clone-from-self-hosted-gitlab-instance-with-custom-port-6022
Solved the problem that I need to ...
1
vote
0
answers
112
views
GitLab CI Runners faild InvalidParameterCombination: Cannot find upgrade path from 5.7.38 to 5.6 , Terraform
GitLab CI Runners faild the jbo with the following error message
│ Error: Error modifying DB Instance legacy-dms: InvalidParameterCombination: Cannot find upgrade path from 5.7.38 to 5.6.
│ status ...
1
vote
0
answers
192
views
Cloudflare zero trust application return SSL_ERROR_NO_CYPHER_OVERLAP
I am trying to secure a self-hosted GitLab solution using Cloudflare zero trust.
I followed their tutorial but when adding the DNS record I get 'This hostname is not covered by a certificate'. but I ...
0
votes
1
answer
1k
views
AWS EKS Cluster : InvalidParameterException: Unsupported Kubernetes minor version update ,Terraform Gitlab CI
The following errors occur every time I run the pipeline
│ Error: error updating EKS Cluster (business-staging) version: InvalidParameterException: Unsupported Kubernetes minor version update from 1....
-2
votes
1
answer
997
views
How to write Ansible playbook to commit and push my new updates on gitlab repository
How to write Ansible playbook to commit and push a gitlab repository?
I have Ansible tower template to launch my playbook, then playbook must do commit and push on different git repo. This git repo on ...
1
vote
0
answers
1k
views
Docker-in-docker/GitLab CI: adding and using credential helper
For my organization I am building a GitLab CI/CD pipeline for one of our projects. One job in this pipeline will be executed on a Docker executor GitLab runner running on one of our own servers. The ...
1
vote
0
answers
253
views
Making changes to DNS (bind) through git, how make it?
What is the correct way to change the entries in the Bind zone file and apply it through Gitlab CI/runner?
0
votes
1
answer
42
views
Keep GitLab environment running in Docker container
I'm aiming to deploy an environment for testing. It's a PHP application, and I could simply serve the PHP files using the embedded server.
My .gitlab-ci.yml is plain simple:
docker_test:
stage: ...
1
vote
1
answer
3k
views
HTTPS support for GitLab behind proxy [duplicate]
I have one public static IP address and several applications running on port 80 and 443 on their own virtual machines.
One of them is GitLab.
As I can't forward ports 80/443 to just one of them, I ...
0
votes
1
answer
743
views
GitLab Managed Terraform tf.state backend fails
I am trying to run Terraform with AWS provider using GitLab CI/CD.
I was using the backend as S3 to store the tf.state file and everything was working fine.
As part of a research, I wanted to ...
1
vote
0
answers
131
views
Can Gitlab container registry store containers at the group level or only at the repository level?
Using a self-hosted GitLab instance I can configure the GitLab container registry under a repository successfully. The repository is part of a GitLab group.
It would be more logical, organizationally, ...
0
votes
2
answers
15k
views
How to force install an rpm?
I have a gitlab pipeline where I will be installing latest rpm everytime.
Some times, even if the target machine is changed manually, the rpm should be installed successfully.
But some how I am ...
0
votes
1
answer
34
views
How to have a single pipeline run and single commit in github?
In jenkins, we can schedule poll scm to check for every 1 hr, 2hr,etc.
In the meanwhile, even if we add n number of commits, let’s say poll scm is 1 hr
After 1 hr, it will check for latest commits and ...
1
vote
0
answers
889
views
Nexus Docker Registry as external Gitlab registry
I'm using Gitlab CE as the all-in-one docker container and Nexus as a artifact store. Because there is already an integrated Docker registry within Nexus, I'd like to use it.
Within the CI/CD process ...
1
vote
0
answers
1k
views
How to set a job to manual based on previous stage failure in gitlab pipeline?
I have a pipeline as below.
If I keep the allow_failure value true for the teardown job, the next job is running directly.
allow_failure=true
If I keep the allow_failure value false for the teardown ...
0
votes
1
answer
383
views
How to configure aws cli on ubuntu gitlab?
While trying to install and configure aws cli on ubuntu runner in pipeline, stuck at below screen.
pipeline stuck
How to do that?
0
votes
1
answer
146
views
Gitlab backups have recently ballooned
I've installed and am running Gitlab via Omnibus installation.
For years my Gitlab backups have hovered around 1 gigabyte, total. Over the last year or so though, they have ballooned in size and now a ...
0
votes
1
answer
648
views
How to resume a manual step in pipeline with gitlab api?
I have a pipeline as below.
pipeline
First two are automatic and the last two jobs are manual.
When I ran the curl command to run the pipeline, as below.
curl -X POST \
--fail \
-F token=...
0
votes
1
answer
146
views
Gerrit replication plugin reload with error "lacks ${name} placeholder in FileBasedConfig"
The server which I deploied Gerrit's OS is Ubuntu 18.04.05, and my Gitlab server's IP address is 192.168.0.167. I tried using replication plugin to push gerrit project to local Gitlab server. My ...
-1
votes
1
answer
454
views
How to execute remote commands on linux and update return value?
As part of automation in gitlab ci.
I am running a terraform template and creating a linux machine.
After that, I need to run few commands on the remote machine. I am running those using the ssh ...
1
vote
2
answers
5k
views
How to fix script config should be a string or a nested array of strings up to 10 levels deep?
With below pipeline job, I am getting syntax error.
gitlab error
Found errors in your .gitlab-ci.yml:
jobs:test-artifact:script config should be a string or a nested array of strings up to 10 levels ...
0
votes
0
answers
2k
views
How can to resolve a coreDNS pods with status ContainerCreating - kubernetes
I hope somebody can help me.
Well, I'm building a server (CentOS) with Gitlab, Gitlab-Runner, docker, and Kubernetes to CI/CD.
GitLab information
Version: 14.10.2
Revision: 07d12f3fd11
...
2
votes
1
answer
508
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
2k
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
352
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
223
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
1k
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
128
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 ...