K
K
konchober2014-12-22 02:51:03
PHP
konchober, 2014-12-22 02:51:03

PhantomJS keeps crashing on the damn node?

Hello, there are several absolutely identical virtualcocs in terms of configuration and installed software (everything is installed by a script)
Ubuntu Linux 3.2.0-74-generic #109-Ubuntu SMP Tue Dec 9 16:45:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
running phantom in webdriver mode: /usr/bin/phantomjs --webdriver=127.0.0.1:8910
but on one node every 10 minutes the phantom crashes, the following exception is caught in the script:
[Exception] Curl error thrown for http GET to /session/05510f40-8968 -11e4-b105-e9710617a8b9/source
couldn't connect to host
reinstalling the OS and software does not help, adding nodes helps partially, because again there are systems where the phantom constantly flies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Shein, 2014-12-22
@conf

I had something similar (albeit without phantomjs) when a request on the server performed something heavy and the session did not have time to sign up, in this case, the rest of the requests with this session "hung" until the first request ended. If so, then try using session_write_close()before the hard work in the first request to "release" the session for writing.
Well, or something with your network, you need to monitor the web server logs.

K
konchober, 2014-12-22
@konchober

And here is what is in the phantom logs before the flight:
[INFO - 2014-12-21T23:55:34.942Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: dadcbc50-896c-11e4-bd08-cd375b40528a
[INFO - 2014-12-21T23:55 :57.987Z] Session [e898f890-896c-11e4-bd08-cd375b40528a] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages": false,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0","webSecurityEnabled":true}
[INFO - 2014-12-21T23 :55:57.987Z] Session [e898f890-896c-11e4-bd08-cd375b40528a] - page.customHeaders: - {}
[INFO - 2014-12-21T23:55:57.987Z] Session [e898f890-896c-11e4-bd08-cd375b40528a] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7", "driverName":"ghostdriver","driverVersion":"1.1.0","platform":"linux-unknown-64bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled ":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents": true,"proxy":{"proxyType":"direct"},"phantomjs.page.settings.userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0","phantomjs.page.settings.loadImages":false,"phantomjs.page.settings.resourceTimeout" :30000}
[INFO - 2014-12-21T23:55: 57.987Z ] SessionManagerReqHand - _postNewSessionCommand - New Session Created: e898f890-896c-11e4-bd08-cd375b40528a Sessions clean-up phase starting NOW
Killed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question