Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Nvm, dropped 30m ago.

Hi Guys... need a hint.

In a gitlab runner I try to set SSH_COMMAND. for win machine (no docker)
If I set it in beforescript part as
${env:GIT_SSH_COMMAND} = 'ssh -vvv -i "C:\\Users\\te\\.ssh\\id_rsa" -o UserKnownHostsFile=C:/Users/te/.ssh/known_hosts'
it works.

however I would like to set it in variables (as we do for linux pipelines)
env:GIT_SSH_COMMAND : 'ssh -vvv -o UserKnownHostsFile=c:/Users/te/.ssh/known_hosts -i "c:\Users\te\.ssh\id_rsa"'

It works only partially. UserKnownHostFile is just ignored. Everything else works.

What happens?

By trial and error I discovered that it might depend on how I pass the paths ( \ vs / vs \\, what quation marks I use...)

But I am unable to figure out how to make it work.

Nicolas Goudry

Hi there, I come here because we just experienced a severe issue regarding GitLab SaaS issues (free tier).

We created a project 4 days ago, along with an issue that was given the id 1. Today, we couldnt find the issue on the project at all.
One of our developer had the issue page still opened in his browser, so he shared the link with us, but it gave us a 404 page when trying to open it.
The same developer just hit the refresh button and also got a 404.

In order to narrow down the problem and see if we deleted the issue by error, we created a new issue, which was also given the id 1 (weird).
We intentionnaly deleted this issue, and created a new one, which was given the id 2 (better).
This behavior strongly suggests that the problem is on GitLab and not on us. There isnt any issue reported on status.gitlab.com.
I see that GitLab 15.0 was released recently, could it be the source of the issue ?

Also, we found another weird thing: there is no activity log when deleting an issue, and the issue creation log is also deleted ! This behavior seems off, why purposefuly rewrite activity logs rather than append to it ?

Nick Veenhof
@nicolas-goudry All production issues are handled here https://gitlab.com/gitlab-com/gl-infra/production/-/issues but I don't see any indication of issues like you mentioned. I would suggest to send the information to our support staff with as much data as you can provide!
lvaro Linares Cabr矇
I have GitLab EE on k8s
Implement with Helm Chart
My upload are on GCP
When I try to do the migration it don't works
I do a check and I received this message: ArgumentError (Missing required arguments: google_project)
Can anyone have the same or was thhis problem?
Thanks a lot :D
David Ellis
I've been fighting with a weird issue for the past couple of days. In my pipeline I've told gitlab to include the entire repository in the artifact. I then add an exclude and tell it to not include the .git directory, and a few other files. But no matter what I put in the exclude, the pipeline always includes the .git directory. The other files I've put in the exclude are properly excluded, but .git is not.
    - ./
    - ./.git
    - ./.git/
    - ./.git/*
    - ./.git/**
    - ./**/.git
Marek Alexa
Can you advise on issue with local gitlab runner not being able to connect to docker daemon ? https://stackoverflow.com/questions/72426717/why-local-gitlab-runner-cant-connect-to-docker-daemon
hi! I have a kubernetes secrets and I want to use the keys/values inside of kubernetes secrets as environment variables into the pipeline. do you know anyway to do this?
4 replies
the secret is a template file into CI/CD Variables
Basile Chandesris
Hi, Does anyone know how to create a markdown badge for IaC Terraform Infrastructure/Terraform/State file to retrieve the pipeline status per state file name?
context: monorepo case
Anshul Riyal
Screenshot 2022-05-31 at 9.04.41 PM.png
1 reply
hello @all I am stuck on an issue where I am generating Dockerfile for projects on the fly (if not already existing). I am using Kaniko for Docker build but as it is the Dockerfile is not being discovered by the pipeline : https://forum.gitlab.com/t/where-is-the-dockerfile-located-when-its-configured-to-generate-dynamically/70457
Hoang Tran
I kept getting pipeline #number has failed. This is my first time with gitlab. Could someone please explain what do I have to do to create a success 'Pull Request'. I forked the Inkscape git repository, then do git checkout on my local machine, created a branch for changes, switch to that branch, done some editing to a file, the commit changes, push the changes to the online forked git repository and I got 'Pipeline ... has failed'. Can someone explain as to what I have to do next?
it worked! :D
I didn't want to set many variables in ci/cd because I will need to set many variables like STAGING_* and PRODUCTION_*
Joost Evertse
Hi all! Is there anyone here with the same situation: We have a big GitLab installation and are creating a 1st line support team. They need access to all kinds of settings (all settings for a project is one example)but we don't want to give them ownership or admin rights. I used to handle this by creating a bot or web page and an admin token. But maybe this is not needed anymore. Has anyone found a new way to tackle this ?
8 replies
Brad Vrabete
Hi there, I am building my apps through Microsoft App Center. I have been doing that for the last couple of years and it works fine. In the last week I am getting intermittent errors in that pipeline
Git fetch failed with exit code 128, back off <whatever> seconds before retry.
I start thinking there must be something on GitLab's side: is my account not allowed to do such an integration? What else can I look for?
3 replies
Alejandra Diaz Rojas
Hello!. Im trying to access to the analytics section but Im getting the message "Only Reporter roles and above on tiers Premium / Silver and above can see Productivity Analytics." I have a Reporter role.
4 replies
Balaganesh MURUGAN
Hello Team
AM facing some errorrs in gitlab pipeline
1 reply

Hi, I'm trying to set up selenium tests with GitLab CI, but the tests fail without creating any artifacts or console logging from inside the steps or describes (though there is some logging from inside a file imported by the config file). The job output looks like this

npm run confidence-check --host=selenium__standalone-chrome
    wdio testConfig/conf.js --cucumberOpts.tagExpression @testlogin
    Execution of 3 workers started at 2022-06-07T18:52:19.086Z
    [0-0] RUNNING in chrome - /features/Login.feature
    [0-0] FAILED in chrome - /features/Login.feature
    Spec Files: 0 passed, 1 failed, 2 skipped, 3 total (100% completed) in 00:00:02
    Uploading artifacts for failed job
    Uploading artifacts...
    e2e/errorShots: found 1 matching files and directories (these directories are all empty)
    e2e/testResults: found 1 matching files and directories
    e2e/allure-report: found 1 matching files and directories
    Uploading artifacts as "archive" to coordinator... 201 Created id=400 responseStatus=201 Created token=K2Lx3dVt
    Cleaning up project directory and file based variables
    ERROR: Job failed: exit code 1

And the pipeline stage looks like this:

  image: node:lts-alpine3.14
  stage: confidence-check
    - selenium/standalone-chrome
    - echo "====== Change to test directory ======"
    - cd e2e
    - echo "====== Install python ======"
    - apk add --update --no-cache py-pip
    - echo "====== Set up python build envt ======"
    - apk add python3 make g++
    - echo "====== Install dependencies ======"
    - npm install --legacy-peer-deps
    - echo "====== Create directories ======"
    - mkdir testResults
    - mkdir errorShots
    - mkdir allure-results
    - mkdir allure-report
    - echo "====== Run tests ======"
    - npm run confidence-check --host=selenium__standalone-chrome
    - allure generate -c ./allure-results -o ./allure-report

    when: always
      - e2e/errorShots
      - e2e/testResults
      - e2e/allure-report

(Ref. https://stackoverflow.com/questions/72545171/gitlab-ci-pipeline-not-producing-test-artifacts-from-webdriverio-tests)


Hi! I am trying to migrate from S3 terraform state to gitlab terraform state and get:

POST https://gitlab.com/api/v4/projects/XXX/terraform/state/qm-environment-cluster/lock Acquiring state lock. This may take a few moments... Error: Error acquiring the state lock Error message: HTTP remote state endpoint invalid auth

So the state is not locked, as the UI allows me to lock it. What is the reason for HTTP remote state endpoint invalid auth
Found the reason: The gitlab token did not have enough rights.
1 reply
berjan b
Hi, Folks
is there any on you using Gitlab SelfHosted + EKS with AUto Devops feature?
Mrinal Purohit
Hi all, Need some help: How do we force the pipeline to build the artifacts "FROM" specific branch?
Constantinos Symeonides

Is there an issue currently with the Dependency Proxy? I've been getting intermittent CI job failures with errors like this:

ERROR: Job failed: failed to pull image "gitlab.com:443/<redacted>/dependency_proxy/containers/docker:20.10.7-dind" with specified policies [always]: Error response from daemon: received unexpected HTTP status: 500 Internal Server Error (manager.go:203:0s)

I've also had failures when trying to build an image that uses the dependency proxy in its FROM.

2 replies
Russell Jacobs
Hi folks,
Is there an API documented or not which allows us to modify the new General pipeline settings introduced in v15. As an example I want to programmatically change the above option in screenshot.
1 reply
Hello, it's been a few days I've been trying to buy CI minutes, and it's failing. I opened a support ticket, but I cannot make the payment. I tried with different working cards.
1 reply
is anybody aware of the issue?
Hi everyone, why can't I add a group to a repository? In the dropdown list that appears when you want to invite a group on a specific repository I have 'group/subgroup' but not te group onlly.... https://imgur.com/a/uoH09Zs I mean, my group name is 'joifilabs' and inside I have more subgroups...a few months ago I could add 'joifilabs' only to any repository but now I can't....appears 'joifilabs/subgroup' only
Could it be something related with group settings or user permissions? because I also have tried to change the max role from maintainer to owner and it remains the same...
Constantinos Symeonides

Is there a way to customise the schedule of the Container Registry Cleanup job?

For context, we use the Docker Registry HTTP API to create a new tag for an existing image without having to pull and push the image.

This morning an image that was tagged in this way disappeared mysteriously from the registry, and it was at about the same time that the Cleanup job ran.

This might be a bug with the cleanup job, but I'm not sure how to give you a reproducible bug report if I can't control when the job runs! (and also if I can ensure the job runs during the night, it won't be a problem anymore)

Hello guys, when starting up gitlab using docker (docker-compose), is it possible to set some of the gitlab.rb variables via environment variables from the host? So let's say, I define a ROOT_PASSWORD=foo on the host system, now in the docker-compose I would like to use that env var so its value is used for gitlab_rails['initial_root_password']. This is defined in: https://docs.docker.com/compose/environment-variables/#pass-environment-variables-to-containers
so you can pass env vars into the containers. The question is, how is it for GITLAB_OMNIBUS_CONFIG as this is a multiline string. Tried the following, but without success. The root password was not set, instead I had to lookup and use the generated initial_root_password file.
version: '3.6'
    image: 'my-registry/dh/gitlab/gitlab-ee:15.0.3-ee.0'
    restart: always
    hostname: 'gitlab.example.com'
        external_url 'https://gitlab.my-domain.com'
        gitlab_rails['smtp_password'] = ENV['SMTP_PASSWORD']
        gitlab_rails['initial_root_password'] = ENV['ROOT_PASSWORD']
looks like you have to set them, leaving empty will not pass them, which is strange. Using ROOT_PASSWORD: ${ROOT_PASSWORD:} works.
how can I immediately delete a subgroup using the API?
I do not want the delete to be deferred... I am sure I do not want to restore the subgroup
I have a question,when i use command to set global webhook,how can i set webhook's trigger,it default is push event.help,please,that's command [gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"]