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

advisory create: unable to load APKINDEX for x86_64: opening "": open : no such file or directory #238

Open
tstromberg opened this issue May 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working needs-triage applied to all new customer/user issues. Removed after triage occurs.

Comments

@tstromberg
Copy link
Contributor

Description

I'm sure I'm holding this tool incorrectly, but I tried to guess how to use wolfictl advisory create in lieu of more elaborate documentation. Here's what I ran:

wolfictl advisory create -p openssl -s fixed -V CVE-2023-2650 --fixed-version=3.1.1-r0 -a . -d ../os

Here was the output:

FATA[0000] error during command execution: unable to load APKINDEX for x86_64: opening "": open : no such file or directory

My current working directory was a clean fork of the advisories repo. The error message is confusing, but looking at the strace it was trying to do something with

[pid 61601] fcntl(215, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(215, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 215, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(215, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(215, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(215, "package:\n  name: zot\n  version: "..., 512) = 512
[pid 61601] read(215, ".version}}\n      destination: zo"..., 512) = 509
[pid 61601] read(215, "", 512)          = 0
[pid 61601] newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", {st_mode=S_IFREG|0644, st_size=21, ...}, 0) = 0
[pid 61601] openat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", O_RDONLY|O_CLOEXEC) = 216
[pid 61601] fcntl(216, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 216, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(216, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(216, "ref: refs/heads/main\n", 512) = 21
[pid 61601] read(216, "", 491)          = 0
[pid 61601] close(216)                  = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", {st_mode=S_IFREG|0644, st_size=21, ...}, 0) = 0
[pid 61601] openat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", O_RDONLY|O_CLOEXEC) = 216
[pid 61601] fcntl(216, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 216, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(216, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(216, "ref: refs/heads/main\n", 512) = 21
[pid 61601] read(216, "", 491)          = 0
[pid 61601] close(216)                  = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git/refs/heads/main", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid 61601] openat(AT_FDCWD, "/home/t/src/advisories/.git/refs/heads/main", O_RDONLY|O_CLOEXEC) = 216
[pid 61601] fcntl(216, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 216, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(216, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(216, "a45fef131bf4ca7c833397ffd4e7d915"..., 512) = 41
[pid 61601] read(216, "", 471)          = 0
[pid 61601] close(216)                  = 0
[pid 61601] openat(AT_FDCWD, "../os/zstd.yaml", O_RDONLY|O_CLOEXEC) = 216
[pid 61601] fcntl(216, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 216, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(216, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(216, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(216, "package:\n  name: zstd\n  version:"..., 512) = 512
[pid 61601] read(216, "e1\n\n  - runs: |\n      make -j$(n"..., 512) = 512
[pid 61601] read(216, "    mkdir -p \"${{targets.subpkgd"..., 512) = 203
[pid 61601] read(216, "", 512)          = 0
[pid 61601] openat(AT_FDCWD, "../os/zstd.yaml", O_RDONLY|O_CLOEXEC) = 217
[pid 61601] fcntl(217, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(217, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 217, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(217, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(217, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(217, "package:\n  name: zstd\n  version:"..., 512) = 512
[pid 61601] read(217, "e1\n\n  - runs: |\n      make -j$(n"..., 512) = 512
[pid 61601] read(217, "    mkdir -p \"${{targets.subpkgd"..., 512) = 203
[pid 61601] read(217, "", 512)          = 0
[pid 61601] newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", {st_mode=S_IFREG|0644, st_size=21, ...}, 0) = 0
[pid 61601] openat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", O_RDONLY|O_CLOEXEC) = 218
[pid 61601] fcntl(218, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(218, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 218, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(218, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(218, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(218, "ref: refs/heads/main\n", 512) = 21
[pid 61601] read(218, "", 491)          = 0
[pid 61601] close(218)                  = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", {st_mode=S_IFREG|0644, st_size=21, ...}, 0) = 0
[pid 61601] openat(AT_FDCWD, "/home/t/src/advisories/.git/HEAD", O_RDONLY|O_CLOEXEC) = 218
[pid 61601] fcntl(218, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(218, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 218, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(218, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(218, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(218, "ref: refs/heads/main\n", 512) = 21
[pid 61601] read(218, "", 491)          = 0
[pid 61601] close(218)                  = 0
[pid 61601] newfstatat(AT_FDCWD, "/home/t/src/advisories/.git/refs/heads/main", {st_mode=S_IFREG|0644, st_size=41, ...}, 0) = 0
[pid 61601] openat(AT_FDCWD, "/home/t/src/advisories/.git/refs/heads/main", O_RDONLY|O_CLOEXEC) = 218
[pid 61601] fcntl(218, F_GETFL)         = 0x8000 (flags O_RDONLY|O_LARGEFILE)
[pid 61601] fcntl(218, F_SETFL, O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 0
[pid 61601] epoll_ctl(3, EPOLL_CTL_ADD, 218, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=3472783160, u64=139997931796280}}) = -1 EPERM (Operation not permitted)
[pid 61601] fcntl(218, F_GETFL)         = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
[pid 61601] fcntl(218, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
[pid 61601] read(218, "a45fef131bf4ca7c833397ffd4e7d915"..., 512) = 41
[pid 61601] read(218, "", 471)          = 0
[pid 61601] close(218)                  = 0
[pid 61601] openat(AT_FDCWD, "", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 61601] ioctl(2, TCGETS, {c_iflag=ICRNL|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid 61601] write(2, "\33[31mFATA\33[0m[0002] error during"..., 134FATA[0002] error during command execution: unable to load APKINDEX for x86_64: opening "": open : no such file or directory 
) = 134
[pid 61601] exit_group(1 <unfinished ...>
@tstromberg tstromberg added bug Something isn't working needs-triage applied to all new customer/user issues. Removed after triage occurs. labels May 30, 2023
@luhring
Copy link
Contributor

luhring commented May 30, 2023

Thanks @tstromberg. This part is in flux right now, apologies for the pain here 😞 . Can you try again without -a . -d ../os?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage applied to all new customer/user issues. Removed after triage occurs.
Projects
None yet
Development

No branches or pull requests

2 participants