Closed surjithctly closed 2 years ago
I had the same error! As a temporary fix, I downgraded the performance-leaderboard package to downgrade the version of lighthouse and it works better. Check the live branch package.json
Yes, it works now.
Is it a lighthouse error? Shall I keep this issue open?
Yeah I think it is. We'll have to retest after a new lighthouse release. Please do keep this open!
I have the same issue, but I use the same dependency version as the live branch here:
"performance-leaderboard": "^3.3.0",
@zachleat did you suggest to use an even lower version?
Still having the issue, I added a comment to an issue in Lighthouse project: https://github.com/GoogleChrome/lighthouse/issues/6512#issuecomment-971866859
I too ran into the PROTOCOL_TIMEOUT
error.
@patrickhulce mentioned the Chrome flag --disable-dev-shm-usage
at https://github.com/GoogleChrome/lighthouse/issues/6512#issuecomment-924123935 and I noticed it is not used in the default performance-leaderboard
Chrome options.
Adding it to the Speedlify
options in your sites/*.js
as such seems to fix the issue (for now?):
// [...]
options: {
[ ... ]
chromeFlags: ['--headless', '--disable-dev-shm-usage'] // <-- Add This!
},
[ ... ]
@davidhund it looks like it works! 🙏
Most tests were failing here before: https://perf.nicolas-hoizey.com/nicolas-hoizey.photo/
Oooh, awesome! From reading the issue—it looks like this belongs strictly in speedlify, not in performance-leaderboard
. Looks like it’s intended for containerized environments only? Does it hurt to have it added when running on a non-containerized env?
Oooh, awesome! From reading the issue—it looks like this belongs strictly in speedlify, not in
performance-leaderboard
. Looks like it’s intended for containerized environments only? Does it hurt to have it added when running on a non-containerized env?
I'm not sure @zachleat — This flag does seem to be intended for Unix/Docker environments only (with smaller /dev/smh
?). There's some discussion in Puppeteer at https://github.com/puppeteer/puppeteer/issues/1834 and https://bugs.chromium.org/p/chromium/issues/detail?id=736452#c64
I've seen someone mentioning --shm-size=1gb
as an alternative workaround, but I'm not knowledgeable enough to really comment on it ;-)
Well, I added chromeFlags: ['--headless', '--disable-dev-shm-usage']
to the default Speedlify options and it appears to be working great—thank you so much @davidhund
I couldn't build this for first time because this returns the following error every time. I tried few times re-running. Any other way?