unikraft / catalog

Unikraft Applications & Examples Catalog
23 stars 29 forks source link

`haproxy/2.8`: No connection established #88

Open razvand opened 3 months ago

razvand commented 3 months ago

HAProxy (PR #87) gives out an error when started. Use the following commands to replicate:

port=8404
memory=256M
branch="razvand/library/haproxy"
path="library/haproxy/2.8"
rm -fr catalog
rm start-buildkit.sh
wget https://raw.githubusercontent.com/unikraft/catalog-for-maintainers/main/utils/start-buildkit.sh
source start-buildkit.sh
git clone https://github.com/unikraft/catalog
cd catalog
git remote add unikraft-upb https://github.com/unikraft-upb/catalog
git fetch unikraft-upb
git checkout -b "$branch" unikraft-upb/"$branch"
cd "$path"
sed -i -e "s/# CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/" Kraftfile
kraft build --no-cache --no-update --plat qemu --arch x86_64
kraft rm --all ; kraft run --rm --log-type basic --log-level debug -M "$memory" -p "$port":"$port" .

Then query the service using:

curl localhost:8404/stats

The output message is:

pipe(0x40087f9c8, 0x40087f970, ...) = 0x0
fcntl(0x5, 0x4, ...) = 0x0
rt_sigprocmask(0x1, 0x40087f910, ...) = 0x0
timer_create(0xfffffff6, 0x40087f8d0, ...) = Operation not supported (-95)
timer_create(0x0, 0x40087f8d0, ...) = Operation not supported (-95)
getpid() = pid:1
[WARNING]  (1) : Failed to setup watchdog timer for thread 0, disabling lockup detection.
write(fd:2, "[WARNING]  (1) : Failed "..., 90) = 90
prctl(0x26, 0x1, ...) = 0x0
[    0.749743] ERR:  [libposix_process] Unsupported resource 6
prlimit64(0x0, 0x6, ...) = Invalid argument (-22)
getpid() = pid:1
[WARNING]  (1) : Failed to disable forks, please report to developers with detailed information about your operating system. You can silence this warning by adding 'insecure-fork-wanted' in the 'global' section.
write(fd:2, "[WARNING]  (1) : Failed "..., 212) = 212
epoll_ctl(0x3, 0x1, ...) = 0x0
epoll_ctl(0x3, 0x1, ...) = 0x0
en1: Set IPv4 address 10.0.2.15 mask 255.255.255.0 gw 10.0.2.2
accept4(0x4, 0x400b5bcb0, ...) = 0x7
setsockopt(0x7, 0x6, ...) = 0x0
accept4(0x4, 0x400b5c030, ...) = Resource temporarily unavailable (-11)
recvfrom(0x7, 0x400b5c110, ...) = 0x53
sendto(fd:7, "HTTP/1.1 200 OK\x0D\x0Acache-c"..., 11761, MSG_DONTWAIT|MSG_NOSIGNAL, NULL, 0) = OK
epoll_ctl(0x3, 0x1, ...) = 0x0
recvfrom(0x7, 0x400b5c110, ...) = 0x0
close(fd:7) = OK

The output message without logging is:

en1: Interface is up                              
Powered by Unikraft Telesto (0.16.2~9b72da44)     
[WARNING]  (1) : Failed to setup watchdog timer for thread 0, disabling lockup detection.
[    0.171567] ERR:  [libposix_process] Unsupported resource 6
[WARNING]  (1) : Failed to disable forks, please report to developers with detailed information about your operating system. You can silence this warning by adding 'insecure-fork-wanted' in the 'global' section.
en1: Set IPv4 address 10.0.2.15 mask 255.255.255.0 gw 10.0.2.2