-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhantomJS keeps timing out. #26
Comments
What URL are you trying to capture? Does this happen when you try www.google.com. |
You can also configure the PHANTOMJS_TIMEOUT in config-default.py
Try changing that to 50 or 60 seconds. |
I've done as you said and changed it to 60 and it still keeps timing out. Here's an example URL I'm trying to capture from pastebin: http://www.pastebin.com/Xm71fEcf And the error message is: [2015-10-01 14:48:18,910: ERROR/Worker-1] PhantomJS Capture timeout at 75 seconds |
Can you tell me a little bit about the host you are running on? Screenshot generation is pretty CPU intensive. That particular pastebin dump would generate a pretty large screenshot. Depending on the system's CPU you may want to set that threshold even higher. Is Sketchy able to screenshot other sites with less content (google, etc.)? |
Running on Ubuntu 14.04 Trusty. Yes, sketchy is able to take screenshots of other sites with less content. |
I think it's just maxing out and taking too long to render. Try doubling the PHANTOMJS_TIMEOUT to 120 seconds or even a few minutes. Your Scumblr searches may take a bit longer to run but you may end up with more reliable results for really huge captures. Let me know if doubling to 120 helped. |
Will do and let you know how it goes tomorrow. |
I did double it to 120, still same thing. It keeps timing out. Instead of making Scumblr generate all screenshots including this, this time, I only requested a screenshot of the URL as to see if it was a CPU problem which I'm assuming I can conclude it isn't since this was the only screenshot requested. |
If it's working for other sites it just may be that it contains too much content to render a screenshot. If it's working for other sites that may indicate it's a PhantomJS screenshot generation issue, most likely related to Phantom. |
Understood, Thanks. |
I'm having the same issue, I think. What's interesting about this particular issue is that it appears that sketchy is stuck on a particular request that is timing out and, as such, is not moving on to other requests. The request in issue has a job_status of "RETRY" and was created on 11/26. In the sketchy.log, I see: 2015-12-08 16:18:24,862 ERROR: PhantomJS Capture timeout at 60 seconds [in /mnt/data/apps/sketchy/sketchy/controllers/tasks.py:114] I'm not sure what to make of this yet, but I think a few things are seeming possible. First, it seems like sketchy was stuck in some weird loop as the moment I deleted the offended request (flagged as RETRY), all subsequent requests were made and completed. Second, this doesn't seem to be a timeout issue per se as the offending site had been collected before without any issue. All that said, I don't have enough time with the sketchy code to really offer anything significant. Thoughts? Thank you! Josh |
Also, anyone know what the ERRORS are related to? If I tail sketchy.log I see output similar to below all the time. 2015-12-08 16:26:36,377 ERROR: PhantomJS Capture timeout at 60 seconds [in /mnt/data/apps/sketchy/sketchy/controllers/tasks.py:114] |
@jwilczek Hi Josh, can you send me over the URL that was acting up? Also I think the errors are benign, I'll push a fix up to remove the logging (I think those were supposed to be informational logs not error). |
@jwilczek Please reopen this issue if you can provide the URL that was causing issues. w |
Sorry for the slow reply! In debugging the issue, I deleted the offending URL (without documenting it) and have yet to have another issue. I will reopen if this occurs again. Thanks! |
Ok, I'm seeing the issues again. I can share a URL (and my /api/v1.0/capture file), but I'd rather do it privately. Is that OK? Also, when I delete the offending entries from within Scumblr, it seems sketchy is still trying to grab screenshots. |
Sure you can email me directly sbehrens @ gmail On Wed, Jan 13, 2016 at 7:55 AM, jwilczek notifications@github.com wrote:
|
Email sent. Thanks! |
I configured Scumblr and Sketchy to work together. I start up the server and take screenshots and it would work but, if I've been idle or something, I'd keep getting an error in the terminal that says:
[2015-09-24 14:48:18,910: ERROR/Worker-1] PhantomJS Capture timeout at 35 seconds
ERROR in tasks [/home/user/sketchy/sketchy/controllers/tasks.py:341]:
Command 'phantomjs capture' timed out after 35 seconds
The text was updated successfully, but these errors were encountered: