Closed wchen342 closed 4 years ago
I think I got it. For the record:
It was Docker blocking the system call clock_gettime
resulting in a EPERM. Adding a seccomp profile should solve the problem.
Interesting; glad you found the problem.
In general their servers are fully virtualized so you will not have any provider-specific issue there.
It seems the building process requires a lot more system calls then just clock_gettime
cause now I am hitting some other similar errors so I have to use --add-cap SYS_ADMIN
. The interesting thing is they actually build a lot of small binary tools in the middle and run them during the build.
EDIT: so obviously adding capatability is not enough to solve the problem. Even --add-cap=ALL
will not work. Not sure whether it is because the host is running on a Xen hypervisor or because of the kernel. The only solution seems to be running docker with --privileged
which kind of defeating the purpose of using a container.
EDIT2: seccomp=unconfined
works. Not a perfect solution but better than --privileged
.
Hi @csagan5, I was trying to build on the Gandi servers (I am using Debian 10+docker) but I am facing a strange error,
Did you run into this? Or do you have any idea how to solve it?