Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 825554 - www-apps/gitlab-14.5.0::gitlab: postgresql_adapter.rb:83:in `rescue in new_client': FATAL: role "git" does not exist (ActiveRecord::ConnectionNotEstablished)
Summary: www-apps/gitlab-14.5.0::gitlab: postgresql_adapter.rb:83:in `rescue in new_cl...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Horst Prote
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-21 13:55 UTC by Samuel Bernardo
Modified: 2023-02-05 23:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,49.24 KB, text/plain)
2021-11-21 13:55 UTC, Samuel Bernardo
Details
emerge.info (emerge.info,8.42 KB, text/plain)
2021-11-21 13:57 UTC, Samuel Bernardo
Details
emerge.pqv (emerge.pqv,139 bytes, text/plain)
2021-11-21 13:57 UTC, Samuel Bernardo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2021-11-21 13:55:33 UTC
Created attachment 754310 [details]
build.log

This was a recent clean install from gitlab-14.4.2, but update fails again with the same issue as before: role 'git' does not exists.

Going to check this...
Comment 1 Samuel Bernardo 2021-11-21 13:57:15 UTC
Created attachment 754314 [details]
emerge.info
Comment 2 Samuel Bernardo 2021-11-21 13:57:37 UTC
Created attachment 754318 [details]
emerge.pqv
Comment 3 Samuel Bernardo 2021-11-21 14:00:59 UTC
gitlab-update-config.service is not being started with gitlab.target.

From news read I understood that gitlab.target would bring all required services up.
Comment 4 Samuel Bernardo 2021-11-21 14:03:06 UTC
(In reply to Samuel Bernardo from comment #3)
> gitlab-update-config.service is not being started with gitlab.target.
> 
> From news read I understood that gitlab.target would bring all required
> services up.

sorry, it runned... gitlab-update-config is oneshot so in the end appears as inactive dead, but the logs shows that it synchronized the config.
Comment 5 Samuel Bernardo 2021-11-21 14:25:15 UTC
It seems that the issue was already in current install... Besides gitlab-puma.service appears with state active (running), looking to the logs it actually failed with same error:

 "message":"! Unable to load application: ActiveRecord::ConnectionNotEstablished: FATAL:  role \"git\" does not exist\n"}
/gems/activerecord-6.1.4.1/lib/active_record/connection_adapters/postgresql_adapter.rb:83:in `rescue in new_client': FATAL:  role "git" does not exist (ActiveRecord::Con

I reviewed what I have installed and realized that I have acct-user/git ebuild with gitlab use flag. Then there are other ebuild from gitlab overlay for setting up the group that are not installed (at least not a required dependency for current version):
acct-group/gitlab

My current installed ebuilds are:
acct-group/git
acct-user/git with gitlab use flag
Comment 6 Samuel Bernardo 2021-11-21 14:46:00 UTC
I'm now checking the dependencies and realized that acct-group/gitlab is a dependency of gitlab if pages use flag is enabled. Going to test with this option enabled.

I also did a complete emerge -cv after uninstalling gitlab this time.

Trying to set the configs for this new release (I could have some garbage from old gitlabhq).
Comment 7 Samuel Bernardo 2021-11-21 23:39:12 UTC
Using package on another machine, it also fails the update, so all scripts are also called on that case. gitlab ebuild seems to be working for both scenarios: compiling from source or using binary package.
I couldn't bypass that error of git account yet... Need to remove and install it again to keep going. Need to solve the issue later.