After update cannot push.
Using the Ubuntu package, after an update I get the following error when pushing:
GitLab: API is not accessible
Then, on the server I did gitlab-ctl status
:
run: gitlab-git-http-server: (pid 1766) 784s; run: log: (pid 579) 931s
run: logrotate: (pid 1773) 783s; run: log: (pid 582) 931s
run: nginx: (pid 1779) 783s; run: log: (pid 583) 931s
down: postgresql: 1s, normally up, want up; run: log: (pid 580) 931s
run: redis: (pid 1796) 777s; run: log: (pid 588) 931s
run: sidekiq: (pid 1805) 775s; run: log: (pid 581) 931s
run: unicorn: (pid 1825) 773s; run: log: (pid 591) 931s
So it must be postgresql. Do a gitlab-ctl restart
, and a reboot
, same thing. So then I do a gitlab-ctl tail
, and find this exert:
==> /var/log/gitlab/postgresql/current <==
2015-09-24_18:43:34.87636 FATAL: could not create shared memory segment: Invalid argument
2015-09-24_18:43:34.87660 DETAIL: Failed system call was shmget(key=5432001, size=293978112, 03600).
2015-09-24_18:43:34.87668 HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 293978112 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.
2015-09-24_18:43:34.87674 If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
sysctl -a | grep shmmax
:
kernel.shmmax = 33554432
And this keeps repeating aver and over again. This is an openVZ VPS, if it can help.