I wondered: Is the drone server also acting as a runner? I currently do have a server and a dedicated runner (docker-based). Somehow I have the feeling though that the server is running jobs as well. As the hardware specs of that machine is quite different, that leads to problems sometimes.
Is there a way to tell the server component not to run any builds?..
If it’s not doing that anyway,…there might be something else going on here. At least I see that sometimes I get the error message: Error response from daemon: failed to create shim: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown, and sometimes it works. I can restart the same build over and over again, sometimes I get the error, sometimes I don’t.
Which is why I thought that maybe the server is trying to run builds as well…
What Jim said is true, but I want to add a bit of nuance here.
You can use the drone-runner-exec runner to execute a pipeline locally, which … effectively acts as a server+runner in one. It’s not a true server, and there are some drawbacks, but it works great.
Actually, drone server does have an embedded runner. You can pass the following variable to the Drone server to enable the local runner (which will disable remote runners)
DRONE_RUNNER_LOCAL=true
You would also need to mount the Docker socket into the server.
docker run -v /var/run/docker.sock:/var/run/docker.sock
The only gotcha is that the embedded runner is a legacy version of the runner. It may be missing feature or fixes. It should be highly stable, but I would describe this feature as being deprecated. We may replace the legacy embedded runner by embedding drone-runner-docker (the current stable runner) but that is not something we have started working on, or even have a timeline for.
sorry for the late response, I have been ill the last week and was in bed most of the time.
Well, generally that all sounds well, it seems that there is no runner on the server per default, which is fine. I still notice that the error I described above occurs even if I shutdown all runners and only the server is active. So,…is there any reason the server would try to spin something up using docker?
The error I see in the frontend is this:
Error response from daemon: failed to create shim: OCI runtime create failed: runc create failed: no cgroup mount found in mountinfo: unknown
So there seems to be some docker issue; but I wonder why that keeps happening even if all Drone runners are offline / shut down.