Skip to content

gitlab-ce docker macOS: Too Many Open Files

macos: 10.15.6

Here is the script I use to launch gitlab-ce locally on my docker desktop/macOS: https://github.com/veertuinc/getting-started/blob/master/GITLAB/install-gitlab-on-docker.bash

Once launched, it seems to run fine. I see my example project repo, register my runners, and I'm able to then kick off a CI/CD pipeline/jobs.

However, after about 3 or 4 jobs run, the I start getting 500 errors on the UI and my pending jobs start failing.

I ran docker logs --tail 100 -f anka.gitlab >> gitlab-logs to see what was going on at the time. Search for the following lines in the log and you'll see where things start getting "out of file descriptors: Too many open files; release and retry"

==> /var/log/gitlab/postgresql/current <==
2020-09-25_21:42:16.98619 LOG:

Here is the log: https://drive.google.com/file/d/13V7zZmpTMC6Urs035ioDyDxXveueVuIc/view?usp=sharing

I've tried both the stable and edge docker desktop. I've tried changing the ce docker tag that I'm using and also specific or global runners, no difference. I am not doing anything special from the base installation other than importing a project and running it. Here are the examples: https://github.com/veertuinc/gitlab-examples

Anyone have any ideas? Seems like a postgresql issue?

Edited by Nathan Pierce Veertu