hideyuk1-jp / beyooon.jp

https://beyooon.jp
BSD Zero Clause License
1 stars 0 forks source link

lighthouse CIがエラー #66

Closed hideyuk1-jp closed 3 years ago

hideyuk1-jp commented 3 years ago

GitHub token not setが原因でHerokuにアップロード出来てないっぽい

Run npm install -g @lhci/cli@0.6.x
npm WARN deprecated intl-messageformat-parser@1.8.1: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated xmldom@0.1.19: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/opt/hostedtoolcache/node/14.16.1/x64/bin/lhci -> /opt/hostedtoolcache/node/14.16.1/x64/lib/node_modules/@lhci/cli/src/cli.js
+ @lhci/cli@0.6.1
added 423 packages from 263 contributors in 13.203s
✅  .lighthouseci/ directory writable
✅  Configuration file found
✅  Chrome installation found
⚠️   GitHub token not set
⚠️   Ancestor hash not determinable
    ERROR: Unexpected status code 503
  <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta charset="utf-8">
        <title>Application Error</title>
        <style media="screen">
          html,body,iframe {
            margin: 0;
            padding: 0;
          }
          html,body {
            height: 100%;
            overflow: hidden;
          }
          iframe {
            width: 100%;
            height: 100%;
            border: 0;
          }
        </style>
      </head>
      <body>
        <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
      </body>
    </html>
✅  LHCI server reachable
⚠️   LHCI server not API-compatible
⚠️   LHCI server token invalid
    ERROR: Unexpected status code 503
  <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta charset="utf-8">
        <title>Application Error</title>
        <style media="screen">
          html,body,iframe {
            margin: 0;
            padding: 0;
          }
          html,body {
            height: 100%;
            overflow: hidden;
          }
          iframe {
            width: 100%;
            height: 100%;
            border: 0;
          }
        </style>
      </head>
      <body>
        <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
      </body>
    </html>
⚠️   LHCI server non-unique build for this hash
    ERROR: Unexpected status code 503
  <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta charset="utf-8">
        <title>Application Error</title>
        <style media="screen">
          html,body,iframe {
            margin: 0;
            padding: 0;
          }
          html,body {
            height: 100%;
            overflow: hidden;
          }
          iframe {
            width: 100%;
            height: 100%;
            border: 0;
          }
        </style>
      </head>
      <body>
        <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
      </body>
    </html>
Healthcheck passed!

Started a web server on port 43525...
Running Lighthouse 3 time(s) on http://localhost:43525/
Run #1...done.
Run #2...done.
Run #3...done.
Running Lighthouse 3 time(s) on http://localhost:43525/blog/hello-world/
Run #1...done.
Run #2...done.
Run #3...done.
Done running Lighthouse!

Error: Unexpected status code 503
  <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta charset="utf-8">
        <title>Application Error</title>
        <style media="screen">
          html,body,iframe {
            margin: 0;
            padding: 0;
          }
          html,body {
            height: 100%;
            overflow: hidden;
          }
          iframe {
            width: 100%;
            height: 100%;
            border: 0;
          }
        </style>
      </head>
      <body>
        <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
      </body>
    </html>
    at ApiClient._convertFetchResponseToReturnValue (/opt/hostedtoolcache/node/14.16.1/x64/lib/node_modules/@lhci/cli/node_modules/@lhci/utils/src/api-client.js:78:21)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async runLHCITarget (/opt/hostedtoolcache/node/14.16.1/x64/lib/node_modules/@lhci/cli/src/upload/upload.js:399:19)
    at async Object.runCommand (/opt/hostedtoolcache/node/14.16.1/x64/lib/node_modules/@lhci/cli/src/upload/upload.js:592:16)
    at async run (/opt/hostedtoolcache/node/14.16.1/x64/lib/node_modules/@lhci/cli/src/cli.js:109:7)WARNING: upload command failed.

Done running autorun.
hideyuk1-jp commented 3 years ago

heroku serverが落ちているのが原因っぽい 最新の設定ファイルに書き換えてserverをrestartしたらうまくいった

hideyuk1-jp commented 3 years ago

https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/recipes/heroku-server/README.md