Node script runs in Putty, but errors in QSH.
Issue #66
resolved
I have a small Node script that runs fine in Putty. It uses the activedirectory2 module. When I run it in QSH I get the following error. I tried to manually set my path to match my Putty environment as well before running.
PATH=/QOpenSys/pkgs/lib/nodejs10/bin:/QOpenSys/pkgs/bin:$PATH
export PATH
node listActiveDirectory.js
The error:
[577043]: ../src/node_platform.cc:58:std::unique_ptr<unsigned int> node::BackgroundTaskRunner::DelayedTaskScheduler::Start(): As ertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
qsh: 001-0078 Process ended by signal 5.
Comments (3)
-
-
reporter Bingo. That’s for the quick help.
-
- changed status to resolved
- Log in to comment
You need to set environment variable
QIBM_MULTI_THREADED=Y
, otherwise QSH will not run node in a thread-capable job. See here for more details.