Skip to main content

Questions tagged [gitlab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

In Gitlab, how do I enable/disable users to merge their own merge requests?

I found the setting to prevent a user from approving its own merge request. I want this setting to be active as it makes sense. However, with that setting activated, I need users to be able to merge ...
Sybuser's user avatar
  • 183
0 votes
1 answer
70 views

Gitlab OIDC Azure subject identifier repository reference syntax

I am trying to make use of Azure Key Vault secrets in my Gitlab CI jobs and have followed the Configure OpenID Connect in Azure to retrieve temporary credentials guide. I have setup a federated ...
zigaio's user avatar
  • 1
0 votes
1 answer
140 views

Keep Gitlab repositories in sync with airgapped networks

I have 3 networks (network_1, network_2 and network_3). The three networks are airgapped. On network_1 I have a Gitlab instance. I want to host an instance of Gitlab on network_2 and on network_3. ...
C-nan's user avatar
  • 119
0 votes
1 answer
1k views

Access denied errors occurring when running a Gitlab build

I am running a self- hosted Gitlab server from a Docker container. For CI/CD, I am running gitlab-runner in a docker container as well. My version of Gitlab is V16.5.2. My runner is set up to use ...
Factor Three's user avatar
1 vote
0 answers
375 views

How to add SSH key to Gitlab-ce in Docker

I am running Gitlab-ce V16.5.1 in a docker container. I need to add a proper SSH key to my profile in order to use HTTPS/SSH and to enable my pipelines to complete without generating HTTP Basic Access ...
Factor Three's user avatar
0 votes
1 answer
117 views

is it ok to gitlab-backup restore after ssh broken pipe?

I am trying to migrate gitlab-ce. Since my backup file is almost up to 200G it takes very long time to restore. I executed gitlab-backup restore and after some hours got ssh:broken pipe. As far as I ...
Juneyoung Oh's user avatar
0 votes
0 answers
518 views

How to migrate gitlab-ce 13(linux install) to gitlab-ee 16(docker image)

I am trying to migrate gitlab server to latest version. current using version is ce-13.12.3 and want to upgrade to ee-16.4 docker image(https://hub.docker.com/r/gitlab/gitlab-ee/tags) The goals I want ...
Juneyoung Oh's user avatar
0 votes
1 answer
721 views

Jenkins is unable to connect to GitLab

I've got Jenkins and GitLab setup in my homelab running in docker containers. I was able to connect to GitLab from Jenkins, pull the desired repo, and perform the steps in the Jenkinsfile. I had a ...
Jonathan Heady's user avatar
0 votes
2 answers
493 views

Impossible to git push to a https GitLab repository: SSH passphrase wrongly asked each time

I have some SSH keys that, after entering my passphrases on a terminal, I use successfully to connect to some servers, in particular to push on git repositories. My organization is testing a self ...
Denis Bitouzé's user avatar
0 votes
0 answers
170 views

How can I set the maximum repository size and maximum file size for a GitLab repository on a self-hosted GitLab CE instance?

I recently deployed GitLab CE onto a server at home. Is it possible to set the maximum repository size and maximum file size? I want to set these for security reasons, and to prevent other people from ...
user3728501's user avatar
  • 2,984
0 votes
0 answers
852 views

gitlab-runner GIT_SUBMODULE_FORCE_HTTPS

I have an older version of gitlab-runner (gitlab-runner 11.10.1 (1f513601)). I am trying to force HTTPS usage for submodule cloning. In my gitlab-ci.yml file I have a couple variable lines that ...
Rich Maes's user avatar
  • 235
1 vote
1 answer
120 views

Cannot add wiki page to Gitlab project - safe.directory not found

Trying to add first wiki page to my project on self-hosted Gitlab (docker container). Appears error - 13:commit: open repository: config value 'safe.directory' was not found. Meantime commits for code ...
user239970's user avatar
1 vote
2 answers
386 views

"No space left" error installing Gitlab in Ubuntu Server

I'm trying to install gitlab in Ubuntu Server. This server has been created in VirtualBox, at the beginning it only had 10GB abailable, but after getting this error I resized the memory up to 25 GB. ...
Linux's user avatar
  • 35
0 votes
1 answer
3k views

fatal: unable to access could not resolve host git lab ubuntu

I am trying to run git clone as below through Ubuntu terminal(unix) and getting below error.. git clone -c http.sslverify=false https://gitlab.financeexpert.com/finance/financeflow.git error: fatal: ...
Arya's user avatar
  • 119
1 vote
1 answer
198 views

RDBMS user managment through Gitlab CI/CD

I'm setting up Gitlab CI/CD, to test and deploy a project that uses micro services. The service are build in Laravel and each runs in a Dockers container of their own. Each micro service has a ...
St. Jan's user avatar
  • 63
0 votes
0 answers
418 views

AWS EKS Cluster : InvalidParameterException: Unsupported Kubernetes minor version update ,Gitlab CI, Terraform

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....
sam23's user avatar
  • 69
0 votes
1 answer
106 views

How can I make gitlab suppress powershell input from the job log?

I’ve set up a runner on a Windows 10 laptop. Worker type shell. In all steps of the job we can see under-the-hood gitlab commands being executed with local echo on the terminal. Included here are ...
Nilzor's user avatar
  • 4,509
0 votes
1 answer
248 views

Docker Error "Error creating machine: Error running provisioning: ssh command error, with Gitlab

Ever time I run the pipeline the same issue presist in the system logs > Gitlab-runner: {"driver":"amazonec2","level":"error","msg":"Error >...
sam23's user avatar
  • 69
1 vote
0 answers
802 views

GitLab Pipline Error response from daemon: failed to create shim task: OCI runtime create failed

I have the following problem with TEST fail with the following error message daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error ...
sam23's user avatar
  • 69
0 votes
1 answer
687 views

How to fix "fatal: unable to look up gitlab.f5net.com (port 9418) (Name or service not known)" with go get command

Go version: 1.19.4 > go get gitlab.f5net.com/mbip/containers/f5-log-lib.git gitlab.f5net.com/mbip/containers/[email protected]: verifying module: gitlab.f5net.com/mbip/containers/f5-log-lib.git@...
mberge's user avatar
  • 1
0 votes
1 answer
818 views

Why I have to do `eval` and `ssh-add` every time I switch projects?

I do have in my ~/.ssh/config file two different GitLab accounts. Both are named on Host different and refers on Hostname to gitlab.com. Every time I switch between coding projects of the different ...
Manny's user avatar
  • 11
1 vote
1 answer
2k views

Why shows Git/Gitlab a wrong username on account verification in Terminal?

Environment: macOS Monterey MacBook Air M1 OpenSSH_8.6p1, LibreSSL 3.3.6 iTerm2 I try to get my SSH connection to work. After creating a new SSH key file for GitLab and adding it on gitlab.com I do: ...
Manny's user avatar
  • 11
0 votes
1 answer
714 views

how to change user and group of a file inside the docker in gitlab-ci

I have a file which when I mount it to the docker, the user and group will change. root@b2d3cb9b2aab:/# ls -lh /etc/logrotate.d/ total 36K -rw-r--r-- 1 root root 120 Sep 11 2021 alternatives -rw-r--...
Amir's user avatar
  • 577
0 votes
1 answer
273 views

GitLab Server where to find hard deleted unpushed commit

My push operation failed, due to my colleague commited one line to the same branch i was working on, and i forgot to stash mine, so i tried to revert my colleague's commit and copy it into my changes, ...
Viktória's user avatar
3 votes
2 answers
2k views

Gitlab repocheck finds dangling blobs and marks the text as failed

I have a self-hosted gitlab instance and suddenly one of my projects is sending emails telling me that the repo check is failing. I run gitlab-15.0.0-ee via docker. I checked the log file repocheck....
Pablo's user avatar
  • 131
1 vote
0 answers
159 views

Give all users of a group ability to rm, cp, mv, edit, etc files into or out of a directory

so I've created a directory that will be used across multiple users at /SharedDir. This shared directory is currently configured as such. drwxrwsrwx+ 6 root group 4.0K Mar 23 20:40 /SharedDir No ...
Michael's user avatar
  • 263
1 vote
1 answer
451 views

Git - update files in multiple projects and push to separate repo?

I have the following setup: Projects/ projA/ .git/ .gitlab-ci.yml src/ projB/ .git/ .gitlab-ci.yml src/ projC/ .git/ .gitlab-...
VGC3OCJA50's user avatar
0 votes
0 answers
310 views

On setting up a gitlab-runner within docker in a self-hosted gitlab setup

I have a self-hosted gitlab instance in Ubuntu. I want to serve a simple static site for my colleagues in the lab, only accessible for those having an account in the server. According to what I ...
onlycparra's user avatar
0 votes
1 answer
139 views

What IAM policy is appropriate for gitlab S3 buckets when using KMS encryption?

I'm setting up GitLab with S3 storage backend and would like to use KMS to encrypt the buckets. I'd like to avoid giving out permissions broadly. I'm using terraform to provision these resources. How ...
flickerfly's user avatar
  • 1,101
1 vote
0 answers
2k views

Access to private Gitlab over SSH fails on WSL2

I have been struggling with this for some time now and I'm running out of ideas. I am running Windows 11 with WSL2 and I am working on some code hosted in a private Gitlab repository. I can access the ...
Iordan Iordanov's user avatar
0 votes
0 answers
30 views

git using gitlab repo is not allowing me to commit

Very strange situation, OS is Linux running in vagrant inside Mac, I have ssh connection to gitlab. I have branched from master git checkout -b TB-2105_update_mfa I changed some files, do git status ...
user254694's user avatar
  • 1,185
0 votes
1 answer
1k views

How can I use GitLab under a relative URL on docker?

I'm using gitlab-ce on docker. These are my system specifications. A container of GitLab is gitlab/gitlab-ce. The web frontend is using external NGINX. GitLab is mounted under /git. I read the the ...
elda's user avatar
  • 1
0 votes
1 answer
975 views

Extremely Slow Image Pulls Docker Private Registry

I have two servers: 1.Server-1 (GitLab-CE & Private docker registry) 2.Server-2 (Staging) After build stage and push container to registry inside GitLab CI, next stage is deploy(CD) using Ansible. ...
Nima Ebrazi's user avatar
1 vote
2 answers
1k views

how to download folder on gitlab with svn or alternative

To download folder on github i used this command: sudo apt install subversion svn export "https://github.com/myuser/myproject/trunk/myfolder But on gitlab: svn export "https://gitlab.com/...
acgbox's user avatar
  • 785
0 votes
1 answer
318 views

Apache2 / ISPConfig Proxy w. GitLab 502 Error

My server is running an ISPConfig control panel on port 8080, so I am trying to configure a proxy for Gitlab on port 9000, however, I am getting a 502 error. There is likely an obvious mistake that I ...
mjones's user avatar
  • 317
0 votes
0 answers
332 views

How to remove git tracking but keep file in repo

I do not want to delete the file in the repo. I do want the file cloned a developers and my machine. However, I do want to ignore the file from future check in/push. My goal is that only files that ...
JWorkin's user avatar
0 votes
1 answer
88 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/...
Gonios's user avatar
  • 3
0 votes
2 answers
2k views

Setting up ssh keys to connect to gitlab

*Note: Using windows 10 (I know, I know... that's what they gave me :/) Hi all, I'm new to using GitLab, but my company has their own GitLab server where I'm to house repos for my projects, push ...
W. MacTurk's user avatar
1 vote
0 answers
746 views

Get https certificate for GitLab server over tor/onion domain?

To host a GitLab server over Tor I would like to get an https certificate. Gitlab provides the opportunity to use a let's encrypt certificate. Let's encrypt requires a domain for registration, hence I ...
Maximilian brutus III's user avatar
0 votes
1 answer
604 views

List of JSON strings as command arguments

I've been working with GitLab CI recently to automate some busy tasks, namely auto releasing binaries for version tags. For those who don't know Gitlab CI, it is very straightforward. It pulls the ...
Awbmilne's user avatar
1 vote
1 answer
501 views

Git pull doesn't ask for passphrase

I use ssh keys for authentication with various remote git repositories. I have project A hosted in Azure and project B on GitLab. My ~/.ssh/config looks like so: $ cat ~/.ssh/config Host vs-ssh....
pavelsaman's user avatar
1 vote
1 answer
1k views

Ssh keys on docker gitlab-ce

The announcement for GitLab 13.10 has a deprecation notice for using authorized_keys for ssh keys: The first mechanism (integration via authorized keys ) is vulnerable to both race conditions and out-...
r2evans's user avatar
  • 550
0 votes
1 answer
4k views

shell script to get file names from a path and store in variable in ubuntu linux

I am trying to find the file names in a path. Using following script, but getting issue when tries to put that name in a variable: for file in "${PROJECT_DIR}/temp_namespaces"/* do echo &...
Himanshu Singh's user avatar
1 vote
1 answer
264 views

Safest Way to Deny Access to All Files for Git Runner Service Account?

I have a GitLab Runner and my coworkers are worried commands like - Remove-Item $SOME_FOLDER* -Recurse -Force can be dangerous. For example, if the GitLab Runnier has admin privileges, then ...
Shawn Eary's user avatar
1 vote
0 answers
901 views

Where should I look to diagnose a startup failure using GitLab's Docker image?

I've followed these instructions to start a Docker container with gitlab/gitlab-ee:latest. sudo docker run --detach \ --hostname gitlab.example.com \ --publish 443:443 --publish 80:80 --publish 22:...
James Foster's user avatar
0 votes
0 answers
465 views

Remove GitLab Build Dependency

I have created a GitLab automated CI/CD build process that looks something like this: And the .gitlab-ci.yml file looks like this (removed actual commands since they're not important to this question)...
Alex's user avatar
  • 235
0 votes
0 answers
4k views

Automatically merge master branch into develop branch

I have two branches in my github repository - master and develop branch. I have a requirement where I need to merge master branch into develop branch under below conditions: Once a PR is merged into ...
AndyP's user avatar
  • 101
0 votes
0 answers
832 views

GitLab API - GET Merge request JSON format

I'm getting my merge requests with this command: curl --request GET--header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/4/merge_requests/85&...
Shalomi90's user avatar
  • 103
0 votes
0 answers
238 views

Need to upload entire folders into gitlab from a windows machine -- command line not available

I am trying to establish a gitlab repository. I have to work from a Windows machine. I do not have a Linux emulator. I do not have gitlab-runner. I cannot install either of these things (until the ...
bob.sacamento's user avatar
0 votes
1 answer
23 views

How to be sure I'm using the right identity from my personal remote server?

The company I work with and I are both using Gitlab as remote repo. To make it simple from my personal laptop I want to be able to connect on 2 distinct repo. The company's one and mine. I'm using 2 ...
Tyteck's user avatar
  • 11

1
2 3 4 5