-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use runtime because File.executable?
returns false
#106
Comments
Is this reproducible with a public image by any chance? Also what does |
Not right now. :/
|
Oh wow, that's a super weird one. |
Can you maybe just share a reduced Dockerfile with just what is needed to install Ruby and Node? Should be doable without any private code. |
For now, it worked by downgrading to Ruby 2.6.8 in the problematic machine (Ubuntu 16). The minimal reproducible code I've created on my own machine (macOS) didn't raise any exception, even on Ruby 2.7.4. https://github.com/theo-bittencourt/no_js_runtime_error_execjs I've other machine with the same error too. It is not physically available right now, but when I connect to it again, I will try to bring more details. |
Hey guys,
Something weird here. I'm getting the error below when trying to start the Docker container:
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime
.After some debugging, I found a strange behavior on
ExecJS::ExternalRuntime.locate_executable
, where theFile.executable?(full_path)
is returningfalse
, although the/usr/bin/node
executable is present.execjs/lib/execjs/external_runtime.rb
Line 137 in 3e94078
== Stack ==
Docker
Ruby 2.7.4
ExecJS 2.8.1
The text was updated successfully, but these errors were encountered: