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
/opa: error while loading shared libraries: libwasmer.so: cannot open shared object file: No such file or directory.
This can also be triggered with the non-debug container as well, but the debug container is used in our CI as it has a shell that CircleCI uses for running CI steps.
Steps to Reproduce the Problem
Run the above command from a directory containing rego files to check the formatting on. The actual rego contents, I hope, aren't really that important as the binary doesn't seem to even be getting to main.
The important part to call out about the above command is the use of --workdir to change the current working directory to something other than the default /.
Additional Info
Pulling the opa binary apart with readelf it looks like the the RUNPATH is using a relative path:
which makes running the binary sensitive to the current working directory. Ideally the location of libwasmer.so would be in a location referenced with an absolute path so the binary can be run from any directory.
The text was updated successfully, but these errors were encountered:
We originally set the rpath to be relative to the $ORIGIN which
apparently changes if the working directory is overriden. This change
just fixes the rpath to contain /usr/lib/opa and then updates the
Dockerfile to copy the libwasmer.so file into this new directory.
Fixesopen-policy-agent#2974
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
We originally set the rpath to be relative to the $ORIGIN which
apparently changes if the working directory is overriden. This change
just fixes the rpath to contain /usr/lib/opa and then updates the
Dockerfile to copy the libwasmer.so file into this new directory.
Fixes#2974
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Expected Behavior
That running the following will allow checking the formatting of rego files (used in CI)
Actual Behavior
Running the image results in the following error:
This can also be triggered with the non-debug container as well, but the debug container is used in our CI as it has a shell that CircleCI uses for running CI steps.
Steps to Reproduce the Problem
Run the above command from a directory containing rego files to check the formatting on. The actual rego contents, I hope, aren't really that important as the binary doesn't seem to even be getting to main.
The important part to call out about the above command is the use of
--workdir
to change the current working directory to something other than the default/
.Additional Info
Pulling the
opa
binary apart withreadelf
it looks like the theRUNPATH
is using a relative path:which makes running the binary sensitive to the current working directory. Ideally the location of libwasmer.so would be in a location referenced with an absolute path so the binary can be run from any directory.
The text was updated successfully, but these errors were encountered: