unikraft / app-redis

Redis on Unikraft
5 stars 12 forks source link

Can't start Redis. Fatal: Can't initialize Background Jobs. #13

Open coolyjg opened 1 year ago

coolyjg commented 1 year ago

I tried steps based on ReadMe, using kraft. It seems that I can successfully start unikraft, but fail to start Redis... I use: kraft run -b virbr0 "netdev.ipv4_addr=172.44.0.2 netdev.ipv4_gw_addr=172.44.0.1 netdev.ipv4_subnet_mask=255.255.255.0 -- /redis.conf"

Output like this:

SeaBIOS (version rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org) iPXE (http://ipxe.org) 00:02.0 C100 PCI2.10 PnP PMM+03F91030+03EF1030 C100 Booting from ROM... 1: Set IPv4 address 172.44.0.2 mask 255.255.255.0 gw 172.44.0.1 en1: Added en1: Interface is up Powered by o. .o Oo Oo (_) | ' ) : oO oO ' | | |/ / _)' _ | || ) oOo oOO| | | | | (| | | () | ) : OoOoO ., .::,_., ._,:, \) Epimetheus 0.12.0~4c7352c0 0:M 02 Mar 2023 08:49:46.008 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 0:M 02 Mar 2023 08:49:46.009 # Redis version=5.0.6, bits=64, commit=c5ee3442, modified=1, pid=0, just started 0:M 02 Mar 2023 08:49:46.011 # Configuration loaded [ 0.114495] ERR: [libposix_process] <deprecated.c @ 348> Ignore updating resource 7: cur = 10032, max = 10032 0:M 02 Mar 2023 08:49:46.016 * Increased maximum number of open files to 10032 (it was originally set to 1024). 0:M 02 Mar 2023 08:49:46.018 # Fatal: Can't initialize Background Jobs. Console terminated, terminating guest (PID: 17824)...

More information like:

[INFO ] Using networking bridge 'virbr0' Trying to get root privileges... qemu-system-x86_64: -device sga: warning: -device sga is deprecated, use -machine graphics=off ****** QEMU: Name: d9d51f1a-08cd-4825-9378-9c5bb9814805 PID: 17824 Monitor socket: /run/qemu-guest-17803_monitor.socket VNC listen: 5900 SMP configuration: sockets=1,cores=1,threads=1 Memory: 64 MB Kernel: /home/xxx/OS/my-redis/apps/app-redis/build/redis_kvm-x86_64 Parameters: netdev.ipv4_addr=172.44.0.2 netdev.ipv4_gw_addr=172.44.0.1 netdev.ipv4_subnet_mask=255.255.255.0 -- /redis.conf Warning: Guest will be terminated with CTRL+C! ****** Starting VM... Connecting to serial output...

Really appreciate somebody's help! Thanks!

karolmie1 commented 1 year ago

In my case using seccomp=unconfined helped. I'm investigating this further.

chrisinmtown commented 1 year ago

This problem is absent in redis docker image version 6.2.11, present in version 6.2.12. As a workaround I pinned the version to 6.2.11. Please advise.