#Dagger on nestybox/sysbox

1 messages ยท Page 1 of 1 (latest)

wispy bronze
#

the dagger engine goes into an error restart loop, permission denied

time="2023-06-24T04:44:48Z" level=info msg="detected mtu 1460 via interface eth0"
dnsmasq[114]: started, version 2.87 cachesize 150
dnsmasq[114]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-nftset auth no-cryptohash no-DNSSEC loop-detect inotify dumpfile
dnsmasq[114]: warning: interface dagger0 does not currently exist
dnsmasq[114]: using only locally-known addresses for dagger.local
dnsmasq[114]: reading /etc/dnsmasq-resolv.conf
dnsmasq[114]: using nameserver 169.254.169.254#53
dnsmasq[114]: using only locally-known addresses for dagger.local
dnsmasq[114]: read /var/run/containers/cni/dnsname/dagger/addnhosts - 0 addresses
time="2023-06-24T04:44:48Z" level=debug msg="setting up engine tracing"
time="2023-06-24T04:44:48Z" level=debug msg="creating engine GRPC server"
time="2023-06-24T04:44:48Z" level=debug msg="creating engine lockfile"
time="2023-06-24T04:44:48Z" level=debug msg="creating engine controller"
time="2023-06-24T04:44:48Z" level=debug msg="engine name: f3b235e82197"
time="2023-06-24T04:44:48Z" level=info msg="auto snapshotter: using overlayfs"
time="2023-06-24T04:44:48Z" level=debug msg="running in rootless mode"
time="2023-06-24T04:44:48Z" level=debug msg="creating new network namespace outvzcqv5lhddewwhdgzkfvwy"
buildkitd: permission denied
weary pebble
#

did you provisiong the engine with the --runtime=sysbox-runc runtime?

wispy bronze
#

I made that the default runtime in docker and let the SDK handle the engine

weary pebble
wispy bronze
#

It might be that sysbox uses and passes fewer permissions to begin with

full egret
#

hi, FYI I've just deployed the dagger engine in sysbox. in fact in docker-in-docker running in sysbox.

I had the same issue as you (failure to create a new network namespace), and noticed that it was running in rootless mode. I started the dagger-engine in non-rootless mode (with the "--rootless=false" flag) and it worked.

I haven't made much tests for the moment, but with a very basic test it works...

weary pebble
full egret
#

It's a dagger engine flag

#

At least in the latest version ๐Ÿ˜‰

weary pebble