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

Error when COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1: #300

Closed
derekmizak opened this issue Dec 1, 2023 · 7 comments

Comments

@derekmizak
Copy link

derekmizak commented Dec 1, 2023

There is an error when building docker:

=> ERROR [stage-1 3/3] COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib  0.0s
------
 > [stage-1 3/3] COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1:
------
Dockerfile:26
--------------------
  24 |     COPY --from=builder /builddir/sslscan /sslscan
  25 |     COPY --from=builder /lib/libz.so.1 /lib/libz.so.1
  26 | >>> COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
  27 |     
  28 |     # Drop root privileges.
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 1cf22f97-0c34-4b17-bb12-042ed41fd824::3mrwz7mv4ex0rmgenxj0gcrda: "/lib/ld-musl-x86_64.so.1": not found
make: *** [docker] Error 1
@jtesta
Copy link
Contributor

jtesta commented Dec 1, 2023 via email

@derekmizak
Copy link
Author

derekmizak commented Dec 6, 2023

I am on master branch:

(base) 21:33 @D3::Documents/dev/sslscan>git branch
* master
(base) 21:33 @D3::Documents/dev/sslscan>git log
commit 6b6140d6feb48fc47c9ba6cdac24cab1e7d3a0c8 (HEAD -> master, origin/master, origin/HEAD)
Merge: d84ca17 561591d
Author: rbsec <[email protected]>
Date:   Tue Nov 14 21:33:19 2023 +0000

    Merge pull request #299 from jtesta/certificate_retrieval_fix
    
    Fixed certificate parsing against some servers. (#298)

commit 561591d21e2d36712de687d2d82ccd3985ec9163
Author: Joe Testa <[email protected]>
Date:   Sat Nov 11 11:03:42 2023 -0500

    Fixed cipher enumeration against servers that require unsafe legacy renegotiation.

I am working on Mac OS M1 Max, Sonoma 14.1.2.
My Docker version is 24.0.6, build ed223bc.

I did run again and got the same:

=> [builder 9/9] RUN echo "ls -al output:" && ls -al /builddir/sslscan                                     0.2s 
 => [stage-1 1/3] COPY --from=builder /builddir/sslscan /sslscan                                            0.0s 
 => CACHED [stage-1 2/3] COPY --from=builder /lib/libz.so.1 /lib/libz.so.1                                  0.0s 
 => ERROR [stage-1 3/3] COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1               0.0s 
------
 > [stage-1 3/3] COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1:
------
Dockerfile:26
--------------------
  24 |     COPY --from=builder /builddir/sslscan /sslscan
  25 |     COPY --from=builder /lib/libz.so.1 /lib/libz.so.1
  26 | >>> COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
  27 |     
  28 |     # Drop root privileges.
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 1cf22f97-0c34-4b17-bb12-042ed41fd824::pi46p1ag992p62neijmr6tzwe: "/lib/ld-musl-x86_64.so.1": not found
make: *** [docker] Error 1
(base) 21:34 @D3::Documents/dev/sslscan>docker --version
Docker version 24.0.6, build ed223bc

@rbsec
Copy link
Owner

rbsec commented Dec 7, 2023

Does ld-musl-x86_64.so.1 exist in the alpine:latest Docker image for you? The build works fine on for me on x64 Kali Linux - so I presume this is an OSX/M1 related problem?

@jtesta
Copy link
Contributor

jtesta commented Dec 7, 2023 via email

@derekmizak
Copy link
Author

@jtesta - it worked. Thank you. All is fine - can be closed.
Line 26 of Docker file changed to:

COPY --from=builder /lib/ld-musl-*.so.1 /lib/

@rbsec
Copy link
Owner

rbsec commented Dec 10, 2023

@derekmizak that should be merged into master now.

@jtesta, I suspected that it would be something like that when I saw the error - but TBH I've never really looked at the ARM docker images.

@derekmizak
Copy link
Author

It is fixed - thank you.

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

No branches or pull requests

3 participants