Error while loading shared libraries: libz.so.1

Prev Next

Issue

When trying to execute the run.sh script in any of its variations, the following error message appears:

Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted 

This error prevents the script from completing its task.

Affected versions

All versions

Affected configurations

This issue is not present in all environments, but it does appear in some environments where Docker is in use.

Cause

In some environments with non-default Docker installs, Docker may be unable to access the /tmp directory.

Solution / Workaround

When this error occurs, running the following command allows Docker to access this folder as needed:

sudo mount /tmp -o remount,exec

This command should allow Docker to access the path and the process to complete.  

If this issue occurs in your instance, it will likely occur each time you try to install, restart, or upgrade the Hyperscience application.

If you encounter this issue and the solution above does not resolve it, please send us the output of the command you were running so that we can see the scope of the error.