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

error when run lighthouse on (custom) GitHub runner (with preinstalled Chrome) #91

Closed
Kobe opened this issue Sep 24, 2021 · 1 comment
Closed

Comments

@Kobe
Copy link
Contributor

Kobe commented Sep 24, 2021

Hi,

we would like to run Lighthouse on pre-PRO environment which is only available internally.
That's why we have a custom GitHub runner running on on-premise Kubernetes.
Google Chrome browser is already installed.

But it fails with the following error. Maybe someone has a clue what went wrong.

events.js:187
  Running Lighthouse 10 time(s) on https://www.mypage.de/
        throw er; // Unhandled 'error' event
        ^
  
  Error: spawn node ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
      at onErrorNT (internal/child_process.js:456:16)
      at processTicksAndRejections (internal/process/task_queues.js:80:21)
  Emitted 'error' event on ChildProcess instance at:
      at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
      at onErrorNT (internal/child_process.js:456:16)
      at processTicksAndRejections (internal/process/task_queues.js:80:21) {
    errno: 'ENOENT',
    code: 'ENOENT',
    syscall: 'spawn node',
    path: 'node',
    spawnargs: [
      '/runner/_work/_actions/treosh/lighthouse-ci-action/v8/node_modules/lighthouse/lighthouse-cli/index.js',
      'https://www.mypage.de/',
      '--output',
      'json',
      '--output-path',
      'stdout',
      '--cli-flags-path',
      '/runner/_work/mypage-ui/mypage-ui/.lighthouseci/flags-30755ad7-427c-4a5d-87fb-b48693f0278e.json'
    ]
  }
  Run #1...::error::LHCI 'collect' has encountered a problem.
Kobe added a commit to Kobe/lighthouse-ci-action that referenced this issue Sep 29, 2021
Kobe added a commit to Kobe/lighthouse-ci-action that referenced this issue Sep 29, 2021
@Kobe
Copy link
Contributor Author

Kobe commented Sep 29, 2021

FYI: I set up a PR to update the README with the missing information about requirement "install chrome + node.js"

Kobe added a commit to Kobe/lighthouse-ci-action that referenced this issue Sep 30, 2021
alekseykulikov pushed a commit that referenced this issue Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants