Difference between revisions of "Talk:GitLab"

From ArchWiki
Jump to navigation Jump to search
(→‎Rewrite of the article: Answer to Lahwaacz + question wrt. mediawiki formatting)
 
(23 intermediate revisions by 8 users not shown)
Line 7: Line 7:
 
:This has been explained, closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 19:43, 14 November 2017 (UTC)
 
:This has been explained, closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 19:43, 14 November 2017 (UTC)
  
== <s>Resolving dependencies and testing gitlab on remote server</s> ==
+
::I just managed to install a working Gitlab. Without an nginx server, you get no assets from Unicorn. And the installation manual from the Gitlab website is quite explicit about it: you need a server like nginx. [[User:Mdhooge|Mdhooge]] ([[User talk:Mdhooge|talk]]) 09:26, 23 July 2018 (UTC)
This is a reply to the question above, as well some things that was missed during the installation I made.
 
 
 
I'm not sure if it should be added, so I'm putting it here for discussion:
 
 
 
You should install the following packages, ''before'' installing the GitLab from AUR:
 
* https://aur.archlinux.org/packages/ruby-bundler/
 
* https://aur.archlinux.org/packages/gitlab-shell/
 
 
 
Also, after finally starting the gitlab with unicorn, if you have installed gitlab on a remote server and not locally, you won't be able to access it using domain:8080. It is even mentioned in /etc/webapps/gitlab/unicorn.rb. In order to be able to access it, I have changed 127.0.0.1 to the servers IP, and made sure that shell.yml reflect the change as well (including the port).
 
 
 
After restarting the daemons, I was able to access giltab using domain:8080.
 
 
 
[[User:Tahvok|Tahvok]] ([[User talk:Tahvok|talk]]) 09:18, 15 May 2014 (UTC)
 
 
 
:Closing as not applicable anymore - gitlab is in the community repository now and the IP addresses are properly explained on the page. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 19:50, 14 November 2017 (UTC)
 
 
 
== <s>nginx</s> ==
 
After completing the steps above I continued to nginx installation, however, being not familiar with nginx it took me some time, so I'll put it here for discussion as well. This is the full guide, I know that some things are already mentioned in the page, just not very organized.
 
 
 
After installing nginx, it is mentioned that you should make the following command:
 
 
 
# ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab
 
 
 
However, it will not work, since there is no site-available or sites-enabled directories, with include section in nginx.conf. It is true however in debian installations, but since we're in arch everything comes with no changes from the distro side.
 
 
 
Since there was no site-available file to copy the vhosts from, I read the official gitlab guide, and found that the file is located in /usr/share/webapps/gitlab/lib/support/nginx/ after installing the gitlab package.
 
 
 
I just put everything inside the file to nginx.conf inside the ''http'' section, just before the last {{ic|<nowiki>}</nowiki>}}, and changed the following:
 
* {{ic|server_name}} to reflect my server's domain.
 
* Set {{ic|proxy_pass}} config to reflect unicorn listening address. I just put {{ic|localhost:8080}} in nginx.conf and set back unicorn.rb to point to 127.0.0.1 as it was before (including the port 8080).
 
* Inside {{ic|upstream gitlab}} set {{ic|server}} to point to {{ic|unix:/usr/share/webapps/gitlab/tmp/sockets/gitlab.socket;}} - I'm NOT sure about this. I also had a permissions problem, so I changed group permission to http for the sockets folder.
 
* Point the config {{ic|root}} to {{ic|/usr/share/webapps/gitlab/public}};
 
* Comment out the ''gzip'' section - it was not working for me, and made the site with no assets, so I didn't bother with it.
 
 
 
Edit shell.yml as follows:
 
 
 
{{ic|gitlab_url: "http://domain/"}} - domain is the same as server_name in nginx.conf.
 
 
 
Also make sure that in gitlab.yml the host is set to your domain and the port is the same as in nginx.conf.
 
 
 
Restart the daemons:
 
$ systemctl restart gitlab-sidekiq gitlab-unicorn nginx
 
 
 
Should be working now.
 
 
 
As I said, this is my rough way of installing it, so before I put it on the page, would like to know if that's the right steps.
 
 
 
[[User:Tahvok|Tahvok]] ([[User talk:Tahvok|talk]]) 09:18, 15 May 2014 (UTC)
 
 
 
:The page points to {{ic|/usr/share/doc/gitlab/nginx.conf.example}} and [[Nginx#Managing server entries]] now. There is no place on this page to teach nginx basics and everything that Gitlab needs should be in the example file. Closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 19:56, 14 November 2017 (UTC)
 
  
 
== Using Sudo instead of su - ==
 
== Using Sudo instead of su - ==
Line 69: Line 19:
 
:Going to add Stub template, because more commands listed doesn't seem to work (correctly).
 
:Going to add Stub template, because more commands listed doesn't seem to work (correctly).
 
:[[User:Beta990|Beta990]] ([[User talk:Beta990|talk]]) 11:42, 21 December 2015 (UTC)
 
:[[User:Beta990|Beta990]] ([[User talk:Beta990|talk]]) 11:42, 21 December 2015 (UTC)
 +
{{Note|Regarding the `su - gitlab` users have gotten a update because they kept failing for me too.}}
  
{{Note|Regarding the `su - gitlab` users have gotten a update because they kept failing for me too.}}
+
:From what I've seen online, the correct way of sudo'ing into the gitlab user would be `sudo -i -u gitlab /bin/sh` but that results in a `Only ssh allowed` error for me (which I think originates from gitab-shell).
 +
:You can always do `sudo su - gitlab -s /bin/sh`, that does work for me.  
 +
:[[User:Gtarsia|Gtarsia]] ([[User talk:Gtarsia|talk]]) 18:23, 31 January 2019 (UTC)
  
 
== Very confusing ==
 
== Very confusing ==
Line 115: Line 68:
 
The Initialize Gitlab database section tells us to check if there's a secret file at /etc/webapps/gitlab/secret, while the file is found at /etc/webapps/gitlab/secrets.yml now. [[User:Sava|Sava]] ([[User talk:Sava|talk]]) 08:21, 25 September 2016 (UTC)
 
The Initialize Gitlab database section tells us to check if there's a secret file at /etc/webapps/gitlab/secret, while the file is found at /etc/webapps/gitlab/secrets.yml now. [[User:Sava|Sava]] ([[User talk:Sava|talk]]) 08:21, 25 September 2016 (UTC)
  
== <s>Regarding 'Running GitLab with rvm'</s> ==
+
== Rewrite of the article ==
  
 +
Hello everyone. If I look at your comments, we clearly see there is an issue with this installation guide. I talked on IRC with Sven-Hendrik Haase, the maintainer of the {{ic|gitlab}} package, and it seems only him has abilities to make this package 'work' properly without issue. Being the packager and knowing how Gitlab internals working is clearly an advantage, but this isn't the case for the newbie/simple Arch Linux user just wanting to have Gitlab installed in a matter of minutes. This is why I decided to completely rewrite this page. Please let me know your idea and comments wrt. this rewrite. New commits are ongoing. -- [[User:wget|wget]] ([[User talk:wget|talk]]) 13:46, 19 November 2017 (UTC)
 +
 +
:I've also recently successfully set up Gitlab using the Arch packages. There are a couple of things specific to my setup which are not mentioned on this page, but overall I don't see a need for a rewrite. It would also be hard to impossible to compare the differences from the current page. If you do that anyway, please use your user page for the draft. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 15:02, 19 November 2017 (UTC)
  
According to [[Gitlab#Running_GitLab_with_rvm]], Ruby version 1.9.3 is recommended. However, GitLab seems to recommend 2.3 since at least v9.2.1: [https://gitlab.com/gitlab-org/gitlab-ce/blob/v9.2.1/README.md].
+
:: What I mean by rewrite, the structure won't change, this is basically the same but all sentences have been reworded, because when you come along as a newbie, the package split seems weird and you do not know the different parts that constitutes Gitlab. But anyway, no worry, I can use this page is you want me to. I'm quite used in rewriting article (VirtualBox for example is a topic I have rewritten two years ago, Odoo and Mattermost as well). Since you're here, I have a question I would' like to ask you wrt. MediaWiki syntax with ArchLinux specific templates. I used bullet points in my rewrite:
Also, the section is not very clear whether rvm should be downloaded as the new user or not. It seems that this should be the case, but the section only mentions it after the first step.
 
Finally, it refers to the user {{ic|git}}, while Arch installs Gitlab for the user {{ic|gitlab}} by default.
 
Does the section need to be updated, or am I missing something here? Right now, I feel like installing GitLab without rvm. --[[User:Krukai|Krukai]] ([[User talk:Krukai|talk]]) 09:50, 6 September 2017 (UTC)
 
  
: This section still needs to be updated. I haven't performed a test of that topic yet. Feel free to update that section as I don't plan to use Gitlab with rvm any time soon (at least professionally). Regards. -- [[User:wget|wget]] ([[User talk:wget|talk]]) 14:54, 6 September 2017 (UTC)
+
::: I managed to have a working Gitlab instance! But I mostly followed the explanations from https://docs.gitlab.com/ee/install/installation.html… The ArchLinux Wiki is really outdated and also misguiding :-( But it still helped me out for the Arch-specific part (like the `sudo` to launch a command).
 +
::: - I believe there is a typo between `secret` and `secrets` (or Gitlab changed the name);
 +
::: - Nginx is now mandatory to serve the assets.
 +
::: IMHO the main interest of this package is to provide compiles assets, so you don't need nodejs & go. However, if I had to install it again from scratch, I surely will try to use the Gitlab procedure. [[User:Mdhooge|Mdhooge]] ([[User talk:Mdhooge|talk]]) 09:36, 23 July 2018 (UTC)
  
:: Thanks for the heads-up, but I don't see any reason right now to use rvm, either, as the package depends on exactly the Ruby version needed. I assume that once GitLab moved to Ruby 2.4, the package maintainer will as well. Perhaps the section could use a note indication something along those lines. --[[User:Krukai|Krukai]] ([[User talk:Krukai|talk]]) 15:17, 6 September 2017 (UTC)
+
== Old configuration info ==
  
::: I'd say remove this section altogether. RVM is not officially supported. --[[User:Maevius|Maevius]] ([[User talk:Maevius|talk]]) 17:22, 7 September 2017 (UTC)
+
Recently tried to setup gitlab/nginx by instructions on this page, but they are quite legacy for current version on community repository (config lines, locations, not-existent files). Any maintainer here? =)
  
:::: I went ahead and removed it as well as the SQLite section, that was veeeery old. --[[User:Maevius|Maevius]] ([[User talk:Maevius|talk]]) 09:42, 15 October 2017 (UTC)
+
{{unsigned|22:14, 4 December 2017‎|Llorephie}}
  
:::::Closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 17:36, 14 November 2017 (UTC)
+
:Corrections are always welcome so feel free to flag the inaccuracies with [[Template:Accuracy]] or just fix them if you know what is correct. As for the config snippets, I think they are mostly unnecessary as the default files are heavily commented, so it would be enough to describe what to look for. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 22:37, 4 December 2017 (UTC)
  
== Rewrite of the article ==
+
:: Indeed this article is a nightmare. I'm currently completely rewriting it, but I'm only able to work an hours a day on it. The rest of my FOSS time is devoted to maintaining some AUR packages. Please continue noticing issues about Gitlab on Arch Linux or simply modifying this document. I'm taking actions. :) -- [[User:wget|wget]] ([[User talk:wget|talk]]) 23:03, 4 December 2017 (UTC)
 +
 
 +
:::Today I got some time for more detailed reading and editing, so I hope it's better with my updates. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 20:28, 5 December 2017 (UTC)
 +
 
 +
== Suggested permissions of gitlab configuration directory? ==
 +
 
 +
This [https://stackoverflow.com/questions/60536389/suggested-gitlab-configuration-directory-permissions question]
 +
 
 +
[[User:Tallero|Tallero]] ([[User talk:Tallero|talk]]) 23:59, 4 March 2020 (UTC)
  
Hello everyone. If I look at your comments, we clearly see there is an issue with this installation guide. I talked on IRC with Sven-Hendrik Haase, the maintainer of the {{ic|gitlab}} package, and it seems only him has abilities to make this package 'work' properly without issue. Being the packager and knowing how Gitlab internals working is clearly an advantage, but this isn't the case for the newbie/simple Arch Linux user just wanting to have Gitlab installed in a matter of minutes. This is why I decided to completely rewrite this page. Please let me know your idea and comments wrt. this rewrite. New commits are ongoing. -- [[User:wget|wget]] ([[User talk:wget|talk]]) 13:46, 19 November 2017 (UTC)
+
:Keep the permissions that the Arch package has. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 07:48, 5 March 2020 (UTC)
  
:I've also recently successfully set up Gitlab using the Arch packages. There are a couple of things specific to my setup which are not mentioned on this page, but overall I don't see a need for a rewrite. It would also be hard to impossible to compare the differences from the current page. If you do that anyway, please use your user page for the draft. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 15:02, 19 November 2017 (UTC)
+
:: Output of <code>sudo su - git -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; bundle exec rake gitlab:check RAILS_ENV=production"</code>:
 +
<code title="test">
 +
  Errno::EACCES: Cannot load database configuration:
 +
  Permission denied @ rb_sysopen - /usr/share/webapps/gitlab/config/database.yml
 +
</code>
  
:: What I mean by rewrite, the structure won't change, this is basically the same but all sentences have been reworded, because when you come along as a newbie, the package split seems weird and you do not know the different parts that constitutes Gitlab. But anyway, no worry, I can use this page is you want me to. I'm quite used in rewriting article (VirtualBox for example is a topic I have rewritten two years ago, Odoo and Mattermost as well). Since you're here, I have a question I would' like to ask you wrt. MediaWiki syntax with ArchLinux specific templates. I used bullet points in my rewrite:
+
:: Output of <code>sudo su - gitlab -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; bundle exec rake gitlab:check RAILS_ENV=productio"n</code>
  
=== MediaWiki formatting question ===
+
<code>
 +
  Is authorized keys file accessible? ... no
 +
  Trying to fix error automatically. ...Failed
 +
    Try fixing it:
 +
    sudo chmod 700 /home/git/.ssh
 +
    touch /home/git/.ssh/authorized_keys
 +
    sudo chmod 600 /home/git/.ssh/authorized_keys
 +
    Please fix the error above and rerun the checks.
 +
</code>
  
* In the database config file {{ic|/etc/webapps/gitlab/database.yml}}, for the sections {{ic|production}} and {{ic|development}} (not {{ic|test}}, unless you know what you are doing), replace the fields with the credentials created above.
+
:: Of course stat is as suggested correct, with <code>git:git</code>.
:{{hc|/etc/webapps/gitlab/database.yml|
+
:: [[User:Tallero|Tallero]] ([[User talk:Tallero|talk]]) 13:41, 8 March 2020 (UTC)
[...]
 
database: ''gitlab_database''
 
[...]
 
username: ''gitlab_database_user''
 
password: "''gitlab_database_password''"
 
[...]
 
}}
 
  
How do you prevent the header split in this case. ^ As you can see the file content is not shifted as well while I made sure I used the trailing colon ({{ic|:}})? -- [[User:wget|wget]] ([[User talk:wget|talk]]) 16:09, 19 November 2017 (UTC)
+
:::The Arch Linux package uses {{ic|gitlab}} as the user who runs gitlab, not {{ic|git}}. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 13:53, 8 March 2020 (UTC)
 +
:::Also note that you need to configure {{ic|authorized_keys_file}} in {{ic|/etc/webapps/gitlab/gitlab.yml}} correctly - the home directory of the {{ic|gitlab}} user is {{ic|/var/lib/gitlab}}. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 14:13, 8 March 2020 (UTC)

Latest revision as of 14:13, 8 March 2020

Missing Section?

It might just be me, but it seems like a section is missing. In start and test it says visit your domain, however unless I am missing something pretty major that shouldn't work since neither apache nor nginx are ever setup / pointed to the webapp.--Theflyingfool (talk) 08:15, 8 April 2014 (UTC)

I don't have neither of them on my server, Gitlab uses own one, Unicorn, to deal with webapp. Kosciak9 (talk) 12:17, 6 December 2015 (UTC)

This has been explained, closing. -- Lahwaacz (talk) 19:43, 14 November 2017 (UTC)
I just managed to install a working Gitlab. Without an nginx server, you get no assets from Unicorn. And the installation manual from the Gitlab website is quite explicit about it: you need a server like nginx. Mdhooge (talk) 09:26, 23 July 2018 (UTC)

Using Sudo instead of su -

I don't have any root password on my pi, only my user password (for sudo). As the rest of the documentation uses sudo, it would be better to use sudo here too : https://wiki.archlinux.org/index.php?title=Gitlab&section=13

For some reason all sudo - commands fail for me, not sure why. ElectricPrism (talk) 08:10, 21 December 2015 (UTC)

I'm also having issues without being root, unfortunately there are more issues, and I couldn't install (the latest version) at all.
Going to add Stub template, because more commands listed doesn't seem to work (correctly).
Beta990 (talk) 11:42, 21 December 2015 (UTC)
Note: Regarding the `su - gitlab` users have gotten a update because they kept failing for me too.
From what I've seen online, the correct way of sudo'ing into the gitlab user would be `sudo -i -u gitlab /bin/sh` but that results in a `Only ssh allowed` error for me (which I think originates from gitab-shell).
You can always do `sudo su - gitlab -s /bin/sh`, that does work for me.
Gtarsia (talk) 18:23, 31 January 2019 (UTC)

Very confusing

I went through the install, I didn't make it work yet but I have a few questions on confusing instructions:

-I want to use my already set-up nginx webserver. Should I still use reddis, and the gem/bundle install commands ?

Yes, you should proxy-pass nginx to unicorn. Redis is used for internal communication, gem/bundle for setup. You can find good explanations at the GitLab website. DenBrahe (talk) 21:43, 19 April 2016 (UTC)

-What are the pros/cons to use the AUR package v. using the official package ?

AUR package is finetuned for Arch to work with systemd and linux conventions and things like that (don't know exactly). Basically if you're not an expert, you're better off with the AUR package. Wiki page should get an update though. DenBrahe (talk) 21:43, 19 April 2016 (UTC)

-How can we uninstall the components installed by the gem/bundle install commands ?

-the su - gitlab command is not working but sudo -u gitlab works (as mentionned in this thread), is that ok ?

-I don't have any shell.yml file, which is mentionned only once for the HTTPS configuration, is it normal ?

-what is /dev/null in the nginx config ?

-how do I setup resque.timer ? I can't load it? ('unit resque.timer not found).


Mentatf (talk) 22:41, 7 April 2016 (UTC)


I am adding my two cents to this section as well, because after trying for around 5 hours, I am giving up on the gitlab package and will try Gogs/Gitea instead. As I cannot say for sure what are actual problems and which are design choices made by the package maintainer that are just not well documented, someone else who has the necessary knowledge has to decide which changes are appropiate to make.

This is summary of the problems/confusion I faced:

  • The package depends on ruby2-3, which does not provide the bin 'ruby'. This throws off the environment check at the very least, yet no note is made of that.
  • Despite stating that the Arch package uses the user gitlab instead of git, the latter keeps getting mentioned in the article, sometimes even together with gitlab.
  • As described below, rvm seems to be neither necessary nor supported, yet the article implies that its usage is good practise.
  • All GitLab files seem to belong to root, leaving the gitlab with insufficient rights to save config files. As a result, at the very least the copy&paste solutions provided by the environment checks cannot be used because of that.
  • The article states that Unicorn is a HTTP server on its own, yet GitLab is shipped with nginx by default.
  • The article says that gitlab-workhorse is optional, yet at the very least the current Apache examples provided by GitLab all assume it to be configured. The package itself also depends on it.

Right now, it might be a better idea to intall GitLab from source, as the official documentation is more up-to-date and can be used with less adjustments. --Krukai (talk) 09:15, 8 September 2017 (UTC)

Another small thing: the wiki page says we should enable gitlab-sidekiq and gitlab-unicorn services, but these are already part of gitlab.target, so I believe there is no need in enabling them separately. --Nplatis (talk) 06:04, 26 September 2017 (UTC)

Check that the secret file exists

The Initialize Gitlab database section tells us to check if there's a secret file at /etc/webapps/gitlab/secret, while the file is found at /etc/webapps/gitlab/secrets.yml now. Sava (talk) 08:21, 25 September 2016 (UTC)

Rewrite of the article

Hello everyone. If I look at your comments, we clearly see there is an issue with this installation guide. I talked on IRC with Sven-Hendrik Haase, the maintainer of the gitlab package, and it seems only him has abilities to make this package 'work' properly without issue. Being the packager and knowing how Gitlab internals working is clearly an advantage, but this isn't the case for the newbie/simple Arch Linux user just wanting to have Gitlab installed in a matter of minutes. This is why I decided to completely rewrite this page. Please let me know your idea and comments wrt. this rewrite. New commits are ongoing. -- wget (talk) 13:46, 19 November 2017 (UTC)

I've also recently successfully set up Gitlab using the Arch packages. There are a couple of things specific to my setup which are not mentioned on this page, but overall I don't see a need for a rewrite. It would also be hard to impossible to compare the differences from the current page. If you do that anyway, please use your user page for the draft. -- Lahwaacz (talk) 15:02, 19 November 2017 (UTC)
What I mean by rewrite, the structure won't change, this is basically the same but all sentences have been reworded, because when you come along as a newbie, the package split seems weird and you do not know the different parts that constitutes Gitlab. But anyway, no worry, I can use this page is you want me to. I'm quite used in rewriting article (VirtualBox for example is a topic I have rewritten two years ago, Odoo and Mattermost as well). Since you're here, I have a question I would' like to ask you wrt. MediaWiki syntax with ArchLinux specific templates. I used bullet points in my rewrite:
I managed to have a working Gitlab instance! But I mostly followed the explanations from https://docs.gitlab.com/ee/install/installation.html… The ArchLinux Wiki is really outdated and also misguiding :-( But it still helped me out for the Arch-specific part (like the `sudo` to launch a command).
- I believe there is a typo between `secret` and `secrets` (or Gitlab changed the name);
- Nginx is now mandatory to serve the assets.
IMHO the main interest of this package is to provide compiles assets, so you don't need nodejs & go. However, if I had to install it again from scratch, I surely will try to use the Gitlab procedure. Mdhooge (talk) 09:36, 23 July 2018 (UTC)

Old configuration info

Recently tried to setup gitlab/nginx by instructions on this page, but they are quite legacy for current version on community repository (config lines, locations, not-existent files). Any maintainer here? =)

—This unsigned comment is by Llorephie (talk) 22:14, 4 December 2017‎. Please sign your posts with ~~~~!

Corrections are always welcome so feel free to flag the inaccuracies with Template:Accuracy or just fix them if you know what is correct. As for the config snippets, I think they are mostly unnecessary as the default files are heavily commented, so it would be enough to describe what to look for. -- Lahwaacz (talk) 22:37, 4 December 2017 (UTC)
Indeed this article is a nightmare. I'm currently completely rewriting it, but I'm only able to work an hours a day on it. The rest of my FOSS time is devoted to maintaining some AUR packages. Please continue noticing issues about Gitlab on Arch Linux or simply modifying this document. I'm taking actions. :) -- wget (talk) 23:03, 4 December 2017 (UTC)
Today I got some time for more detailed reading and editing, so I hope it's better with my updates. -- Lahwaacz (talk) 20:28, 5 December 2017 (UTC)

Suggested permissions of gitlab configuration directory?

This question

Tallero (talk) 23:59, 4 March 2020 (UTC)

Keep the permissions that the Arch package has. -- Lahwaacz (talk) 07:48, 5 March 2020 (UTC)
Output of sudo su - git -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; bundle exec rake gitlab:check RAILS_ENV=production":

 Errno::EACCES: Cannot load database configuration:
 Permission denied @ rb_sysopen - /usr/share/webapps/gitlab/config/database.yml

Output of sudo su - gitlab -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; bundle exec rake gitlab:check RAILS_ENV=productio"n

 Is authorized keys file accessible? ... no
 Trying to fix error automatically. ...Failed
   Try fixing it:
   sudo chmod 700 /home/git/.ssh
   touch /home/git/.ssh/authorized_keys
   sudo chmod 600 /home/git/.ssh/authorized_keys
   Please fix the error above and rerun the checks.

Of course stat is as suggested correct, with git:git.
Tallero (talk) 13:41, 8 March 2020 (UTC)
The Arch Linux package uses gitlab as the user who runs gitlab, not git. -- Lahwaacz (talk) 13:53, 8 March 2020 (UTC)
Also note that you need to configure authorized_keys_file in /etc/webapps/gitlab/gitlab.yml correctly - the home directory of the gitlab user is /var/lib/gitlab. -- Lahwaacz (talk) 14:13, 8 March 2020 (UTC)