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

bun/1: Client connection doesn't work #80

Open
razvand opened this issue Mar 8, 2024 · 0 comments · May be fixed by #79
Open

bun/1: Client connection doesn't work #80

razvand opened this issue Mar 8, 2024 · 0 comments · May be fixed by #79

Comments

@razvand
Copy link
Contributor

razvand commented Mar 8, 2024

Bun (PR #79 ) cannot be connected with curl. Use the following commands to replicate:

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'/" -e '/CONFIG_LIBPOSIX_ENVIRON_ENVP2/a\'$'\n''\    CONFIG_LIBPOSIX_ENVIRON_ENVP2: "RUST_BACKTRACE=full"' 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" .

On another console run:

curl localhost:3000

Nothing happens.

The output message is:

clock_gettime(CLOCK_0x7, <out>timespec:{tv_sec=0, tv_nsec=891933181}) = OK
clock_gettime(CLOCK_0x7, <out>timespec:{tv_sec=0, tv_nsec=893065779}) = OK
clock_gettime(CLOCK_REALTIME, <out>timespec:{tv_sec=1709879161, tv_nsec=794184962}) = OK
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_DIRECTORY) = fd:5
getdents64(0x5, 0x417fff5f0, ...) = 0x9d8
getdents64(0x5, 0x417fff5f0, ...) = 0x0
openat(AT_FDCWD, "/", O_RDONLY|O_CLOEXEC|O_DIRECTORY) = fd:6
close(fd:5) = OK
close(fd:6) = OK
mmap(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000, fd:-1, 0) = va:0x100243c000
futex(va:0x100bd94aa4, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = fd:5
futex(va:0x100bd94aac, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
read(fd:5, <out>"Ew\xF4\x17\x91wa\xD8\x10+\x97\x82b\xDAB\xB5\xCE\x0E\xCE\x00\xA5B)\x1B"..., 128) = 128
openat(AT_FDCWD, "/proc/self/cgroup", O_RDONLY|O_CLOEXEC) = No such file or directory (-2)
sysinfo(0x417fffb30, 0x1005e74c02, ...) = 0x0
futex(va:0x100bd9a698, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
futex(va:0x100bd94958, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
futex(va:0x100bd94f18, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
futex(va:0x100bd94f00, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
clock_gettime(CLOCK_0x6, <out>timespec:{tv_sec=0, tv_nsec=911707796}) = OK
futex(va:0x100bd97f30, FUTEX_WAKE|FUTEX_PRIVATE_FLAG, 0x7fffffff) = OK
rt_sigprocmask(0x1, 0x418000ee0, ...) = 0x0
rt_sigprocmask(0x0, 0x418000e40, ...) = 0x0
getpid() = pid:1
gettid() = pid:1
tgkill(0x1, 0x1, ...) = Function not implemented (-38)
rt_sigprocmask(0x2, 0x418000dc0, ...) = 0x0
rt_sigaction(0x6, 0x418000d90, ...) = 0x0
rt_sigprocmask(0x0, 0x418000e40, ...) = 0x0
getpid() = pid:1
gettid() = pid:1
tgkill(0x1, 0x1, ...) = Function not implemented (-38)
rt_sigprocmask(0x2, 0x418000dc0, ...) = 0x0

The output message without logging is:

en1: Interface is up
Powered by Unikraft Telesto (0.16.2~10bd3ab3)
@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