You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the last few days the docker image nushell/nu:devel is broken.
$podman run -it --rm nushell/nu:devel
nu: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
@vsoch I saw this PR, but these are not the correct packages to satisfy dependencies.
openssl-dev and pkgconfig are needed at build time only, not at runtime. And you are not building nushell at this time.
I don't know correct names of the needed packages for Ubuntu, but you need to install libssl1.0.0 or something alike. And you don't need pkgconfig.
OK, I spent some time on this.
The problem is not missing libssl. It is installed but the version in the rust:1.37-slim image is 1.1 already.
The version nushell is build agains is 1.0 as that is the version available in ubuntu16.04 (the image nu-base is based on)
Interesting! I'm kind of perplexed because the image has worked before (and now it doesn't). When was this dependency added? I don't see any install of libssl in the azure pipelines, so is the feature not tested?
It's kind of perplexing that the same base and install commands leads to different versions - here is nu-base:
root@fcbeacc43e48:/code# ldconfig --verbose | grep ssl
ldconfig: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
ldconfig: Path `/lib/x86_64-linux-gnu' given more than once
ldconfig: Path `/usr/lib/x86_64-linux-gnu' given more than once
ldconfig: /lib/x86_64-linux-gnu/ld-2.28.so is the dynamic linker, ignoring
libssl.so.1.1 -> libssl.so.1.1
(correct) and here is nushell/nu:
root@31308c1e8884:/# ldconfig --verbose | grep ssl
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.23.so is the dynamic linker, ignoring
libssl.so.1.0.0 -> libssl.so.1.0.0
root@31308c1e8884:/#
Does the actual build of nu somewhere specify to install a different version? I modified the recipe down to be exactly the same (for the apt-get installs and base image):
ARG FROMTAG=latest
FROM quay.io/nushell/nu-base:${FROMTAG} as base
FROM ubuntu:16.04
COPY --from=base /usr/local/bin/nu /usr/local/bin/nu
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y libssl-dev \
libxcb-composite0-dev \
pkg-config \
curl
ENTRYPOINT ["nu"]
CMD ["-l", "info"]
And it still seems to install a different version of libssl, so I'm thinking that cargo is somehow involved. Is it a fix to try installing the exact version of libssl that we need?
I guess it will work for a while if you change it to 18.04. But the root cause for the problem is that the base images for nu-base and nu are different. Soon or later there will be another similar breakage.
Why don't use rust-n.n.n and rust-n.n.n-slim respectively?
I started using those images, but I wanted to reproduce what is done for the azure pipelines, since that's where testing happens. I had thought that using 16.04 and 16.04 would also work, but it doesn't seem to. Is there not a reason for the choice of 16.04?
@jeka there is no connection - I had tried to use the same base (16.04) but judging on the link shared (thank you @jankoprowski !) the choice simply seems to be because the better alterntive (18.04) isn't available. It's weird that the azure team maintains some set of special (modified) based images, but that's neither here nor there! I'm not completely happy with having nu-base and nu with two different bases, so I'm going to put in a PR to update both to 18.04, especially since reading the above.
This issue is also fixed, there is no more libssl error. Thanks for reporting it @jeka and starting up conversation to make both bases better! Closing issue, PR coming in soon for the above.
Activity
sophiajt commentedon Sep 11, 2019
Thanks for letting us know, we'll investigate.
vsoch commentedon Sep 11, 2019
hey @jeka see #650 - I missed those dependencies in the README, sorry about that!
Also really cool you are using podman! :)
jeka commentedon Sep 12, 2019
@vsoch I saw this PR, but these are not the correct packages to satisfy dependencies.
openssl-dev and pkgconfig are needed at build time only, not at runtime. And you are not building nushell at this time.
I don't know correct names of the needed packages for Ubuntu, but you need to install libssl1.0.0 or something alike. And you don't need pkgconfig.
vsoch commentedon Sep 12, 2019
I followed instructions in the README - if someone could please get the listing right I’ll do another change...
jeka commentedon Sep 12, 2019
OK, I spent some time on this.
The problem is not missing libssl. It is installed but the version in the rust:1.37-slim image is 1.1 already.
The version nushell is build agains is 1.0 as that is the version available in ubuntu16.04 (the image nu-base is based on)
vsoch commentedon Sep 12, 2019
Interesting! I'm kind of perplexed because the image has worked before (and now it doesn't). When was this dependency added? I don't see any install of libssl in the azure pipelines, so is the feature not tested?
It's kind of perplexing that the same base and install commands leads to different versions - here is nu-base:
(correct) and here is nushell/nu:
Does the actual build of nu somewhere specify to install a different version? I modified the recipe down to be exactly the same (for the apt-get installs and base image):
And it still seems to install a different version of libssl, so I'm thinking that cargo is somehow involved. Is it a fix to try installing the exact version of libssl that we need?
vsoch commentedon Sep 12, 2019
It seems to work if we change the base to 18.04, any issue with that? Why is 16.04 used for azure pipelines?
jeka commentedon Sep 12, 2019
I guess it will work for a while if you change it to 18.04. But the root cause for the problem is that the base images for nu-base and nu are different. Soon or later there will be another similar breakage.
Why don't use rust-n.n.n and rust-n.n.n-slim respectively?
vsoch commentedon Sep 12, 2019
@jeka what do you think of #655?
vsoch commentedon Sep 12, 2019
I started using those images, but I wanted to reproduce what is done for the azure pipelines, since that's where testing happens. I had thought that using 16.04 and 16.04 would also work, but it doesn't seem to. Is there not a reason for the choice of 16.04?
jeka commentedon Sep 12, 2019
I can not answer this question as I am not part of this team. Sorry.
I just reported some bugs.
jankoprowski commentedon Sep 13, 2019
@vsoch There is an issue in Azure Pipelines described in this ticket:
#587
That is why we do not build on 18.04 in Azure Pipelines
jeka commentedon Sep 13, 2019
I am sorry but I am confused. What is the connection between Image pool in Azure Pipelines and base image for generated Docker images?
jankoprowski commentedon Sep 13, 2019
@jeka As far as I see you do not define Dockerfiles for Azure, just configure image you want to use in https://github.com/nushell/nushell/blob/master/.azure/azure-pipelines.yml
jeka commentedon Sep 13, 2019
@jankoprowski, I am still confused. This issue is not about Azure DevOps services. It's about the base image for generated Docker images.
vsoch commentedon Sep 13, 2019
@jeka there is no connection - I had tried to use the same base (16.04) but judging on the link shared (thank you @jankoprowski !) the choice simply seems to be because the better alterntive (18.04) isn't available. It's weird that the azure team maintains some set of special (modified) based images, but that's neither here nor there! I'm not completely happy with having nu-base and nu with two different bases, so I'm going to put in a PR to update both to 18.04, especially since reading the above.
vsoch commentedon Sep 13, 2019
This issue is also fixed, there is no more libssl error. Thanks for reporting it @jeka and starting up conversation to make both bases better! Closing issue, PR coming in soon for the above.
Add categories column to command_reference (nushell#646)