Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

[uncaughtException] { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' } #42

Open
ne0c0de opened this issue Oct 28, 2013 · 11 comments

Comments

@ne0c0de
Copy link

ne0c0de commented Oct 28, 2013

Hi,

I just downloaded the zip file and tun the following commands:

npm install
node app.js

it gives me that error:

[uncaughtException] { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }

i also tried it with sudo command but the error didn't change.

finally i tried to give chmod 777 to all files in the current folder but the result didn't change.

what can id in this situaiton?

@ne0c0de
Copy link
Author

ne0c0de commented Oct 28, 2013

Finally i bypassed this error with installing phantomjs on my mac :)

My new error is on my server (Ubuntu 12.04) When i try to run app it gives that error:

Phantomjs internal server listening on port 3001
Express server listening on port 3000
phantomjs error: 2013-10-28T12:35:58 [WARNING] phantomjs: cannot connect to X server

phantomjs failed; restarting
[uncaughtException] [TypeError: Object # has no method 'startService']
Stopping Phantomjs internal server

Of course there's no X Server on my server so what can i do for this error?

@ne0c0de
Copy link
Author

ne0c0de commented Oct 29, 2013

I installed the latest version of phantomjs and the latest problem is resolved on my first server.

Now i try to install it on a fresh server (with x86-64 CPU), i installed all nodejs phantomjs and other components with same commands (sure to compatible with new CPU) but when i try to execute node app it fails and returun empty result (no error or any message)

What is the problem can be there?

@ne0c0de
Copy link
Author

ne0c0de commented Oct 30, 2013

I noticed that node app was completely f*cked up. I corrected it.

Now i get on my every request:

Express
404 Error: ENOENT, stat '/tmp/screenshot_c5ed435cf6361229c3a00a89eef131e4.png'

i changed the tmp directory to another directory and give 777 with chmod command but i got same error again :/

@PedroGabriel
Copy link

Same error in here, using Ubuntu VM at Koding

[uncaughtException] { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }

@ryangurn
Copy link

This means that you do not have the phantomjs executable in your bin of your system or in the path variable... I had the same issue and thats how i fixed it.

@bergkampho
Copy link

Yes, im using Win7 64-bit. it can be solved by installed phantomjs and located the path.

However, i get the same errors as ne0c0de on every request.

Express
404 Error: ENOENT, stat '/tmp/screenshot_c5ed435cf6361229c3a00a89eef131e4.png'

@ming535
Copy link

ming535 commented Jun 12, 2014

Same error, has any one following this issue? Has any one solved this issue?

@zhangwei217245
Copy link

@sferoze
Copy link

sferoze commented Jun 27, 2014

I am having this issue. Installing phantomjs binary using brew install phantomjs solved it. But it still doesnt work, anytime I make a request like in the example I just get:

Stopping Phantomjs internal server
Phantomjs internal server listening on port 3001

@glaudiston
Copy link

I did solve it by installing bzip2 and tar
RUN yum install -y tar bzip2

@hquadrat
Copy link

Can confirm the solution by @ryangurn . Added a symlink to phantomjs in /bin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants