New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac don't start docker gitlab caused by psotgresql , how to solve it #2818
Comments
From the message |
what is the resolution to this though I am facing the same issue. |
The issue I am facing is similar |
I believe you are using a recent version of Docker Desktop which enables VirtioFS for file sharing by default. This blocks the embedded PostgreSQL from booting up. Changing it back to gRPC Fuse mode could help to work it around. This has bothered me for a day on a new laptop. I recall it was working on an old laptop of M1 so it might be running an old version of Docker Desktop. Then I tried some old versions of Docker Desktop and 4.19.0 happened to work which does not have VirtioFS turned on yet but later versions made it default since 4.21.0. Still don't know the root cause yet. I may explore it a bit further to see if I can find some time over the weekend. |
Yes you are right changing it back to gRPC Fuse got it working again. |
It sounds caused by the permission issue of VirtioFS in Docker Desktop. |
I got the same failure under permissions error details
|
You may want to clean up or delete the persistent volumes and start the container from scratch after switching file sharing mode. |
2023-08-29_03:21:56.76573 LOG: starting PostgreSQL 13.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1
22.04.1) 11.3.0, 64-bit22.04.1) 11.3.0, 64-bit2023-08-29_03:21:56.76817 LOG: could not set permissions of file "/var/opt/gitlab/postgresql/.s.PGSQL.5432": Invalid argument
2023-08-29_03:21:56.76835 WARNING: could not create Unix-domain socket in directory "/var/opt/gitlab/postgresql"
2023-08-29_03:21:56.76846 FATAL: could not create any Unix-domain sockets
2023-08-29_03:21:56.77111 LOG: database system is shut down
2023-08-29_03:21:58.02704 LOG: starting PostgreSQL 13.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1
2023-08-29_03:21:58.03004 LOG: could not set permissions of file "/var/opt/gitlab/postgresql/.s.PGSQL.5432": Invalid argument
2023-08-29_03:21:58.03025 WARNING: could not create Unix-domain socket in directory "/var/opt/gitlab/postgresql"
2023-08-29_03:21:58.03037 FATAL: could not create any Unix-domain sockets
2023-08-29_03:21:58.03365 LOG: database system is shut down
2023-08-29_03:21:59.27062 LOG: starting PostgreSQL 13.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit
2023-08-29_03:21:59.27307 LOG: could not set permissions of file "/var/opt/gitlab/postgresql/.s.PGSQL.5432": Invalid argument
2023-08-29_03:21:59.27323 WARNING: could not create Unix-domain socket in directory "/var/opt/gitlab/postgresql"
2023-08-29_03:21:59.27335 FATAL: could not create any Unix-domain sockets
2023-08-29_03:21:59.27592 LOG: database system is shut down
The text was updated successfully, but these errors were encountered: