Questions tagged [gitlab]
The gitlab tag has no usage guidance.
195
questions
0
votes
0
answers
15
views
Should individual project access tokens allow access to other repos in GitLab?
I seem to have some fundamental problem in my GitLab instance somewhere or am not understanding the purpose of project access tokens properly. Some context: Am maintaining multiple different projects ...
-1
votes
1
answer
588
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: ...
1
vote
1
answer
102
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 ...
0
votes
0
answers
26
views
Cannot find upgrade path from 5.7.38 to 5.6 , GitLab CI Runners faild InvalidParameterCombination
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 ...
0
votes
0
answers
209
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....
0
votes
1
answer
53
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 ...
0
votes
1
answer
117
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
>...
1
vote
0
answers
518
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 ...
0
votes
1
answer
336
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/f5-log-lib.git@v1.9.0: verifying module: gitlab.f5net.com/mbip/containers/f5-log-lib.git@...
0
votes
0
answers
33
views
Gitlab Runner stucks on docker login
I installed GitLab runner via HelmChart on my Kubernetes cluster
While installing via helm I used config values.yaml
But my Runner stucks every time at docker login command,
without docker login ...
0
votes
0
answers
14
views
How to use the folder name in a gitlab ci that is triggered on tag creation?
I am working on a monorepo gitlab ci. When a new tag is created I need to build a docker image and choose an ECR repo to push the image based on the folder that has changes.
only:
tag pattern
lets ...
0
votes
1
answer
270
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 ...
0
votes
1
answer
352
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:
...
0
votes
0
answers
212
views
Adding a json variable to gitlab.yml file
Suppose we want to run the following command in a gitlab.yml file:
aws lambda invoke --function-name function_name --invocation-type Event \ --payload json_var \ response.json
How do we set json_var ...
0
votes
1
answer
385
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--...
0
votes
1
answer
114
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, ...
3
votes
2
answers
1k
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....
1
vote
0
answers
86
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 ...
1
vote
1
answer
110
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-...
0
votes
0
answers
221
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 ...
0
votes
1
answer
76
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 ...
1
vote
0
answers
800
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 ...
0
votes
0
answers
23
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
...
0
votes
1
answer
723
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 ...
0
votes
1
answer
552
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. ...
1
vote
2
answers
791
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/...
0
votes
1
answer
276
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 ...
0
votes
0
answers
88
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 ...
0
votes
1
answer
63
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/...
0
votes
2
answers
970
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 ...
1
vote
0
answers
462
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 ...
0
votes
1
answer
395
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 ...
1
vote
1
answer
272
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....
1
vote
1
answer
993
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-...
0
votes
1
answer
3k
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 &...
1
vote
1
answer
166
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 ...
1
vote
0
answers
556
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:...
0
votes
0
answers
204
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)...
0
votes
0
answers
2k
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 ...
0
votes
0
answers
452
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&...
0
votes
0
answers
122
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 ...
0
votes
1
answer
18
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 ...
0
votes
1
answer
106
views
Backing up a Github account
Recently I saw a HackerNews post about someone who got locked out of their github without warning and it made me think I should have copies just in case this happens. The obvious solution is just ...
1
vote
1
answer
514
views
Gitlab does not recognize the license
I am used to gitlab automatically detecting the license of a project based on a license file.
This time, however, it failed.
I have a LaTeX package and a test script in one gitlab project which are ...
0
votes
1
answer
395
views
gitlab automatically cleanup code and make a commit
Context:
I am using git and gitlab regularly and we use gitlab-CI to perform checks.
This works quite well. One of the steps (for a python project) is to perform coding style checks.
check that there ...
0
votes
1
answer
274
views
git commands hang and finish after >1 minute in gitlab
Yesterday git commands (e.g. git pull) started to be super slow, when doing them against gitlab.com. They are working as usual when using them against github.com, so I assumed this is a problem with ...
1
vote
0
answers
2k
views
How to correct a merge in wrong branch?
I merged the Branch add-button in master instead to merge it in dev branch !
My question is, how to undo this merge and make master branch like before, then merge add-button to dev branch ?
0
votes
1
answer
3k
views
How to update tar to version 1.30+ in Ubuntu 16.04?
I work with the gitlab-ee docker image to install my local gitlab.
This docker image has the OS Ubuntu 16.04 and can be found here: gitlab/gitlab-ee in hub.docker.
Within these image tar in version 1....
0
votes
1
answer
93
views
Centos 8 symlink to users's `.ssh` folder
I'm following this guide to setup some kind of ssh proxy for gitlab.
this is how ti doesn't work
When I create symlink like in that blog post I'm not able to ssh into server. This is how symlink is ...
1
vote
2
answers
2k
views
Why does ssh clone from gitlab repo need password from WSL but not Linux-native PC?
From a Linux-native desktop, I am able to clone a project from our gitlab repo like this:
git clone git@git.company.com:namespace/project.git
No problem with the above: specifically, I'm not asked ...