Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Simó Albert i Beltran
@sim6:matrix.org
[m]
And cannot create merge requests. Please could you help me?
Simó Albert i Beltran
@sim6:matrix.org
[m]
We deleted the fork and created another with the same name, but sems a bug.
JackBennett
@Jackbennett_gitlab
Hey, is there docs for the process to kustomize the gitlab-runner as deployed by gitlab-app into a manages kubernetes cluster?
Gabriel Karczewski
@nickelghost
Hello! I'm using Terraform with GitLab. I'm running terraform plan on merge requests. To do that however, I need variables that are exclusive to an environment. Because of that, when I'm just running a plan for an MR, GitLab says I deployed.
Screenshot 2021-03-28 at 14.49.00.png
Alexandre Leclercq
@alex.leclercq_gitlab
Hello there
ade
@ade:matrix.org
[m]
he everyone, I see in the docs that it says "you should install GitLab Runner on a machine that’s separate from the one that hosts the GitLab instance for security and performance reasons"
2 replies
however if you have a use case for it - would it actually break anything?
Bill Evans
@r2evans_gitlab
is there a non-intrusive way to try to garner more attention to gitlab forum questions? I have two that have seen no activity in >7d of waiting, not sure if they need more substance, are too wordy, or something else that would benefit from improvement (for ref, gitlab-runner and minio, and ssh-keys and fast key lookup)
ade
@ade:matrix.org
[m]
thanks @Jackbennett_gitlab
thanks @r2evans_gitlab
Weyert de Boer
@weyert
does anyone know how i can have a job which only should run when specific directroy has changes but allowed to be manual started?
6 replies
kenptr
@kenptr:matrix.org
[m]
1 reply
Reviewing code on my 13" MBP is super inconvenient, I even feel claustrophobic lol
Here is phabricator review tool for comparison, which has bigger screen, is it possible to change the UI to this using existing Settings?
6 replies
(or should I ask these questions somewhere else?)
generalibm
@generalibm
hi all, how can I integrate gitter into gitlab as a comment/chat tool ?
Kyle Bailey
@kbfirebreather_gitlab
I'm having an issue with Test Coverage Visualization in gitlab. I'm using a node project, and generated the cobertura-coverage.xml file with istanbul, but any files not in a sub directory, are put as <class> entries under <packages>, rather then in <packages> -> <package> -> <classes> -> <class>. This causes no test coverage to be visualized in the diff. If I manually move the list of <class> into a random package->classes, the coverage is shown. Is this an issue with the Test Coverage Visualization feature, or do I need a post processing stage that modified the generated cobertura xml?
1 reply
khaledshamat
@khaledshamat
Two factor authentication: I lost my authenticator app access on my mobile and i dont have the back codes to login into my account please help
binarious
@binarious
I'm having trouble securing my deployments. I don't want developers to modify the .gitlab-ci.yml, but that seems only possible by moving it to a separate project. That isn't practical, because then you only have one version of that file. Sometimes different branches need a different version (upgrading used images, etc.). Does anyone have a practical solution to limit developer's abilities to change deployment specifics?
6 replies
JackBennett
@Jackbennett_gitlab
Where's the docs for how the kubernetes executor runner works? the build and helpers comtianer interaction. I guess the job CI yaml scripts execs in the build container?
Александр Докучаев
@docuch_kirov_twitter
Hello, I am using Gitlab CE Omnimus and have problem with backups. Terraform state files are not included in backup.
Documentation state there is an option to skip terraform state. https://docs.gitlab.com/charts/architecture/backup-restore.html
But gitlab rake, does not mentions terraform state at all https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/tasks/gitlab/backup.rake
Ed Hills
@ed38_gitlab
Good Morning All- is the Gil ALb Runner backed up a bit this morning. I've been staring at pending for about 30 min
1 reply
Lukas M
@lukasmrtvy
Anyone tried to run gitlab runner for windows on kubernetes ?
Yann Soubeyrand
@yann.soubeyrand:matrix.org
[m]
Hello, I’ve created group applications to authenticate users but I get an internal server error from GitLab each time I’m redirected from my application to GitLab for authentication. Before that, I’ve been using user applications with the same configuration and it was working fine. Do you have a clue what’s going on?
Pavan Madduri
@pmady
Hi All, i was trying to do helm deployment to AKS from gitlab ci, i have couple of stages like fetching the kubeconfig , helm lint, helm dry run and helm deploy all running on different stages. Issue i was facing is during kubeconfig i was able to get the config file, but when i go to helm dry-run stage or any other stage config is going away. Is there any way i can retain the build stage cache or can i send the config file from one stage to another. What is the best way and how can i achieve it.
mattiasb
@mattiasb:matrix.org
[m]
Hi all! Is it possible to make all users on a server Developer on a repository?
Saul
@flanksaul

Hi anyone.

I'm completely stumped about a pipeline not triggering.

Pipelines on a particular repo have stopped triggering after someone was experimenting with an includes: from another repo. Pipelines were never able to run due to bad yaml fails stating the template could not be found. All sensible so far.

But now, I can't even run manual pipelines now without getting a "no stages" warning. We definitely have build/deploy stages.

I'm no longer even getting a failed pipeline on pushes/PRs. Just seems dead.

CI Lint seems totally fine with the ci file. I can't visually see any issues.

Is it possible the runners are not updating to the new code? It's all I can think of as silly as it sounds.
Sebastian K
@Nimelrian
Hi everyone! I'm having a little problem with Gitlab CI on our self-hosted instance. We can't log into our docker registry (self-hosted Sonatype Nexus), getting a "x509: certificate signed by unknown authority" error when running docker login. The nexus uses a self signed certificate with an intermediate (self-signed ca -> intermediate -> docker.nexus.company.lan). On the Gitlab CI side, I have configured a runner with a docker executor, mounting the CA as a volume to "/etc/gitlab-runner/certs/ca.crt". I created a small gist with our configuration, maybe someone can give me a pointer what I'm missing? https://gist.github.com/Nimelrian/27ab0a06d55164a82cb566ae273a2370
1 reply
denissabramovs
@denissabramovs
Hey everyone, have anyone successfully configured gitlab-ci runner with shell executor?
Sebastien Deschamps
@BeRoots

Hi everyone.
I actually learn gitlab to improve administration skills before subscribe a ee plan.
I have some difficulties after many weeks learning on how to install and configure a self-hosted gitlab to use it with my own self-hosted docker registry.
I have a docker-compose.yaml like this for my registry and I use a gitlab-ce (13.10.2 installed from omnibus on ubuntu 20.10) with a gitlab.rb like this.

There is many mistakes after reading docs and issues around the container registry administration:

1°) Where I can store key and certificates of the registry? Into /etc/gitlab/ssl same as gitlab key and certificate or into /etc/gitlab/trusted-certs... Actually the only way I found to resole a strange issue on /etc/gitlab/ssl/reg.example.key is to run a chmod 777 /etc/gitlab/ssl/reg.example.key on this file to keep root:root ownership because after a gitlab-ctl reconfigure this file ownership are git:git and the key has been modified... I'm sure I fail something here and it isn't a good practice.

2°) Why the doc say to change port 5000 of my registry to avoid conflict? What's the gitlab service that use this port?

3°) What do you think of my current setup? What will need to be modified to use an external container registry with GitLab as an auth endpoint ?

EDIT: I add this link to show you all my other files added during this attempt (TLS keys and certificates)

Thanks in advance for your help :)

narala558
@narala558
Hi everyone, I am having a small problem with the gitlab registry can we limit the number of images in the Gitlab container registry
ex : There is a project which is stored 200 images here we need to limit that the projects can not exceed more than 20 mins
Is there any option from the Gitlab side where we can limit the number of images to be stored with the projects
2 replies
ochorocho
@ochorocho

Hey ... i'm trying to re-create (delete and create it again) a generic package using the API.
But it's not working for $CI_JOB_TOKEN. It keeps returning {"message":"403 Forbidden"}

is this intended behavior?

  script:
    - apk add jq
    - mkdir dump
    - zip -r demo-data.zip some-folder
    # Delete existing package, re-create and attach file
    - |
      curl --request GET --header "JOB-TOKEN: ${CI_JOB_TOKEN}" ${PACKAGE_REGISTRY_URL}?package_name=site
    - |
      export GENERIC_PACKAGE_ID=`curl --request GET --header "JOB-TOKEN: ${CI_JOB_TOKEN}" "${PACKAGE_REGISTRY_URL}?package_name=site&package_type=generic" | jq '.[0].id'`
      [ "$GENERIC_PACKAGE_ID" == "null" ] && echo "No package to delete..." || curl --request DELETE --header "JOB-TOKEN: ${CI_JOB_TOKEN}" "${PACKAGE_REGISTRY_URL}$GENERIC_PACKAGE_ID"
    - |
      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ./demo-data.zip ${PACKAGE_REGISTRY_URL}/generic/site/${GITLAB_RELEASE_VERSION}/demo-data.zip
Wesley Vanbrabant
@wesley38_gitlab
Hey there, i have a question concerning the Gitlab runner: I've setup my own runner at the moment on an AWS ec2 instance. It runs inside docker on the instance. ATM I've opened up my EC2 instance on port 8093 as this is required for the gitlab to send requests to the runner if i'm not mistaken. I'd like to be a bit more strict and only make this accessible for gitlab though. Should I just whitelist the gitlab IP? Or is this dynamic? I'm not on a self hosted gitlab but using Gitlab SaaS together with my own runners.
5 replies
tuxflo
@tuxflo
Good morning from Germany :)
I have a hopefully simple question about Gitlab CI Pipelines: is it possible to set artifacts pathsas a default for all steps in a pipeline like it is possible to set an default image?
3 replies
agilob
@agilob:matrix.org
[m]
using kubernetes, can I run gitlab-ci runner on raspberry pi 4 but run all pipelines on amd64 computers?
tuxflo
@tuxflo
Is there a way to check which config file my local gitlab runner is using? I tried to change the pull_policy setting in /etc/gitlab-runner/config.toml but it still tries to pull images if I run gitlab-runner exec docker my_step
1 reply
Brian Johnson
@Brian.Johnson19_gitlab
I want to be able to deploy feature/ hotfix/ and master to production. I don't want the deployment to production to be possible without all merge request approval rules to have passed. I'm not seeing a predefined variable for Merge Request Approval rules. Is this possible to check if they've passed?
5 replies
Michael Sweikata
@MichaelSweikata
Hey all, anyone here played with Gitlab as the http statement management file for Terraform? Running into an auth issue, don't really know what the problem could be.
2 replies
Sebastien Deschamps
@BeRoots
Hello. Is it possible to have a simple access token for all project that use the container registry ? Is it the way to create a group and register all the docker relative project in this group and set a group acces token ?
2 replies
Jeric Santos
@santosronjeric

Hello Guys I Just Want To Ask If Any Of You Know This Issue.

I Am Installing A Self-Hosted Gitlab Using Docker Omnibus Installer.

I Am Installing It In An AWS EC2 Server Behind A Load Balancer And The SSL Certificate Will Also Be Handled By AWS Certificate Manager.

This Is My gitlab.rb File.

gitlab_rails['gitlab_shell_ssh_port'] = 22
external_url "https://my-git.testing.com"
registry_external_url "https://my-registry.testing.com"

nginx ['listen_port] = 80
nginx ['listen_https'] = false

registry['enable'] = true
registry_nginx['listen_port'] = 80
registry_nginx['listen_https'] = false

I Followed What Is In The Documentation But I Am Having This Error.

================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
================================================================================

SyntaxError
-----------
/omnibus_config.rb:7: syntax error, unexpected local variable or method, expecting ']'
nginx ['listen_https'] = false
        ^~~~~~~~~~~~
/omnibus_config.rb:9: syntax error, unexpected local variable or method, expecting end-of-input
registry['enable'] = true
          ^~~~~~

Cookbook Trace:
---------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:106:in `block in from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:29:in `auto_vivify'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:106:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:106:in `block in from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:29:in `auto_vivify'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:106:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:22:in `from_file'
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'

Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:

 99:  
100:    def from_file(_file_path)
101:      # Throw errors for unrecognized top level calls (usually spelling mistakes)
102:      config_strict_mode true
103:      # Turn on node deprecation messages
104:      Gitlab::Deprecations::NodeAttribute.log_deprecations = true
105:      # Allow auto mash creation during from_file call
106>>     Gitlab::ConfigMash.auto_vivify { super }
107:    ensure
108:      config_strict_mode false
109:      Gitlab::Deprecations::NodeAttribute.log_deprecations = false
110:    end
111:  
112:    # Enhance set so strict mode errors aren't thrown as long as the setting is witin our defined config
113:    def internal_set(symbol, value)
114:      if configuration.key?(symbol)
115:        configuration[symbol] = value

System Info:
------------
chef_version=15.14.0
platform=ubuntu
platform_version=20.04
ruby=ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client


Running handlers:
There was an error running gitlab-ctl reconfigure:

/omnibus_config.rb:7: syntax error, unexpected local variable or method, expecting ']'
nginx ['listen_https'] = false
        ^~~~~~~~~~~~
/omnibus_config.rb:9: syntax error, unexpected local variable or method, expecting end-of-input
registry['enable'] = true
          ^~~~~~

Running handlers complete
Chef Infra Client failed. 0 resources updated in 03 seconds

Thanks In Advance For Any Help!

1 reply
Abhishek kumar
@akumar1503
Hi guys, I need some help in adding backend test for a MR I'm working on.
I'm trying to figure out how to create desired commits to a repository so that it can be added to a merge_request.
kaddkaka
@kaddkaka
@akumar1503 Could you just push more commits to the branch for your MR?
1 reply
Larry Dewey
@TheSilentDrifter_gitlab

Hey everyone, this morning I am unable to pull any of my repositories from gitlab via ssh. I have verified my ssh keys and gpg keys are valid, and even replaced them with new ones, but I am still getting:

git@gitlab.com: Permission denied (publickey, keyboard-interactive).

The repository is set to public, so I can pull via https, but I would rather not have to login each time I send up a commit. Is something down at gitlab?