500 Error - docker

500 Error after upgrading to latest docker container

Here’s a sample of the output of gitlab-ctl tail. I’m not including all of it because it seems to never end.

==> /var/log/gitlab/postgresql/current <==
2018-04-20_13:19:19.40575 LOG:  request to flush past end of generated WAL; request 34/74006E08, currpos 0/1AD8478
2018-04-20_13:19:19.40581 CONTEXT:  writing block 0 of relation base/16385/17983
2018-04-20_13:19:19.40583 ERROR:  xlog flush request 34/74006E08 is not satisfied --- flushed only to 0/1AD8478
2018-04-20_13:19:19.40585 CONTEXT:  writing block 0 of relation base/16385/17983
2018-04-20_13:19:19.40585 WARNING:  could not write block 0 of base/16385/17983
2018-04-20_13:19:19.40586 DETAIL:  Multiple failures --- write error might be permanent.
2018-04-20_13:19:19.71688 LOG:  request to flush past end of generated WAL; request 34/74006E08, currpos 0/1AD8478
2018-04-20_13:19:19.71693 CONTEXT:  writing block 0 of relation base/16385/17983
2018-04-20_13:19:19.71694 ERROR:  xlog flush request 34/74006E08 is not satisfied --- flushed only to 0/1AD8478
2018-04-20_13:19:19.71695 CONTEXT:  writing block 0 of relation base/16385/17983
2018-04-20_13:19:19.71724 WARNING:  could not write block 0 of base/16385/17983
2018-04-20_13:19:19.71726 DETAIL:  Multiple failures --- write error might be permanent.

==> /var/log/gitlab/gitlab-monitor/current <==
2018-04-20_13:19:19.87989 ::1 - - [20/Apr/2018:13:19:19 UTC] "GET /process HTTP/1.1" 200 1496
2018-04-20_13:19:19.88058 - -> /process

==> /var/log/gitlab/postgresql/current <==
2018-04-20_13:19:20.71811 LOG:  request to flush past end of generated WAL; request 34/74006E08, currpos 0/1AD8478
2018-04-20_13:19:20.71816 CONTEXT:  writing block 0 of relation base/16385/17983
2018-04-20_13:19:20.71818 ERROR:  xlog flush request 34/74006E08 is not satisfied --- flushed only to 0/1AD8478
2018-04-20_13:19:20.71819 CONTEXT:  writing block 0 of relation base/16385/17983
2018-04-20_13:19:20.71820 WARNING:  could not write block 0 of base/16385/17983
2018-04-20_13:19:20.71820 DETAIL:  Multiple failures --- write error might be permanent.

==> /var/log/gitlab/sidekiq/current <==
2018-04-20_13:19:21.67079 2018-04-20T13:19:21.669Z 480 TID-otctxhqa0 PipelineScheduleWorker JID-9263b955bf52c4a8b117bf7a INFO: start

Edit:

I’ve done some more digging. It seems like the “Hooks directory in repos are links”. I’m not sure where to go from here, but at least it’s something. Here are the logs:

# gitlab-rake gitlab:check
Checking GitLab Shell ...

GitLab Shell version >= 6.0.4 ? ... OK (6.0.4)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... rake aborted!
PG::ConnectionBad: FATAL:  remaining connection slots are reserved for non-    replication superuser connections
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:175:in `check_repos_hooks_directory_is_link'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:51:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:check => gitlab:gitlab_shell:check
(See full trace by running task with --trace)

Bump.