var forever = require('forever-monitor');
var panel = new (forever.Monitor)('p.js');
panel.start();
this code outputs :
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
at first i thought my code has a problem so i installed forever globally and tried
forever p.js
and it says
C:\w>forever p.js
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
while node p.js in the same directory works just fine , the file is there
when trying to run a non-existent file forever gives a different error message
any clues on where to look is appreciated .
try with C:\w>forever -c node p.js
was the fix to my problem...
Related
I'm trying to run rush lint fix (to run the linting on the code), and I get the following error:
node:internal/child_process:413
throw errnoException(err, 'spawn');
^
Error: spawn Unknown system error -86
at ChildProcess.spawn (node:internal/child_process:413:11)
at spawn (node:child_process:700:9)
at /Users/wscott/dev/hz/common/temp/node_modules/.pnpm/clang-format#1.5.0/node_modules/clang-format/index.js:91:42
at /Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:3641:28
at replenish (/Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:446:21)
at /Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:451:13
at eachOfLimit$1 (/Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:477:34)
at awaitable (/Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:211:32)
at eachOfSeries (/Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:813:16)
at awaitable (/Users/wscott/dev/hz/common/temp/node_modules/.pnpm/async#3.2.2/node_modules/async/dist/async.js:211:32) {
errno: -86,
code: 'Unknown system error -86',
syscall: 'spawn'
}
Does anyone know what the problem is?
I am getting this are after running all of my test cases in the cypress dashboard. Can anyone help me to solve this issue? Test cases are running no issues in there.
An error was thrown in your plugins file while executing the handler for the after:run event.
The error we received was:
Error: spawn cucumber-json-formatter.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
I have a cypress with cucumber preprocessor use. Works fine in "open" (Manually close the session) but when running execution I get:
An error was thrown in your plugins file while executing the handler for the after:run event.
An error was thrown in your plugins file while executing the handler for the after:run event.
The error we received was:
Error: spawn cucumber-json-formatter.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Any simple fixes suggested or how should I start with debugging this?
The thrown error prevents the --reporter from running
Many Thanks
What does your cypress.config look like? I had this same error and it went away when I added:
on('before:run', async (details) => {
console.log('override before:run');
await beforeRunHook(details);
}),
on('after:run', async () => {
console.log('override after:run');
await afterRunHook();
})
to setupNodeEvents
I am trying to deploy executable war (java -jar myapp.jar) on Heroku, which I am successfully able to execute on local machine.
I followed below steps to do it on heroku using CLI
heroku plugins:install java
heroku create --no-remote --app testjar
heroku deploy:jar target/my-app.jar --app testjar
First two steps run fine... but in 3rd I got below exception. Any idea on the cause ? Or what information it wants? I Have given it all as per the document https://devcenter.heroku.com/articles/deploying-executable-jar-files
Uploading funApp.jar
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:19)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:252:12)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
docker#default:/c/Users/Abhi/DockerAppHub/heroku/bin$ ./heroku deploy:jar ./funApp.jar --app testjar08
Uploading funApp.jar events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn java ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:19)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:252:12)
at onErrorNT (internal/child_process.js:421:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
When I'm trying to start composer-playground from ubuntu I got the error:
$ composer-playground info: [Hyperledger-Composer] :LoadModule
:loadModule() Loading composer-wallet-filesystem from
/home/rui.oliveira/.nvm/versions/node/v8.11.3/lib/node_modules/composer-playground/node_modules/composer-wallet-filesystem
info: [Hyperledger-Composer] :PlaygroundAPI :createServer()
Playground API started on port 8080 events.js:183
throw er; // Unhandled 'error' event
^
Error: EACCES: permission denied, open '/home/...log'
When I go to the log file the only entry I've got is:
2018-09-21T20:38:52.508Z ERROR :HLFConnectionManager
:fabric-client() [ChannelEventHub.js]: _connect - timed out
after:300000 {}$
My current log level is: composer[debug]:*
I'm using REST Server with oauth and multi-user and I can do GET or POST with success (HTTP200) but when I do a POST transaction nothing is set to the peers.
Can someone help trying to debug this?
EACCES is permission denied but not sure what is really being denied here...
Thanks in advance.