-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Bug Description
Running jhack sync
will fail to copy files to an application when using the snap. Running latest/stable
snap of jhack (rev 461, v0.4.4.0.13)
After running the same command within the snap environment, the error is clear:
$ snap run --shell jhack
# juju ssh b/0 mkdir -p /var/lib/juju/agents/unit-b-0/charm/src && cat /home/raul/workspace/1.BIGDATA/kafka-operator/src/charm.py | juju ssh b/0 sudo -i 'sudo tee /var/lib/juju/agents/unit-b-0/charm/src/charm.py' > /dev/null
ssh: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
# find / -name "libcrypto.so.1.1" 2>/dev/null
#
Outside of the snap env, the lib is only found up until core20
$ find / -name "libcrypto.so.1.1" 2>/dev/null
/snap/core20/2599/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
/snap/core18/2887/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
. . .
To Reproduce
jhack sync -S app
. . .
# save contents of a file
Relevant log output
RuntimeError: Failed to push /home/raul/workspace/1.BIGDATA/kafka-operator/src/charm.py to b/0 with "juju ssh b/0 mkdir -p /var/lib/juju/agents/unit-b-0/charm/src && cat
/home/raul/workspace/1.BIGDATA/kafka-operator/src/charm.py | juju ssh b/0 sudo -i 'sudo tee /var/lib/juju/agents/unit-b-0/charm/src/charm.py' > /dev/null". (verify that the
path is readable by the jhack snap)
Metadata
Metadata
Assignees
Labels
No labels