Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haproxy/2.8: No connection established #88

Closed
razvand opened this issue Mar 8, 2024 · 0 comments · Fixed by #87
Closed

haproxy/2.8: No connection established #88

razvand opened this issue Mar 8, 2024 · 0 comments · Fixed by #87

Comments

@razvand
Copy link
Contributor

razvand commented Mar 8, 2024

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
@razvand razvand linked a pull request Mar 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant