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

Dockerfile broken exec /atomic-server-bin: no such file or directory #618

Closed
joepio opened this issue Mar 13, 2023 · 1 comment
Closed

Comments

@joepio
Copy link
Member

joepio commented Mar 13, 2023

I'm pretty sure this issue appeared when I switched to the rust base image because of #605, which was because the cargo version used didn't recognized the newer let ... else syntax.

Now I get this:

exec /atomic-server-bin: no such file or directory

Which is weird, because the file is there.

/ # ls -lh
total 45M
-rwxr-xr-x    1 root     root       44.6M Mar 14 09:08 atomic-server-bin

It's probably a dependency issue in the build. Let's try musl no doesn't work.

I tried using a different base image (alpine:latest instead of frolvlad/alpine-glibc) but the issue is still there.

Adding a bunch of glibc seemed to help

RUN apk add libgcc libc6-compat gcompat

But I still get this one:

Error relocating /atomic-server-bin: __res_init: symbol not found

Relevant article

joepio added a commit that referenced this issue Mar 13, 2023
@joepio joepio mentioned this issue Mar 13, 2023
4 tasks
@joepio joepio mentioned this issue Mar 14, 2023
5 tasks
joepio added a commit that referenced this issue Mar 14, 2023
joepio added a commit that referenced this issue Mar 14, 2023
@joepio
Copy link
Member Author

joepio commented Mar 14, 2023

Reverting to non alpine build fixed the issue. Unfortunately, image is now bigger though.

@joepio joepio closed this as completed Mar 14, 2023
joepio added a commit that referenced this issue Mar 15, 2023
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