-
Notifications
You must be signed in to change notification settings - Fork 188
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
isDebuggerReady() net.createConnection ECONNREFUSED error in AWS ec2 instance #30
Comments
@hekod777 rendertron is using an older version of chrome-launcher (~0.3 instead of latest 0.8) which has a few mitigations that might help (though it looks like you've already tried increasing the poll interval). Can you confirm that Chrome is actually starting successfully through other means? i.e. you can connect to the port from another process after you increase the poll interval. It's possible it's silently failing to start. |
@patrickhulce I think chrome was actually running because I have the following line in the logs
and I have upgrade chrome-launcher to 0.8+. but still the same error. The debugger is where pain is. |
I modified isDebuggerReady(){} to see the more information
This is what I saw
PS: I also tried using red hat 7.4 linux instead of Amazon Linux AMI. but still the same error |
Hello
I was trying to run Rendertron using npm start in an AWS ec2 instance to avoid the docker container performance penalty.
then I got this error after npm start
The root of the problem was the isDebuggerReady() {} in chrome launcher. It seems that net.createConnection can never properly create a connection.
However, everything is running fine locally.
any ideas how to fix it?
Reproduction Steps
start an AWS ec2 instance with AMI
connect to the ec2 instance
install git
sudo yum install git
pull rendertron repo
git clone https://github.com/GoogleChrome/rendertron.git
install chrome
sudo yum --nogpgcheck localinstall https://intoli.com/blog/installing-google-chrome-on-centos/google-chrome-stable-60.0.3112.113-1.x86_64.rpm
cd into rendertron folder
cd rendertron
npm install
npm start
Tried work arounds
yield this.waitUntilReady();
inchrome-launcher.js
in thespawnProcess
function. Rendertron was able to run, but if I try to render a page, it will give the following error.net.createConnection() simply throws ECONNREFUSED error as soon as it tries to create a connection.
Thanks!
The text was updated successfully, but these errors were encountered: