Fresh GitLab Installation gives error 500 on home page (Plesk, Debian 9)

xerox102

I tried to install GitLab on a small personal server and configure it so that it will work on a Plesk WebAdmin subdomain. I installed GitLab normally via the Omnibus package. I changed the following settings in the gitlab.rb file:

nginx['enable'] = false
web_server['external_users'] = ['www-data', 'PLESK_USER']
web_server['group'] = 'psacln'
gitlab_workhorse['listen_network'] = "tcp"
gitlab_workhorse['listen_addr'] = "127.0.0.1:8181"

where PLESK_USER is the user linked to that plesk subdomain.

I redirected HTTP to HTTPS on the subdomain, which works, the SSL certificate also works.

In Plesk, under "additional directives for HTTPS", I pasted the text from this page in the <VirtualHost *:443> tag. https://gitlab.com/gitlab-org/gitlab-recipes/blob/master/web-server/apache/gitlab-omnibus-ssl-apache24.conf

and I replaced YOUR_SERVER_FQDN as well as the 3 SSLCertificateFile lines (with the ones I found under /var/www/vhosts/system/fqdn/conf/last_nginx.conf

Visiting my domain, I immediately get a 500 error. This is before even creating a root user. The message appears GitLab specific, having the GitLab logo and corresponding text, so I do believe the routing to GitLab itself seems to be working.

In the Production Log, I only get the following output for each site visit:

Started GET "/-/metrics" for 127.0.0.1 at 2019-05-27 11:59:44 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)

and using gitlab-ctl tail

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/-/metrics" for 127.0.0.1 at 2019-05-27 12:01:29 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)

==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/-/metrics","format":"html","controller":"MetricsController","action":"index","status":200,"duration":2.64,"view":0.41,"db":0.0,"time":"2019-05-27T12:01:29.670Z","params":[],"remote_ip":null,"user_id":null,"username":null,"ua":null,"queue_duration":null,"correlation_id":"98970bd1-9618-41ea-85a2-5f59b26fd16b"}

These messages show up immediately and exactly once for every browser request I make.

sudo gitlab-rake gitlab:check --trace also doesn't reveal any further missing information. The lack of any concrete error messages leads me to believe that there is a problem with the linking between Plesk and GitLab rather than the GitLab installation itself, but I can't find this concrete problem anywhere else and I'm really out of ideas on what to check.

I'm grateful for any help.

Edit: Checking the log in /var/log/gitlab/gitlab-workhorse/current, on startup of the application (after each restart) I can see the following error messages

2019-05-27_13:11:49.39615 time="2019-05-27T13:11:49Z" level=error msg="unknown error" error="keywatcher: pubsub receive: EOF"
2019-05-27_13:11:49.39617 time="2019-05-27T13:11:49Z" level=info msg="redis: dialing" address=/var/opt/gitlab/redis/redis.socket network=unix
2019-05-27_13:11:49.39617 time="2019-05-27T13:11:49Z" level=error msg="unknown error" error="keywatcher: dial unix /var/opt/gitlab/redis/redis.socket: connect: no such file or directory"

However since I have not changed any settings past the ones I initially mentioned, I can't really find any connection to my specific configuration.

xerox102

I have now solved this problem.

In my Plesk Interface under "Tools & Settings" - "Apache Web Server" the module "proxy_http" was not enabled. Enabling the module solves the issue perfectly with the above configuration! Hopefully this can help someone in the future with the same issue.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Gitlab CI gives 500, ERROR: relation "sessions" does not exist

From Dev

Gitlab CI gives 500, ERROR: relation "sessions" does not exist

From Dev

Error in the fresh symfony installation

From Dev

How do I change the default home page of my gitlab installation

From Dev

XWiki error 500 on fresh install

From Dev

No sound - 'Dummy Output' on Debian 9 fresh install

From Dev

Reusing encrypted home directory in a fresh system installation

From Dev

Django, nginx, gunicorn: why on some page gives Server Error (500)?

From Dev

i3 on Debian 9 Stretch -- installation error -- "unmet dependencies"

From Dev

nvcc error, "no command" verifying installation of CUDA 10 on Debian 9 Stretch

From Dev

Laravel Fresh Install 500 Error on GoDaddy VPS

From Dev

Gitlab ci installation error

From Dev

RewriteRule gives HTTP 500 error

From Dev

I can't login to the graphical interface after a fresh installation of Debian?

From Dev

Errors when trying to update a fresh debian 10.5 KDE installation

From Dev

Debian 9: cannot start supervisor after a fresh install

From Dev

composer update error on fresh installation of laravel 5

From Dev

GitLab installation on Debian Wheezy fails demanding initctl

From Dev

Securing a Debian installation for general home usage

From Dev

On Debian 9, is /root part of the /home partition?

From Dev

500 Error upon login into Plesk Admin - auth.php3?

From Dev

Laravel 5: jQuery Typeahead gives error status 500 on page load (Missing argument)

From Dev

Hartl Tutorial 3.1: 500 Runtime Error when navigating to 'home' static page

From Dev

Hartl Tutorial 3.1: 500 Runtime Error when navigating to 'home' static page

From Dev

hCatalog page gives error

From Dev

Install Laravel gives Apache Default Home Page

From Dev

Error for customize page error 500

From Dev

pymongo installation gives permission error

From Dev

Installation of Debian 9 in Dell Inspiron 7559

Related Related

  1. 1

    Gitlab CI gives 500, ERROR: relation "sessions" does not exist

  2. 2

    Gitlab CI gives 500, ERROR: relation "sessions" does not exist

  3. 3

    Error in the fresh symfony installation

  4. 4

    How do I change the default home page of my gitlab installation

  5. 5

    XWiki error 500 on fresh install

  6. 6

    No sound - 'Dummy Output' on Debian 9 fresh install

  7. 7

    Reusing encrypted home directory in a fresh system installation

  8. 8

    Django, nginx, gunicorn: why on some page gives Server Error (500)?

  9. 9

    i3 on Debian 9 Stretch -- installation error -- "unmet dependencies"

  10. 10

    nvcc error, "no command" verifying installation of CUDA 10 on Debian 9 Stretch

  11. 11

    Laravel Fresh Install 500 Error on GoDaddy VPS

  12. 12

    Gitlab ci installation error

  13. 13

    RewriteRule gives HTTP 500 error

  14. 14

    I can't login to the graphical interface after a fresh installation of Debian?

  15. 15

    Errors when trying to update a fresh debian 10.5 KDE installation

  16. 16

    Debian 9: cannot start supervisor after a fresh install

  17. 17

    composer update error on fresh installation of laravel 5

  18. 18

    GitLab installation on Debian Wheezy fails demanding initctl

  19. 19

    Securing a Debian installation for general home usage

  20. 20

    On Debian 9, is /root part of the /home partition?

  21. 21

    500 Error upon login into Plesk Admin - auth.php3?

  22. 22

    Laravel 5: jQuery Typeahead gives error status 500 on page load (Missing argument)

  23. 23

    Hartl Tutorial 3.1: 500 Runtime Error when navigating to 'home' static page

  24. 24

    Hartl Tutorial 3.1: 500 Runtime Error when navigating to 'home' static page

  25. 25

    hCatalog page gives error

  26. 26

    Install Laravel gives Apache Default Home Page

  27. 27

    Error for customize page error 500

  28. 28

    pymongo installation gives permission error

  29. 29

    Installation of Debian 9 in Dell Inspiron 7559

HotTag

Archive