fzaninotto / screenshot-as-a-service

Website screenshot service powered by node.js and phantomjs
1.1k stars 242 forks source link

phantomjs failed #11

Open joke2k opened 12 years ago

joke2k commented 12 years ago
screenshot-as-a-service@1.1.0 ~/js/screenshot-as-a-service
├─┬ config@0.4.11 
│ ├── coffee-script@1.3.3 
│ ├─┬ vows@0.5.13 
│ │ └── eyes@0.1.7 
│ └── yaml@0.2.3 
├─┬ express@2.5.8 
│ ├─┬ connect@1.9.2 
│ │ └── formidable@1.0.11 
│ ├── mime@1.2.4 
│ ├── mkdirp@0.3.0 
│ └── qs@0.4.2 
└── request@2.9.153 

$ node --version
v0.6.14

i've downgraded node.js with nvm

on Linux 3.2.0-27-generic (ubuntu)

$ node app.js 
Phantomjs internal server listening on port 3001
Express server listening on port 3000

openig http://localhost:3000/?url=www.google.com ...

screenshot - rasterizing http://www.google.com
Error
    at Request._callback (~/js/screenshot-as-a-service/routes/index.js:55:23)
    at Request.callback (~/js/screenshot-as-a-service/node_modules/request/main.js:119:22)
    at Request.<anonymous> (~/js/screenshot-as-a-service/node_modules/request/main.js:212:58)
    at Request.emit (events.js:67:17)
    at ClientRequest.<anonymous> (~/js/screenshot-as-a-service/node_modules/request/main.js:209:10)
    at ClientRequest.emit (events.js:67:17)
    at Socket.onend (http.js:1188:13)
    at TCP.onread (net.js:389:26)
Phantomjs process is sleeping. Restarting.
Stopping Phantomjs internal server
Phantomjs internal server listening on port 3001
phantomjs failed; restarting
Phantomjs internal server listening on port 3001
fzaninotto commented 12 years ago

You apparently have a networking issue. phantomjs doesn't seem to be installed properly, too. Not much I can do to troubleshoot this... Does phantomjs run when called as standalone?