maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
654 stars 162 forks source link

[ERROR][https://staging.site.com:/] Shell command PID 6787 returned an abnormal error code: '1' #10

Closed MuhammadKhizerJaved closed 6 years ago

MuhammadKhizerJaved commented 6 years ago

[ERROR][https://staging.site.com:/] Shell command PID 6787 returned an abnormal error code: '1' ScreenShot Somehow failed

Getting this error whenever i run the script can't seems to find a solution ...

maaaaz commented 6 years ago

It gives you that error for any website or just one in particular ?

MuhammadKhizerJaved commented 6 years ago

Every website

maaaaz commented 6 years ago

try to update your phantomjs installation: https://github.com/maaaaz/webscreenshot/wiki/Phantomjs-installation

putsi commented 6 years ago

I'm getting this when running headless Ubuntu and fixed it with:

apt-get install xvfb
xvfb-run webscreenshot -i list.txt
bugbaba commented 6 years ago

I can confirm that the solution given by @putsi solves this issue.

@MuhammadKhizerJaved could you please try this at your end too.

maaaaz commented 6 years ago

@putsi, interesting I never tested webscreenshot on an headless OS. I'm happy it can work after installing that xvfb dependency: @bugbaba, thanks for confirming it.

Best regards everyone, I'm closing that issue.

haxormad commented 5 years ago

I was using the latest version of PhantomJS, and still getting this error! I had installed webscreenshot using pip!

kd54726 commented 5 years ago

I have done the solution given by @putsi but it didn't worked. It is still giving me the same error code : xvfb-run python webscreenshot.py -i file.txt -o ~/dir/dir/result.txt -w 20 -a "X-FORWARDED-FOR: 127.0.0.1"

so what should i do now?

EnFinlay commented 4 years ago

For me this was caused by incorrectly installing phantomjs. Solved by adding missing dependencies https://www.vultr.com/docs/how-to-install-phantomjs-on-ubuntu-16-04