Node script runs in Putty, but errors in QSH.

Issue #66 resolved
Michael Haston created an issue

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)

  1. Kevin Adler

    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.

  2. Log in to comment