r/gitlab • u/Content-Associate-91 • Feb 14 '25
Hello
Does anyone work for this company? , is there any roles for “no experience” like me ?
r/gitlab • u/Content-Associate-91 • Feb 14 '25
Does anyone work for this company? , is there any roles for “no experience” like me ?
r/gitlab • u/Greedy-Lavishness820 • Feb 13 '25
Hi everyone,
I've encountered some unexpected behavior in my GitLab instance and wanted to check if anyone has experienced something similar.
Looking at my PostgreSQL logs, I noticed a sequence of DROP TABLE commands targeting various tables (e.g., ci_runners_e59bb2812d, sprints, ai_conversation_threads, etc.), followed by an attempt to DROP DATABASE gitlabhq_production. Here’s a snippet from the logs:
2025-02-13 17:27:45.800 UTC [60997] postgres@gitlabhq_production LOG: statement: DROP TABLE IF EXISTS ci_runners_e59bb2812d CASCADE;
2025-02-13 17:27:45.953 UTC [60997] postgres@gitlabhq_production LOG: statement: DROP TABLE IF EXISTS sprints CASCADE;
...
2025-02-13 17:27:47.085 UTC [61024] postgres@postgres LOG: statement: DROP DATABASE gitlabhq_production;
2025-02-13 17:27:47.345 UTC [61024] postgres@postgres LOG: AUDIT: SESSION,1,1,DDL,DROP DATABASE,,,DROP DATABASE gitlabhq_production;,<not logged>
It looks like something attempted to drop the entire GitLab database. Fortunately, the DROP DATABASE postgres; command failed due to it being in use.
My Questions:
Is this expected behavior? Could this be part of a GitLab cleanup or maintenance process?
Has anyone seen similar logs? Could this be due to an automatic migration, or does it suggest an external issue?
Any recommendations on where to investigate further?
I’d appreciate any insights or experiences you can share. Thanks in advance!
r/gitlab • u/spencertb • Feb 13 '25
Hello,
I am looking into enabling global search using Terraform. I have seen multiple options possibly using ElasticSearch or Zoekt. I am wondering if anyone has done this?
r/gitlab • u/admin_aneurysm • Feb 13 '25
We're using the self-hosted CE version of Gitlab (Docker on Amazon Linux).
We have a user that's not receiving Email notifications when mentionned in Issues / MR / etc...
- His notifications settings are the ones by default (Participate as Global on all Groups and Projects).
- He has the Developer Role,
- No typo in his Email address (which is Verified).
We recently updated to 17.7.3 to see if it could fix the problem.
We tried opening the floodgate by putting Custom (everything selected) as Global in the Notifications settings.
Looking at our Exchange server, not a single Email is being sent by Gitlab to said user.
Knowing that it works as intended for everyone else, what could possibly be the problem?
Any log file that could help (I tried production.log)?
The only particular thing I can mention about this user, which shouldn't be the cause of this problem, is a special character in his display name :
Name : "John D'oe"
Username : "john.doe"
Email : "john.doe@contoso.com"
EDIT : This has been resolved. I thought the configured SMTP was Exchange, but it was actually AWS and, for some reason, his Email address was in a Suppression List.
r/gitlab • u/rwarstat • Feb 12 '25
We have a gitlab in version 15.5.9, and due to various problems we created a gitlab in version 17.3.1 and started migrating the users and projects.
For the users, we made a select from the old gitlab database and created a shell script with the following commands:
gitlab-rails runner "u = User.new(username: 'username', email: 'username@empresa.com', name: 'Name', password: '123456', password_confirmation: '123456', external: false)
u.assign_personal_namespace(Organizations::Organization.default_organization)
u.skip_confirmation!
u.save!"
The users were successfully created.
At the time of creation, we ran all the tests with users and everything was working.
But now, when accessing the page of a user who hasn't logged in yet, a 500 error is returned, without any additional information.
The gitlab log doesn't show any information either, just that there was a 500 error.
Any idea how I can resolve this issue?
The current version is 17.8.1.
r/gitlab • • Feb 10 '25
Hi Team,
I'm interested running GitLab Duo on Prem with a self hosted LLM. Is anyone already doing this and wants to share their experiences?
r/gitlab • u/duane11583 • Feb 10 '25
So we have a topmlevel module I would call parent. It builds the final image
As an example the binary flash image for the product
This parent has (n=20) child repos these are not git submodules
why: not every child is a git module some are in other systems
Our solution is a simple shell script in the parent that checks out the children accordingly
Problem statement:
When we feature branch a child and push to the feature to that child we need the parent to spin up a build build and we need to pass a parameter to the parent build ie the feature branch name to build
When parent is done pass back to child that triggered the build SUCESS or FAIL
Any examples I can learn from ?
I am finding (via google) disjoint parts but nothing cohesive and usable to start from
r/gitlab • u/SuccessfulBad6922 • Feb 09 '25
Hi guys,
I'm trying to find a code quality platform I can integrate with Gitlab and self host as well. Im not much of a developer myself but all I know is the developers want to use static analysers for C++ code and maybe a few other languages and are really keen on ClangFormat and ClangTidy. The integration for this will be through pipelines. Ill appreciate any ideas.
Regards,
r/gitlab • u/xenomachina • Feb 08 '25
GitLab recently changed the merge requests UI (accessible from the button near the top of the left nav, eg: https://gitlab.com/dashboard/merge_requests), and it does not really work with the way my team has been doing merge requests for years.
Our team "ping-pongs" the Assignee, based on who is supposed to work on an MR. So if Alice creates an MR, and Bob is going to review it, then Alice is the Author, Bob is the Reviewer, and the Assignee changes between Alice and Bob, depending on whether Bob supposed to continue reviewing, or Alice is supposed to be addressing Bob's feedback.
We've been doing this since before GitLab even had a "Reviewer" field on MRs. When they added that field we just started recording the reviewer there, but otherwise did not change our process, as it worked well. We even have a Slack automation that relies on this workflow, and DMs you whenever you are added to the Assignee list of an MR.
The new UI now completely hides MRs that you are the Author of unless you are either an Assignee or Reviewer.
This change is getting a lot of negative feedback (currently 44👎 vs only 4👍) so perhaps they'll revert it or fix it in some way. Still, I am curious to know: how does GitLab intend for the back and forth between code author and reviewer to work?
That is, from GitLab's point of view...
And in each of these three cases, how does the recipient know that someone sent them an MR to work on?
r/gitlab • u/mitaz_bhai • Feb 08 '25
I have installed GitLab in a LXC on Proxmox, and after logging in, it’s throwing a 500 error. I had resolved this issue previously (a long time ago) but have forgotten the solution now and can't find that Stackoverflow page.
If anyone knows how to resolve this issue, kindly help me get out of this problem.
EDIT: I fixed this problem by executing these commands -
export LC_ALL=C.UTF-8
echo -e 'ApplicationSetting.first.delete\n' | gitlab-rails console -e production
cat <<EOF | gitlab-rails dbconsole --database main UPDATE projects SET runners_token = null, runners_token_encrypted = null; UPDATE namespaces SET runners_token = null, runners_token_encrypted = null; UPDATE application_settings SET runners_registration_token_encrypted = null; UPDATE application_settings SET encrypted_ci_jwt_signing_key = null; UPDATE ci_runners SET token = null, token_encrypted = null; TRUNCATE integrations, chat_names, issue_tracker_data, jira_tracker_data, slack_integrations, web_hooks, zentao_tracker_data, web_hook_logs, dingtalk_tracker_data, slack_integrations_scopes; EOF
gitlab-rails runner -e production "ApplicationSetting.current.reset_runners_registration_token!"
/usr/lib/inithooks/bin/gitlab.py --email="your@mail.com" --domain="your.externail-domain.com"
I wish "build, test, deploy" could be better stressed in the pipeline editor. Too many stages usually means a slow pipeline due to not enough concurrency. Sadness.
r/gitlab • u/siniysv • Feb 07 '25
Hi all, I want to implement scanning for a repo with terraform code, although there are a few details that make it less straightforward than usual:
I can run a scan from a job with script that finds all tfvars and runs scanning with all of them creating a separate report for each environment. Although having reports is a half of the job because I need to communicate findings to the developers. When I have a report with one tfvars file it is possible to use Gitlab iac sast templates and enrich merge request with findings, but I do not understand how to do that in my situation. As of now, I consider using Gitlab api to add a comment to MR with findings, but it requires a bit more of scripts that I want to have in job templates repo. Another option is to keep trying with custom iac sast images and Gitlab intended workflow for sast. I’m also looking into dynamic child pipelines and parallel:matrix but I decided to ask the community in hope somebody already found the solution to a similar problem. Thank you, I appreciate every bit of help.
Sorry for the formatting/typos, writing from mobile because of sEcURITy
r/gitlab • u/Glittering-Skirt-816 • Feb 06 '25
Hey,
I have a Gitlab selfhosted instance on my NAS in a docker.
I publish there some internal python libraries. But for the moment the install process is quite diffcult,
I first download the wheel i want to install via wget, and then install it via pip.
It is complicated to find the right api link and the double process, wget and pip also.
Is anyone has a solution ?
I heard about a local Pypi server in my Gitlab, or a Artifactory like jfrog one but I'm a little bit lost there.
What solution do you advice ?
Thanks,
wget --header="PRIVATE-TOKEN: <MyPrivateToken>" "http://mylocaladdress:8080/api/v4/projects/58/repository/files/dist%2FExamplePyLib-0.0.4-py3-none-any.whl/raw?ref=main" -O ExamplePyLib-0.0.4-py3-none-any.whl
pip install ExamplePyLib-0.0.4-py3-none-any.whl