Questions tagged [gitlab]

GitLab is an open source repository management system with issue tracking, wiki and deployment features. Mainly written in Ruby, it has a community version enterprise version. It's developed by GitLab Inc.,

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

Systemd with Gitlab-runner and Manual commands works differently

I have a python-based tg bot that is supposed to run as Systemd service. Service file goes as following. [Unit] Description=Telegram ImageBot After=syslog.target After=network.target [Service] Type=...
Lev Marder's user avatar
0 votes
1 answer
30 views

Can't install GDK on Catalina

Welcome, while trying to install Gitlab GDK on a MacBook Pro Catalina 16G RAM it goes ok except three dependencies which already exist but the GDK says they are not installed or outdated! bin/gdk ...
wpplumber's user avatar
  • 101
0 votes
1 answer
23 views

Fargate Linux Github Runner cannot find specific URL (nslookup) from private network over VPN

I run the Worker container (Fargate Worker: https://docs.gitlab.com/runner/configuration/runner_autoscale_aws_fargate/). My problem is that the container (Gitlab-runner) is running on Fargate ('awsvpc'...
Ömer Sezer's user avatar
0 votes
1 answer
48 views

How to split long commands containing special character into multiline commands?

I have been reading documentation from gitlab at: https://docs.gitlab.com/ee/ci/yaml/script.html#split-long-commands In my case I have a special character (colon ':'), so I also did read: https://...
malat's user avatar
  • 2,850
0 votes
1 answer
108 views

Command section syntax in .gitlab-ci.yml file

I have the following .gitlab-ci.yml file : stages: - publish - deploy variables: TAG_LATEST: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:latest TAG_COMMIT: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:$...
Baks's user avatar
  • 41
2 votes
0 answers
210 views

Why does buildah fail mounting overlays?

I am running buildah(quay.io/containers/buildah) in a gitlab CI/CD pipeline(kubernetes pod), but it fails building images. buildah bud . returns: mount /var/lib/containers/storage/overlay:/var/lib/...
iaquobe's user avatar
  • 291
0 votes
0 answers
749 views

Connection refused for unsecure Gitlab container registry

I'm hosting a gitlab-ce instance with runners on a Ubuntu 22.04.2 LTS server with docker compose : version: '3.7' services: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname:...
Baks's user avatar
  • 41
1 vote
0 answers
609 views

Permission denied while trying to SSH from gitlab runner to deploy server

I am trying to deploy gitlab repository to my server in gitlab ci pipeline using this pipeline stages: - deploy deploy: stage: deploy only: - main before_script: - apk add --update --...
Johnczek's user avatar
  • 111
0 votes
1 answer
339 views

Clearing log files located in var/log (RHEL)

I am investigating the retention of logs in var/log/ for a server that hosts Gitlab. There are multiple logs here as listed below: Boot.log Cron maillog Messages Secure spooler yum.log Is there a way ...
Aryan's user avatar
  • 1
0 votes
0 answers
42 views

Is there any way to automatically merge commits from master another branch whenever there is any merge request for master?

Is there any way to automatically merge commits from master another branch whenever there is any merge request for master? want to add to JenkinsFile as well.
Mohit's user avatar
  • 1
0 votes
1 answer
37 views

Uploading compiled .tex file (.pdf) to the root repo in Gitlab

I need your help with the following problem. I'm trying to compile a .tex document in GitLab and put my compiled .pdf file in the root repo. I have created a .gitlab-ci.yml file which has the ...
Mafsi's user avatar
  • 141
1 vote
0 answers
1k views

how can I get colored messages from bash script within GitLab CI

stages: - build build: stage: Build image: alpine:latest variables: PY_COLORS: '1' LOGURU_COLORIZE: "true" ANSIBLE_FORCE_COLORS: '1' before_script: - yum update ...
aksyuma's user avatar
  • 111
0 votes
1 answer
1k views

Gitlab push/pull: Git asks for password of user git

I set up SSH Keys on my Windows Machine and then I added the key in my gitlab account according to the setup guide: Gitlab SSH KEY But I ran into an issue: When I try to test the connection with ssh -...
Kektuto's user avatar
0 votes
0 answers
224 views

Gitlab Runner Randomly Quits Session as Root

I am using a Gitlab Runner instance on one of my Kali Linux instances to run a build process for my custom ISOs. This was previously done on a DigitalOcean droplet, instead of my own server, but the ...
Arszilla's user avatar
0 votes
1 answer
460 views

lost variable from bash in yaml gitlab ci

Need help I am studying bash and gitlab can't get it to work gitlab pipeline .gitlab-ci.yml variables: var1: test1 var2: test2 stages: - build build-job: stage: build script: ...
tuytuy20's user avatar
1 vote
1 answer
2k views

Gitlab /dev/tty no such device or address

Among the many question already asked none seem to answer my problem. So i'm trying to setup a ci/cd pipeline with gitlab and i'm stuck in the deploy job with ssh. So I have a buildserver which there ...
Technology Researcher's user avatar
0 votes
1 answer
2k views

Install gitlab in one VM with docker-compose having a proxy adding https in another vm

I have a server with several virtual machines and one of those is my Proxy that direct the right domains to the right VM on the right port. I used the standard docker-compose file to create gitlab-ce ...
rubo77's user avatar
  • 28.2k
0 votes
0 answers
2k views

what does fork/exec : permission denied mean?

I am building a container inside of a container(Gitlab runner kubernetes pod) but it keeps failing. The Dockerfile of the container to build is: FROM ubuntu USER root RUN ["touch", "...
iaquobe's user avatar
  • 291
1 vote
2 answers
2k views

Self update bash script if there are any updates first then continue on, with Git

I'm trying to add the ability for my ArchLinux installer script to check if it's update-to-date based on rather it matches (or doesn't match) the version number that's on gitlab. The primary script ...
Nova Leary's user avatar
1 vote
0 answers
174 views

How to perform git pull from gitlab repo with 2FA access token using linux terminal?

I had already cloned a few repos from gitlab and then LATER we added two factor authentication on the gitlab repos. Now I am trying to update my local branch by doing git pull like this: sudo git pull ...
KZiovas's user avatar
  • 111
0 votes
1 answer
207 views

Does yum have an equivalent to /var/log/apt/term.log?

I just updated a package on a Centos host and was wondering if there is something like /var/log/apt/term.log on RHEL derivates I don't know about? I know about yum history, but in this case having ...
LiveWireBT's user avatar
0 votes
1 answer
1k views

Unable to clone repo from gitlab into Oracle VirtualBox VM (CentOS) - host key verification failed

I am trying to clone a repo from gitlab into Oracle VirtualBox VM (CentOS) hosted on Win 10 machine. Following are the steps: generate key via ssh-keygen -t rsa and copy the key from generated id_rsa....
Ulysses's user avatar
  • 103
0 votes
0 answers
877 views

GitLab CI CD authenticating issue with ssh-add

i was working with gitlab ci cd but unfortunately the error occurred when I access my deployment server and after prompting ssh-agent and add my private key with ssh-add it just shows Error connecting ...
MD Nasirul Islam's user avatar
0 votes
0 answers
632 views

Self hosted gitlab + registry displays white blank page only, is that correct?

I'm running a self hosted Gitlab for my company inside a docker environment and we want to host our own docker images, so I read the documentation but I cannot do docker login registry.mycompany-...
Pablo's user avatar
  • 202
0 votes
0 answers
110 views

Advice needed about deploying website backend files to webserver from git repo

We are trying to improve the management of our website backend files, and are planning to deploy (using git pull) the files from the git repo (hosted on a local (within our organisation) GitLab server)...
dave559's user avatar
  • 359
1 vote
1 answer
2k views

CD using GitLab, Bash script is not working

I am working with CI, CD but unfortunately I messed up with shell scripting. On my gitlab-ci.yml file I called a bashscript at the time on deploy. But unfortunately whenever I want to pull using the ...
MD Nasirul Islam's user avatar
1 vote
1 answer
485 views

Push etckeeper created repository to remote Gitlab server, advices welcomed

I'm playing with etckeeper and it seems to be a good product. I use it only to track /etc filesystem locally, but these days the idea came to my mind - to create central Gitlab repository and to store ...
Kristian Kirilov's user avatar
2 votes
0 answers
403 views

Lightweight GitLab alternative for small company

I'm looking for GitLab replacement, which does not require 4GB RAM and is easier to move/upgrade/migrate, does not have dependency hell and creates less than 50 processes on server. There are 3, ...
Kamil's user avatar
  • 729
-1 votes
1 answer
28 views

Running gitlab-ee on ubunutu 20.04 server

I installed gitlab-ee successfully according to https://about.gitlab.com/install/#ubuntu . after configuring /etc/gitlab/gitlab.rb , I tried to access website using http://gitlab.mydomain.com . But it ...
Mehdi bahmanpour's user avatar
1 vote
0 answers
248 views

GitLab Coexisting with SSHD on Bridge Interface

Background I am attempting to convert a server from using Docker to Podman. So far I have been able to convert all of my services (~15 in total) to systemd jobs and run them without issue. In doing ...
MysteryMoose's user avatar
-2 votes
1 answer
35 views

why pipeline run only first gitlab-runner?

I register 6 gitlab-runner then when push to gitlab server, pipline only run first gitlab-runner? why is this happening? I expect the pipeline to run on 6 servers. thanx.
pyramid13's user avatar
  • 629
1 vote
1 answer
4k views

git with ssh keeps asking for passphrase everytime

I'm using a git bare repository for managing dotfiles, and some other repositories for custom DWM build and all. I use SSH for pushing and pulling from git, but it keeps asking me my SSH passphrase ...
apoorv569's user avatar
1 vote
1 answer
1k views

Using cURL, jq, and declaration and for loop condition, I tried to download multiple files from a GitLab private repo, but it downloaded only one

I learned from the following sources: curl -O: Download a file with curl on Linux / Unix command line jq: How to urlencode data for curl command? Multiple files and curl -J: download pdf files from ...
Oo'-'s user avatar
  • 243
-1 votes
1 answer
167 views

Does the GitLab runner configuration file support comments?

Does the GitLab Runner configuration file support comments? I also don't see comments mentioned in the Advanced Configuration doc. I need comments to use Ansible's blockinfile.
Evan Carroll's user avatar
  • 29.6k
0 votes
1 answer
1k views

How can I make bash script exit silently?

I have created CI (Continuous Integration) between GitLab, Docker and AWS with the following configuration: Dockerfile. # install node.js FROM node:latest # create necessary directories and # ...
dotsinspace's user avatar
2 votes
1 answer
106 views

Allow short "sessions" for a user with systemd

I'm testing a new gitlab runner I've setup. If a project just has a very short CI job (or one that fails very quickly, which is probably more realistic outside of testing the setup) systemd starts ...
Henrik supports the community's user avatar
0 votes
0 answers
114 views

GitLab Container Not Accepting WAN Connection

Been dealing with this issue for a couple hours now and hit a bit of a standstill as far as my experience and google abilities. Got the most recent version of gitlab installed, after having a similar ...
Temple Pate's user avatar
4 votes
0 answers
2k views

What happens when you disable NFS server delegation?

We are facing issues with NFS 4.1 on RHEL 7.6. We have a lot of applications on this server and GitLab is one of them and it is impacted the most. Excessive NFS network traffic (due to a bug with NFS ...
Koshur's user avatar
  • 1,369
1 vote
2 answers
822 views

How do I get the git branch name with sed

The branch string is 24000ACB, how do I get that out with sed? I tried echo 'origin/releases/2400ACB 294125569b2dc926158b64115f1467f916c9 WIP' | sed 's/[origin/releases/]//g'.
juwuan stewart's user avatar
3 votes
1 answer
1k views

Selinux causing sshd to fail when using AuthorizedKeysCommand

I have been following Gitlab's guide to enable Fast lookup of authorized SSH keys. Guide instructs to use AuthorizedKeysCommand. Authorized command is calling local https server. This command chain ...
Sami Korhonen's user avatar
1 vote
1 answer
2k views

GitLab with relative URL on Apache (CentOS web server)

I have a CentOS 7 server with an existing website (say mywebsite.com) hosted with Apache. I would like GitLab to be managed by Apache and not nginx, and with a realtive url with respect to the one of ...
sermazzo's user avatar
4 votes
1 answer
4k views

GitLab Runner: no basic auth credentials even though DOCKER_AUTH_CONFIG is set

I am trying to set up a gitlab runner service using a private Docker registry. According to the documentation it is sufficient to set the DOCKER_AUTH_CONFIG environment variable and populate it with ...
Daniel Becker's user avatar
3 votes
1 answer
107 views

Stripping a git repo of all committed files that should have been ignored

I recently initiated a git repo and forgot to add a .gitignore file. After my initial commit, my repo has many subdirectories and many files that should have been ignored. Is there an efficient way to ...
Brian Fitzpatrick's user avatar
11 votes
2 answers
3k views

yum update shows three exclamation marks

yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile gitlab_gitlab-ce/x86_64/signature | 836 B 00:00:00 gitlab_gitlab-ce/x86_64/signature | ...
David Trevor's user avatar
1 vote
1 answer
44 views

Is there a command line tool for managing packages written by me?

Lately I've found myself writing small programs that I use across multiple machines. I use gitlab to manage these programs. Is there a command line tool that will help me keep my programs up-to-date? ...
Brian Fitzpatrick's user avatar
1 vote
1 answer
1k views

Configuring relative URL in Gitlab is not working

I have configured GitLab CE to use relative URL following this documentation and after configuration while running reconfigure it gives me an error. Step1 # cat /opt/gitlab/embedded/service/gitlab-...
Gokulnath Kumar's user avatar
2 votes
1 answer
9k views

Can't use LFTP with SFTP but SFTP clients allow connections

I'm trying to use LFTP (v 4.8.3) to connect to my KVM. This server already allows me to remote execute SSH through terminal and SFTP through FTP client (Transmit app). I want to do this in order to ...
Jimmy Adaro's user avatar
0 votes
1 answer
73 views

Change only permissions and ownership of a directory

I tried to change default installation directory of gitlab, which resulted in changing permissions and ownership of all files. It is not starting up. I want to copy only permissions and ownership from ...
Naruto's user avatar
  • 39
5 votes
1 answer
4k views

SSH prompt a passphrase for no passphrase keys on Docker GitLab CI

With the following Dockerfile: FROM nexylan/php-dev:7.1-alpine COPY entrypoint.sh / RUN chmod u+x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] WORKDIR /code CMD ["tail", "-f", "/dev/null"] (The ...
Soullivaneuh's user avatar
4 votes
1 answer
2k views

SSH fails to use the given private key on docker and GitLab CI

With the following Dockerfile: FROM nexylan/php-dev:7.1-alpine COPY entrypoint.sh / RUN chmod u+x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] WORKDIR /code CMD ["tail", "-f", "/dev/null"] (The ...
Soullivaneuh's user avatar