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

xmrig container not building; Unable to locate package libssl1.1, libcrypto++6 #150

Closed
PatMulligan opened this issue May 8, 2022 · 4 comments

Comments

@PatMulligan
Copy link

OS: Linux Pop!_OS 22.04 LTS x86_64
Docker version 20.10.15, build fd82621

Docker compose is now part of the Docker CLI, so I just installed the Linux Docker Desktop and I am using docker compose build and 'docker compose up` for this container, which I'm assuming should be fine?

When I run docker compose build I receive an error related to the inability to find libssl1.1 and libcrypto++6

WARN[0000] The "P2POOL_MINI" variable is not set. Defaulting to a blank string. 
[+] Building 53.8s (26/32)                                                                                                                                                                   
 => [monero:latest internal] load build definition from Dockerfile                                                                                                                      0.0s
 => => transferring dockerfile: 32B                                                                                                                                                     0.0s
 => [xmrig:latest internal] load build definition from Dockerfile                                                                                                                       0.0s
 => => transferring dockerfile: 32B                                                                                                                                                     0.0s
 => [p2pool:latest internal] load build definition from Dockerfile                                                                                                                      0.0s
 => => transferring dockerfile: 32B                                                                                                                                                     0.0s
 => [monero:latest internal] load .dockerignore                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                         0.0s
 => [p2pool:latest internal] load .dockerignore                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                         0.0s
 => [xmrig:latest internal] load .dockerignore                                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                                                         0.0s
 => [xmrig:latest internal] load metadata for docker.io/library/ubuntu:latest                                                                                                          53.8s
 => CACHED [xmrig:latest stage-0 1/4] FROM docker.io/library/ubuntu:latest@sha256:26c68657ccce2cb0a31b330cb0be2b5e108d467f641c62e13ab40cbec258c68d                                      0.0s
 => [p2pool:latest internal] load build context                                                                                                                                         0.1s
 => => transferring context: 249.75kB                                                                                                                                                   0.1s
 => CACHED [xmrig:latest stage-0 2/4] RUN set -e &&     apt-get update -q -y --no-install-recommends &&     DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recomm  0.0s
 => CACHED [xmrig:latest stage-0 3/4] WORKDIR /usr/src                                                                                                                                  0.0s
 => CACHED [xmrig:latest stage-0 4/4] RUN git clone https://github.com/xmrig/xmrig.git &&     mkdir xmrig/build &&     cd xmrig/build &&     cmake .. &&     make -j$(nproc)            0.0s
 => CACHED [xmrig:latest stage-1 2/4] COPY --from=0 /usr/src/xmrig/build/xmrig /                                                                                                        0.0s
 => CACHED [monero:latest stage-0 2/4] RUN set -e &&     apt-get update -q -y --no-install-recommends &&     DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recom  0.0s
 => CACHED [monero:latest stage-0 3/4] WORKDIR /usr/src                                                                                                                                 0.0s
 => ERROR [xmrig:latest stage-1 3/4] RUN set -e &&     apt-get update -q -y --no-install-recommends &&     DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recomm  53.3s
 => CANCELED [monero:latest stage-0 4/4] RUN git clone --recursive https://github.com/monero-project/monero &&     cd monero &&     if [ "xlatest" = "xlatest" ]; then MONERO_GIT_TAG  53.3s
 => CACHED [p2pool:latest stage-0 2/5] RUN set -e &&     apt-get update -q -y --no-install-recommends &&     DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recom  0.0s
 => CACHED [p2pool:latest stage-0 3/5] ADD . /usr/src/p2pool                                                                                                                            0.0s
 => CACHED [p2pool:latest stage-0 4/5] WORKDIR /usr/src/p2pool                                                                                                                          0.0s
 => CACHED [p2pool:latest stage-0 5/5] RUN git submodule update --init --recursive &&     mkdir build &&     cd build &&     cmake .. &&     make -j$(nproc)                            0.0s
 => CACHED [p2pool:latest stage-1 2/6] COPY --from=0 /usr/src/p2pool/build/p2pool /                                                                                                     0.0s
 => CACHED [p2pool:latest stage-1 3/6] RUN set -e &&     apt-get update -q -y --no-install-recommends &&     DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recom  0.0s
 => CACHED [p2pool:latest stage-1 4/6] RUN groupadd -r p2pool -g 1000 &&     useradd -u 1000 -r -g p2pool -s /sbin/nologin -c "p2pool user" p2pool                                      0.0s
 => CACHED [p2pool:latest stage-1 5/6] RUN mkdir -p /home/p2pool/.p2pool &&     chown p2pool.p2pool /home/p2pool /home/p2pool/.p2pool                                                   0.0s
 => CACHED [p2pool:latest stage-1 6/6] WORKDIR /home/p2pool/.p2pool                                                                                                                     0.0s
 => [p2pool:latest] exporting to image                                                                                                                                                  0.0s
 => => exporting layers                                                                                                                                                                 0.0s
 => => writing image sha256:1f07281abe7678d270c82fea78df7e8c44b07075abc2badbbada335065f5813d                                                                                            0.0s
 => => naming to docker.io/library/p2pool:latest 
------                                                                                                                                                                                       
 > [xmrig:latest stage-1 3/4] RUN set -e &&     apt-get update -q -y --no-install-recommends &&     DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends     libssl1.1     libcrypto++6     libhwloc15       &&     apt-get clean:                                                                                                                              
#0 0.728 Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                                                                                           
#0 0.825 Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                                                                                     
#0 3.050 Get:3 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [60.3 kB]                                                                                            
#0 3.256 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]                                                                                                             
#0 3.547 Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [83.5 kB]
#0 4.070 Get:6 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [61.3 kB]
#0 4.248 Get:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [90.7 kB]
#0 4.909 Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#0 13.08 Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#0 14.04 Get:10 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#0 51.52 Get:11 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#0 52.00 Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [61.7 kB]
#0 52.01 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [77.0 kB]
#0 52.10 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [96.3 kB]
#0 52.29 Fetched 20.7 MB in 52s (399 kB/s)
#0 52.29 Reading package lists...
#0 52.70 Reading package lists...
#0 53.08 Building dependency tree...
#0 53.17 Reading state information...
#0 53.24 E: Unable to locate package libssl1.1
#0 53.24 E: Couldn't find any package by glob 'libssl1.1'
#0 53.24 E: Couldn't find any package by regex 'libssl1.1'
#0 53.24 E: Unable to locate package libcrypto++6
#0 53.24 E: Couldn't find any package by regex 'libcrypto++6'

Is this an issue with the latest Ubuntu container? As in, this shouldn't have anything to do with my linux distro nor my docker install, correct? I am going to try to open a shell into the Ubuntu container and see why it's not finding these packages

@PatMulligan PatMulligan changed the title xmrig container not building; xmrig container not building; Unable to locate package libssl1.1, libcrypto++6 May 8, 2022
@PatMulligan
Copy link
Author

PatMulligan commented May 8, 2022

Seems like these packages aren't included in the repos for the latest Ubuntu releases:

https://packages.ubuntu.com/search?keywords=libcrypto%2B%2B6

Changed Dockerfile for xmrig from ubuntu:latest to ubuntu:focal and it built fine, waiting on the rest to build and will try to add a pull request.

@silverfisk
Copy link

I can confirm @PatMulligan , switching to ubuntu:20.04 instead of latest works.

In my opinion, the latest tag is indistinct and should not be used.

@bladedoyle
Copy link
Contributor

bladedoyle commented Jun 1, 2022

Agreed on all points. I'll take this issue and submit PR soon (unless @PatMulligan beats me to it)

bladedoyle added a commit to bladedoyle/p2pool that referenced this issue Jun 1, 2022
bladedoyle added a commit to bladedoyle/p2pool that referenced this issue Jun 1, 2022
bladedoyle added a commit to bladedoyle/p2pool that referenced this issue Jun 1, 2022
bladedoyle added a commit to bladedoyle/p2pool that referenced this issue Jun 1, 2022
SChernykh added a commit that referenced this issue Jun 1, 2022
Fix for Issue #150 - xmrig container not building
@bladedoyle
Copy link
Contributor

This issue is resolved (merged) and can be closed.

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

4 participants