Questions tagged [gitlab]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
16 views

Importing python functions located in different projects [closed]

Suppose we have a gitlab project called ProjectA which has a code folder along with function.py which is inside of it. So function.py could be in https://gitlab.com/project_folder/ProjectA/code/...
user avatar
0 votes
1 answer
5 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--...
user avatar
  • 507
0 votes
1 answer
23 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, ...
user avatar
0 votes
0 answers
116 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....
user avatar
  • 101
1 vote
0 answers
33 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 ...
user avatar
  • 73
0 votes
0 answers
10 views

Using GitLab VirtualBox executor without GUI?

After automating my GitLab CI deployment, I noticed that some (installer) CI jobs interfere with my own installations on the device. (Yes, I currently don't have sufficient resources to run my GitLab ...
user avatar
  • 343
0 votes
0 answers
15 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-...
user avatar
0 votes
0 answers
53 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 ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
0 votes
0 answers
207 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
0 votes
0 answers
70 views

I came across this error in gitlab remote http basic access denied” Error : GitLab “Fatal Authentication Failure” Error

I came across the issue remote HTTP basic access denied” Error or GitLab “Fatal Authentication Failure” error. I searched on the internet for the issue and found some solutions on StackOverflow and ...
user avatar
0 votes
0 answers
22 views

Git versioning Google Drive folder

I noticed that it is possible to explore Google Drive from Nautilus in Gnome. So I created a folder and inside it I tried to open a terminal and git clone a repo of mine from GitLab in there. It didn'...
user avatar
  • 101
0 votes
0 answers
40 views

gitlab runner is blocked when using Xvfb

In my gitlab job's script section, I start a X server using Xvfb. In addition to that, in the after_script section, I stop that X server. The problem is, when gitlab runner (using shell executor) ...
user avatar
0 votes
1 answer
235 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 ...
user avatar
  • 1
0 votes
0 answers
160 views

How do I overcome SQL Developer's "cannot open git-upload-pack" error when I attempt to clone a Gitlab-hosted repository?

I am trying to use SQL Developer's (version 21.4.1.349) Git capability, but am unable to clone a repository hosted within Gitlab. Using the "Team > Git > Clone" operation, I am ...
user avatar
0 votes
0 answers
8 views

Prohibit/deny Gitlab project guests to set assignee, set a milestone, set labels, set due date

In a specific Gitlab project, how can I deny guest users to set the following things during issue creation? assignee milestone labels due date
user avatar
  • 1,944
0 votes
1 answer
231 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. ...
user avatar
0 votes
2 answers
440 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/...
user avatar
  • 629
0 votes
0 answers
105 views

my own gitlab server ssh not working

We have a gitlab server deployed on our own server. I used to use ssh to do all the git stuff. But recently I cannot use ssh to access git service. The server keeps asking me for the password as I am ...
user avatar
0 votes
1 answer
143 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 ...
user avatar
  • 215
0 votes
0 answers
36 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 ...
user avatar
0 votes
1 answer
44 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/...
user avatar
  • 3
0 votes
2 answers
494 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 ...
user avatar
1 vote
0 answers
257 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 ...
user avatar
0 votes
1 answer
115 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 ...
user avatar
1 vote
1 answer
86 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....
user avatar
1 vote
1 answer
446 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-...
user avatar
  • 496
0 votes
1 answer
365 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 &...
user avatar
1 vote
1 answer
67 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 ...
user avatar
0 votes
0 answers
292 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:...
user avatar
0 votes
0 answers
58 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)...
user avatar
  • 225
0 votes
0 answers
1k 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 ...
user avatar
  • 101
0 votes
0 answers
237 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&...
user avatar
  • 103
0 votes
0 answers
78 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 ...
user avatar
0 votes
1 answer
13 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 ...
user avatar
  • 11
0 votes
1 answer
95 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 ...
user avatar
  • 101
1 vote
1 answer
291 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 ...
user avatar
  • 121
0 votes
1 answer
196 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 ...
user avatar
  • 233
0 votes
1 answer
145 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 ...
user avatar
  • 641
1 vote
0 answers
914 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 ?
user avatar
0 votes
1 answer
2k 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....
user avatar
0 votes
1 answer
62 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 ...
user avatar
  • 149
1 vote
2 answers
1k 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 ...
user avatar
0 votes
0 answers
1k views

Push to docker registry is denied

Let me start off admitting that this is a crosspost from the gitlab forum here: https://forum.gitlab.com/t/push-to-docker-registry-is-denied/35018. I didn't get any response there, so I hope I am ...
user avatar
2 votes
1 answer
104 views

efficiently check whether remote tracking branch changed (git or gitlab)

I'm looking for the fastest way of finding out, whether a remote tracking branch is different from a current branch. Context: Id' like to run a cron job, that shall find out, whether the current HEAD ...
user avatar
  • 233
0 votes
0 answers
2k views

Configure Nginx to reverse proxy docker containers to subdomains

server { listen 443; server_name https://domain.dev ssl_certificate /etc/ssl/domain.dev.crt; ssl_certificate_key /etc/ssl/domain.dev.key; location / { proxy_pass http://...
user avatar
0 votes
2 answers
132 views

How to lock add new files to a repository in GitLab CE?

I'm building a GitLab self-hosted instance for academical purpose, using GitLab CE, and I want to limit the space which stores each user. I want to set a maximum size to store in a repository, which ...
user avatar
  • 111
0 votes
0 answers
68 views

How to move legacy git repository to Gitlab that require GPG sign?

Currently the company I am working for has a legacy git repository that host elsewhere and all commits are not GPG signed. The project is getting bigger and more people are working for the same ...
user avatar
  • 249
1 vote
1 answer
205 views

ssh from windows10 to a docker container ends with asking a password

I'm trying to test gitlab in a docker container installed on my windows 10 machine. But when I try to push my code, it ends with asking git's password When I test the connection with ssh -vT, here is ...
user avatar
  • 21