Skip to content
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

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

Closed
MuhammadKhizerJaved opened this issue Mar 27, 2018 · 9 comments

Comments

@MuhammadKhizerJaved
Copy link

[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
Copy link
Owner

maaaaz commented Apr 1, 2018

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

@MuhammadKhizerJaved
Copy link
Author

Every website

@maaaaz
Copy link
Owner

maaaaz commented Apr 3, 2018

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

@putsi
Copy link

putsi commented Apr 15, 2018

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

apt-get install xvfb
xvfb-run webscreenshot -i list.txt

@bugbaba
Copy link

bugbaba commented May 5, 2018

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

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

@maaaaz
Copy link
Owner

maaaaz commented Jun 5, 2018

@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.

@maaaaz maaaaz closed this as completed Jun 5, 2018
@haxormad
Copy link

haxormad commented Apr 1, 2019

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

@kd54726
Copy link

kd54726 commented Sep 14, 2019

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
Copy link

EnFinlay commented Jul 4, 2020

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

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

No branches or pull requests

7 participants