question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LH stuck at retrieving IF maxWaitForLoad too high

See original GitHub issue

Bug report

Provide the steps to reproduce

  1. Run LH Node.js Module on https://www.reishunger.de/wissen/article/41/unterschied-basmati-und-jasmin-reis

Update: It definitely also doesn’t work with other URLs that worked only 2 days ago. Neither the sites nor my environment has changed in the meantime.

What is the current behavior?

If the maxWaitForLoad is set “too high”, in my case above around 4000ms, LH gets stuck at the following step:

Mon, 11 Jun 2018 14:44:28 GMT status Initializing…
Mon, 11 Jun 2018 14:44:29 GMT status Loading page & waiting for onload URL, Scripts, CSSUsage, Viewport, ViewportDimensions, ThemeColor, Manifest, RuntimeExceptions, ChromeConsoleMessages, ImageUsage, Accessibility, EventListeners, AnchorsWithNoRelNoopener, AppCacheManifest, DOMStats, JSLibraries, OptimizedImages, PasswordInputsWithPreventedPaste, ResponseCompression, TagsBlockingFirstPaint, WebSQL, MetaDescription, FontSize, CrawlableLinks, MetaRobots, Hreflang, EmbeddedContent, Canonical, RobotsTxt, Fonts
Mon, 11 Jun 2018 14:44:44 GMT Driver:warn Timed out waiting for page load. Moving on...
Mon, 11 Jun 2018 14:44:44 GMT statusEnd Loading page & waiting for onload
Mon, 11 Jun 2018 14:44:44 GMT status Retrieving trace
Mon, 11 Jun 2018 14:44:44 GMT status Retrieving devtoolsLog and network records

If its below or around 4000ms the report sometimes work, but most of the time doesn’t. But it always times out on page load.

The chrome audit tab give the site a performance score of 0 with the following message, but at least it finishes the report:

Something went wrong with recording the trace over your page load. Please run lighthouse again. (NO_FMP)

Environment Information

  • Affected Channels: Node
  • Lighthouse version: 2.9.4
  • Node.js version: 6.1.0
  • Operating System: Docker / MacOS / AWS Lambda using lighthouse-lambda

chromeFlags:

exports.flags = [
  '--disable-gpu',
  '--headless',
  '--no-sandbox',
]

If --no-zygote AND/OR --single-process are added @ 10000ms maxWaitForLoad, i get this trace:

Mon, 11 Jun 2018 15:04:22 GMT status Initializing…
Mon, 11 Jun 2018 15:04:23 GMT status Loading page & waiting for onload URL, Scripts, CSSUsage, Viewport, ViewportDimensions, ThemeColor, Manifest, RuntimeExceptions, ChromeConsoleMessages, ImageUsage, Accessibility, EventListeners, AnchorsWithNoRelNoopener, AppCacheManifest, DOMStats, JSLibraries, OptimizedImages, PasswordInputsWithPreventedPaste, ResponseCompression, TagsBlockingFirstPaint, WebSQL, MetaDescription, FontSize, CrawlableLinks, MetaRobots, Hreflang, EmbeddedContent, Canonical, RobotsTxt, Fonts
Mon, 11 Jun 2018 15:04:33 GMT Driver:warn Timed out waiting for page load. Moving on...
Mon, 11 Jun 2018 15:04:33 GMT statusEnd Loading page & waiting for onload
Mon, 11 Jun 2018 15:04:33 GMT status Retrieving trace
Mon, 11 Jun 2018 15:04:33 GMT status Disconnecting from browser...
2018-06-11T15:04:33.085Z	3a8b9826-ac72-189e-6fc8-54fef55152bc	Error: connect ECONNREFUSED 127.0.0.1:33451
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)

Related issues #4147 #3993 #4287

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Jun 11, 2018

Hm, yeah that should be enough. Unfortunately this is the one step where LH doesn’t really have any extra information to be logging, it would all be Chrome-side. When you launch Chrome in your environment you can have it dump its output somewhere useful that might give clues.

FWIW you can also enable verbose logging in LH though again, this issue is likely with Chrome logs const flags = {logLevel: 'verbose'}

0reactions
baocancodecommented, Aug 4, 2018

@sambokai We updated lighthouse-lambda to use the binary of serverless-chrome recently. Your url runs ok now with lighthouse-lambda version 3.1 (or 2.1).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Are My Ovulation Test Peaks Low? Am I Not Ovulating?
Ideally, your LH levels should be around 1.0 or higher on your peak day as the test line becomes as dark as a...
Read more >
LH Surge: When to Detect Peak Fertility with an OPK
Your LH surge initiates the beginning of ovulation & your most fertile period, signaling that an egg is ready to be released from...
Read more >
Advanced Digital Ovulation Test - Clearblue
This ovulation test tracks 2 hormones to typically identify 4 or more fertile days - more than any other ovulation test.
Read more >
Trying to conceive? Romper Investigates the LH Surge
The LH surge can tell you when you will ovulate. Dr. Eric Levens explains how, and what else to look for in Romper....
Read more >
Fertility and Ovulation | The Sperm Bank of California
A person's egg lives for only six to twenty-four hours after ovulation. Using frozen sperm makes timing insemination crucial; while fresh sperm can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found