Comments (14)
I was having this issue running with npm start and now I solved it.
I've tried the modified version of isDebuggerReady() made in chrome-launcher.js by @hekod777 at GoogleChrome/chrome-launcher#30 and I can see that the Port is being assigned.
Also i have: "chrome-launcher": "^0.8.0",
net.createConnection(this.port) is rejecting the connection. WHY?
Also, I've tried to increase the pollInterval, with no success.
It's a dedicated server with Ubuntu 16.04 and Plesk and Google Chrome 63.0.3239.108
What I did to solve it is to add the '--no-sandbox' to the chromeFlags at main.js, I mean:
const appPromise = chromeLauncher.launch({
chromeFlags: ['--headless', '--disable-gpu', '--remote-debugging-address=0.0.0.0', '--no-sandbox'],
And solved!!!
from rendertron.
looks like the same problem as my last reply in this post
if so, it's the problem of chrome launcher.
you can try to either
- set the pollInterval to 10000 in chrome-launcher.js
or
- update the chrome-launcher dependency in Rendertron to 0.8.0 (Currently is 0.3.x)
Though I tried both. and still failed. But some people are saying this fixed the problem.
@RIP21 What is the OS you are using for your digital ocean deployment?
from rendertron.
@hekod777 chrome-launcher.js? Where I can find it. He is not in the repo.
Okay, I found it. It's a dependency. Both fixes didn't worked for me.
from rendertron.
Good.
We are now on the same boat.
I posted this issue on chrome-launcher github page 4 days.
Hopefully they can give a fix soon.
PS: if the performance issue of dockerized Rendertron can be fixed, it will be the best. then I don't have to use this npm start work around ~
from rendertron.
@RIP21: add your site to #113. It can be used for other sites, but I think I'm seeing some issues with the running instance right now.
from rendertron.
It sounds like chrome-launcher only supports some environments and maybe not the DigitalOcean one that you mentioned? The only real dependency is Chrome, so if you have Chrome, maybe we can configure chrome-launcher to point to exactly where it is.
npm start
should be fine as long as it can find Chrome.
from rendertron.
It can find Chrome and it even says in which port it was launched, but then failed to succeed.
from rendertron.
@samuelli about my site that was unable to be loaded via your instance, it was a no detection of the page load for some reason. I fixed that using code that is in the Chrome using stupi 5 second timeout to be sure it loaded :)
from rendertron.
the problem of chrome launcher is the debugger
isDebuggerReady(){}
you can find more details about this issue here
GoogleChrome/chrome-launcher#30
from rendertron.
Actually with the newest version of Rendertron, I am able to run Rendertron on an EC2 instance using npm start
.
This is the guide I used to install Chrome on EC2 instance.
https://intoli.com/blog/installing-google-chrome-on-centos/
from rendertron.
@hekod777: is that without the docker container then?
from rendertron.
Yes, without docker container.
from rendertron.
This is something I found regarding this --no-sandbox
flag
It is not a good fix because sandbox is one of the reasons why chrome is one of the safest browser around. No sandbox mode is just a temporary fix and doesn't really solve the problem. It is like a bypass on chrome so troubleshooters can still look more into chrome so they can better assess the situation.
I suggest solving the main problem that caused your chrome to stop functioning. You can post more about the details of your problem in the forums.
This is the comic explaining --no-sandbox
flag.
https://www.google.com/googlebooks/chrome/big_26.html
As for rendertron, since it's only rendering pages for bots and it's rendering the pages we want it to render, I think it's safe to use for rendertron.
from rendertron.
It's not fair to say no sandbox is bad and not provide a solution
from rendertron.
Related Issues (20)
- Server not responding after running 1 or 2 days, suspect memory leak HOT 3
- Script monitor-inspect points to non existing file src/main.js HOT 1
- the memory of chrome process keeps increasing HOT 3
- Rendertron on Google Cloud Platform - Cloud Run HOT 1
- Rendertron returning base href of Angular application as "https://null" HOT 3
- Password protection / authentication HOT 1
- restrictedUrlPattern does not exist in the latest published npm package 3.1.0 HOT 1
- [Project Status?] Is @AVGP still working on this project? HOT 8
- Website has css missing and API calls don't get fulfilled when rendering it through Rendertron HOT 2
- Question: What is the reason of cutting pathname in rendertron which is used in <base> as a page default URL HOT 2
- Set custom user agent HOT 1
- cant get rendertron to work. HOT 1
- Case-sensitivity of refreshCache HOT 1
- Build is failing - is this project still maintained? HOT 3
- SSRF on rendertron HOT 1
- Add timeout options for screenshots HOT 3
- ERROR: newTree.optimize is not a function
- problem with metadata HOT 1
- Not working for deep pages HOT 1
- https://render-tron.appspot.com/ is down HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rendertron.