Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improving error message when flock is not available #3699
Installing a gem failed with this error:
After digging into the source code, we found that the error happens when jruby works with jnr-posix. Then, we found -Xnative.verbose=true option that shows stacktrace. Here is the full stacktrace:
This error possibly happens when /tmp is mounted with noexec, or execution on /tmp is prohibited by SELinux. But it was hard for us to come to this conclusion because error message doesn't suggest how to debug the cause of the failure when it loads a native library.
It would be good if the error message suggests how to debug the cause. For example:
I used _JAVA_OPTIONS here so that the suggestion is valid even if jruby is used as a library.