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

Lighthouse refuses connection to circleci after migrating bibdata-staging to bibdata-stgaing.lib.princeton.edu #4359

Open
1 of 4 tasks
christinach opened this issue Sep 18, 2024 · 0 comments
Labels
maintenance Ticket related to maintenance that needs to be done

Comments

@christinach
Copy link
Member

What maintenance needs to be done?

Lighthouse refuses to connect in circleci after migrating bibdata-staging to bibdata-stgaing.lib.princeton.edu

Level of urgency

  • High
  • Moderate
  • Low

Acceptance criteria

  • Lighthouse runs in circleci

Implementation notes, if any

Lighthouse is failing with:

Running Lighthouse 3 time(s) on http://localhost:2999/catalog/99122304923506421
Run #1...failed!
Error: Lighthouse failed with exit code 1
    at ChildProcess.<anonymous> (/home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/src/collect/node-runner.js:120:21)
    at ChildProcess.emit (node:events:517:28)
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
{
  "lighthouseVersion": "12.1.0",
  "requestedUrl": "http://localhost:2999/catalog/99122304923506421",
  "mainDocumentUrl": "http://localhost:2999/catalog/99122304923506421",
  "finalDisplayedUrl": "http://localhost:2999/catalog/99122304923506421",
  "finalUrl": "http://localhost:2999/catalog/99122304923506421",
  "fetchTime": "2024-09-17T22:33:51.077Z",
  "gatherMode": "navigation",
  "runtimeError": {
    "code": "ERRORED_DOCUMENT_REQUEST",
    "message": "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 500)"
  },
  "runWarnings": [
    "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 500)"
  ],
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/129.0.0.0 Safari/537.36",
  "environment": {
    "hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/129.0.0.0 Safari/537.36",
    "benchmarkIndex": 1699,
    "credits": {}
  },
  "audits": {
    "is-on-https": {
      "id": "is-on-https",
      "title": "Uses HTTPS",
      "description": "All sites should be protected with HTTPS, even ones that don't handle sensitive data. This includes avoiding [mixed content](https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content), where some resources are loaded over HTTP despite the initial request being served over HTTPS. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more about HTTPS](https://developer.chrome.com/docs/lighthouse/pwa/is-on-https/).",
      "score": null,
      "scoreDisplayMode": "error",
      "errorMessage": "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 500)",
      "errorStack": "LighthouseError: ERRORED_DOCUMENT_REQUEST\n    at getNetworkError (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/lib/navigation-error.js:61:14)\n    at getPageLoadError (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/lib/navigation-error.js:162:24)\n    at _computeNavigationResult (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/gather/navigation-runner.js:146:7)\n    at async gatherFn (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/gather/navigation-runner.js:300:23)\n    at async Runner.gather (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/runner.js:210:25)\n    at async navigationGather (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/gather/navigation-runner.js:306:21)\n    at async navigation (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/core/index.js:58:24)\n    at async runLighthouse (file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/cli/run.js:210:26)\n    at async file:///home/circleci/.nvm/versions/node/v18.19.1/lib/node_modules/@lhci/cli/node_modules/lighthouse/cli/index.js:10:1"
    },
    "redirects-http": {
      "id": "redirects-http",
      "title": "Redirects HTTP traffic to HTTPS",
      "description": "Make sure that you redirect all HTTP traffic to HTTPS in order to enable secure web features for all your users. [Learn more](https://developer.chrome.com/docs/lighthouse/pwa/redirects-http/).",
  

Adding a wait for localhost:2999 didn't help run: dockerize -wait tcp://localhost:2999 -timeout 1m

2024/09/18 14:23:40 Waiting for: tcp://localhost:2999
2024/09/18 14:23:40 Problem with dial: dial tcp 127.0.0.1:2999: connect: connection refused. Sleeping 1s
2024/09/18 14:23:41 Problem with dial: dial tcp 127.0.0.1:2999: connect: connection refused. Sleeping 1s
2024/09/18 14:23:42 Problem with dial: dial tcp 127.0.0.1:2999: connect: connection refused. Sleeping 1s
2024/09/18 14:23:43 Problem with dial: dial tcp 127.0.0.1:2999: connect: connection refused. Sleeping 1s
2024/09/18 14:23:44 Problem with dial: dial tcp 127.0.0.1:2999: connect: connection refused. Sleeping 1s
2024/09/18 14:23:45 Problem with dial: dial tcp 127.0.0.1:2999: connect: connection refused. Sleeping 1s

This issue came up in Orangelight#4354 Pull request. We commented the code in circleci and link this ticket.

@christinach christinach added the maintenance Ticket related to maintenance that needs to be done label Sep 18, 2024
christinach added a commit that referenced this issue Sep 18, 2024
@christinach christinach changed the title Lighthouse refuses to connect in circleci after migrating bibdata-staging to bibdata-stgaing.lib.princeton.edu Lighthouse refuses connection to circleci after migrating bibdata-staging to bibdata-stgaing.lib.princeton.edu Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Ticket related to maintenance that needs to be done
Projects
None yet
Development

No branches or pull requests

1 participant