karma-runner / karma-sauce-launcher

A Karma plugin. Launch any browser on SauceLabs!
MIT License
199 stars 103 forks source link

Unable to connect to Saucelabs #253

Open trickeyone opened 3 years ago

trickeyone commented 3 years ago

I am unable to get the launcher to connect to Saucelabs anymore. It looks like it stopped working about 2-3 months ago. The last successful Travis-CI build was from 3 months ago, and other projects I know of appear to have not had a successful run in about the same amount of time.

The below repeats every single time. I've also tried to use Github's workflows but they aren't working, either.

Local:

29 08 2021 00:10:35.296:INFO [karma-server]: Karma v6.3.4 server started at http://localhost:9876/
29 08 2021 00:10:35.297:INFO [launcher]: Launching browsers CHROME, FIREFOX, EDGE, EDGE18, SAFARI12, SAFARI13 with concurrency unlimited
29 08 2021 00:10:35.300:INFO [launcher]: Starting browser chrome latest  on SauceLabs
29 08 2021 00:10:35.326:INFO [launcher]: Starting browser firefox latest  on SauceLabs
29 08 2021 00:10:35.329:INFO [launcher]: Starting browser MicrosoftEdge latest Windows 10 on SauceLabs
29 08 2021 00:10:35.331:INFO [launcher]: Starting browser MicrosoftEdge 18.17763 Windows 10 on SauceLabs
29 08 2021 00:10:35.333:INFO [launcher]: Starting browser safari 12 macOS 10.14 on SauceLabs
29 08 2021 00:10:35.334:INFO [launcher]: Starting browser safari 13 macOS 10.15 on SauceLabs
29 08 2021 00:10:41.785:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/9d11ebd2407c4aafb37d7353b82186c2
29 08 2021 00:10:41.789:INFO [SaucelabsLauncher]: MicrosoftEdge latest Windows 10 session at https://saucelabs.com/tests/ead4f78ee7b74437b987f88fcd07353e
29 08 2021 00:10:43.241:INFO [SaucelabsLauncher]: safari 13 macOS 10.15 session at https://saucelabs.com/tests/c7d672a604524698816c673b8051ab58
29 08 2021 00:10:45.389:INFO [SaucelabsLauncher]: safari 12 macOS 10.14 session at https://saucelabs.com/tests/a3b0b6f2f5a94c29bd2fa8564732c6fa
29 08 2021 00:10:45.455:INFO [SaucelabsLauncher]: firefox latest  session at https://saucelabs.com/tests/0fcefacbf861479babd2e9c4822bd2f5
29 08 2021 00:10:58.228:INFO [SaucelabsLauncher]: MicrosoftEdge 18.17763 Windows 10 session at https://saucelabs.com/tests/41d14385bac74fa8864c7b38979d48fa
29 08 2021 00:13:35.289:WARN [launcher]: chrome latest  on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:13:35.315:WARN [launcher]: firefox latest  on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:13:35.317:WARN [launcher]: MicrosoftEdge latest Windows 10 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:13:35.319:WARN [launcher]: MicrosoftEdge 18.17763 Windows 10 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:13:35.321:WARN [launcher]: safari 12 macOS 10.14 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:13:35.322:WARN [launcher]: safari 13 macOS 10.15 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:13:35.465:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
29 08 2021 00:13:35.491:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
29 08 2021 00:13:35.577:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge latest Windows 10' has already been stored.
29 08 2021 00:13:35.662:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge 18.17763 Windows 10' has already been stored.
29 08 2021 00:13:35.675:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 12 macOS 10.14' has already been stored.
29 08 2021 00:13:35.769:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 13 macOS 10.15' has already been stored.
29 08 2021 00:13:36.303:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge 18.17763 Windows 10' has already been stored.
29 08 2021 00:13:36.395:INFO [launcher]: Trying to start chrome latest  on SauceLabs again (1/2).
29 08 2021 00:13:36.406:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 12 macOS 10.14' has already been stored.
29 08 2021 00:13:36.409:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 13 macOS 10.15' has already been stored.
29 08 2021 00:13:36.431:INFO [launcher]: Trying to start firefox latest  on SauceLabs again (1/2).
29 08 2021 00:13:36.920:INFO [launcher]: Trying to start MicrosoftEdge latest Windows 10 on SauceLabs again (1/2).
29 08 2021 00:13:37.093:INFO [launcher]: Trying to start MicrosoftEdge 18.17763 Windows 10 on SauceLabs again (1/2).
29 08 2021 00:13:37.214:INFO [launcher]: Trying to start safari 13 macOS 10.15 on SauceLabs again (1/2).
29 08 2021 00:13:37.596:INFO [launcher]: Trying to start safari 12 macOS 10.14 on SauceLabs again (1/2).
29 08 2021 00:13:38.553:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/3b562626c2a74625bb97a9bee6ec9a2c
29 08 2021 00:13:43.794:INFO [SaucelabsLauncher]: MicrosoftEdge latest Windows 10 session at https://saucelabs.com/tests/c4bded02fc804353af5b22243a7e56bc
29 08 2021 00:13:45.526:INFO [SaucelabsLauncher]: firefox latest  session at https://saucelabs.com/tests/8b84a13e5bc54aa1a49116a6472d4dc3
29 08 2021 00:13:47.731:INFO [SaucelabsLauncher]: safari 12 macOS 10.14 session at https://saucelabs.com/tests/a1623d3d39fe4efd91e44166460fb2aa
29 08 2021 00:13:50.540:INFO [SaucelabsLauncher]: MicrosoftEdge 18.17763 Windows 10 session at https://saucelabs.com/tests/878aa22c6d434f8192ce737445784e5a
29 08 2021 00:13:52.918:INFO [SaucelabsLauncher]: safari 13 macOS 10.15 session at https://saucelabs.com/tests/ed7d88d64a27443f879b634e11ac7a5d
29 08 2021 00:16:36.391:WARN [launcher]: chrome latest  on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:16:36.429:WARN [launcher]: firefox latest  on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:16:36.520:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
29 08 2021 00:16:36.656:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
29 08 2021 00:16:36.915:WARN [launcher]: MicrosoftEdge latest Windows 10 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:16:37.090:WARN [launcher]: MicrosoftEdge 18.17763 Windows 10 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:16:37.136:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge latest Windows 10' has already been stored.
29 08 2021 00:16:37.206:WARN [launcher]: safari 13 macOS 10.15 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:16:37.392:INFO [launcher]: Trying to start chrome latest  on SauceLabs again (2/2).
29 08 2021 00:16:37.558:INFO [launcher]: Trying to start firefox latest  on SauceLabs again (2/2).
29 08 2021 00:16:37.589:WARN [launcher]: safari 12 macOS 10.14 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:16:37.781:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 13 macOS 10.15' has already been stored.
29 08 2021 00:16:37.785:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge latest Windows 10' has already been stored.
29 08 2021 00:16:37.930:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 12 macOS 10.14' has already been stored.
29 08 2021 00:16:38.127:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge 18.17763 Windows 10' has already been stored.
29 08 2021 00:16:38.481:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 13 macOS 10.15' has already been stored.
29 08 2021 00:16:38.576:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 12 macOS 10.14' has already been stored.
29 08 2021 00:16:38.620:INFO [launcher]: Trying to start MicrosoftEdge latest Windows 10 on SauceLabs again (2/2).
29 08 2021 00:16:39.018:INFO [launcher]: Trying to start MicrosoftEdge 18.17763 Windows 10 on SauceLabs again (2/2).
29 08 2021 00:16:39.259:INFO [launcher]: Trying to start safari 13 macOS 10.15 on SauceLabs again (2/2).
29 08 2021 00:16:39.329:INFO [launcher]: Trying to start safari 12 macOS 10.14 on SauceLabs again (2/2).
29 08 2021 00:16:39.748:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/e925763049db421c90fbf546f212913b
29 08 2021 00:16:43.808:INFO [SaucelabsLauncher]: MicrosoftEdge latest Windows 10 session at https://saucelabs.com/tests/f7052a20a1cb4fde9a69532c839d9650
29 08 2021 00:16:46.875:INFO [SaucelabsLauncher]: firefox latest  session at https://saucelabs.com/tests/55401f3c78eb4f5cb9a2e5729da5a6fc
29 08 2021 00:16:48.106:INFO [SaucelabsLauncher]: safari 13 macOS 10.15 session at https://saucelabs.com/tests/1f6fe4c3b9a5412ab90f27b8374183fa
29 08 2021 00:16:49.802:INFO [SaucelabsLauncher]: safari 12 macOS 10.14 session at https://saucelabs.com/tests/eee131f1c7d04d348ffbb26ef047f1f2
29 08 2021 00:16:55.296:INFO [SaucelabsLauncher]: MicrosoftEdge 18.17763 Windows 10 session at https://saucelabs.com/tests/2bc7b22cb5694fbc95778740245f4cab
29 08 2021 00:19:37.388:WARN [launcher]: chrome latest  on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:19:37.530:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
29 08 2021 00:19:37.553:WARN [launcher]: firefox latest  on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:19:37.762:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
29 08 2021 00:19:38.421:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
29 08 2021 00:19:38.427:ERROR [launcher]: chrome latest  on SauceLabs failed 2 times (timeout). Giving up.
29 08 2021 00:19:38.615:WARN [launcher]: MicrosoftEdge latest Windows 10 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:19:38.773:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge latest Windows 10' has already been stored.
29 08 2021 00:19:39.011:WARN [launcher]: MicrosoftEdge 18.17763 Windows 10 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:19:39.236:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge 18.17763 Windows 10' has already been stored.
29 08 2021 00:19:39.254:WARN [launcher]: safari 13 macOS 10.15 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:19:39.284:ERROR [launcher]: firefox latest  on SauceLabs failed 2 times (timeout). Giving up.
29 08 2021 00:19:39.324:WARN [launcher]: safari 12 macOS 10.14 on SauceLabs have not captured in 180000 ms, killing.
29 08 2021 00:19:39.562:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 13 macOS 10.15' has already been stored.
29 08 2021 00:19:39.597:ERROR [launcher]: MicrosoftEdge latest Windows 10 on SauceLabs failed 2 times (timeout). Giving up.
29 08 2021 00:19:39.711:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 12 macOS 10.14' has already been stored.
29 08 2021 00:19:39.878:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'MicrosoftEdge 18.17763 Windows 10' has already been stored.
29 08 2021 00:19:40.202:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 13 macOS 10.15' has already been stored.
29 08 2021 00:19:40.354:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 12 macOS 10.14' has already been stored.
29 08 2021 00:19:40.688:ERROR [launcher]: MicrosoftEdge 18.17763 Windows 10 on SauceLabs failed 2 times (timeout). Giving up.
29 08 2021 00:19:40.972:ERROR [launcher]: safari 13 macOS 10.15 on SauceLabs failed 2 times (timeout). Giving up.
29 08 2021 00:19:41.119:ERROR [launcher]: safari 12 macOS 10.14 on SauceLabs failed 2 times (timeout). Giving up.

When trying to use GIthub workflows and the saucelabs/sauce-connect-action , I'm getting the below errors:

29 08 2021 06:08:31.628:ERROR [SaucelabsLauncher]: Error: Only Nightly release channel is supported in Devtools/Puppeteer for Firefox. Refer to the following issue:
        https://bugzilla.mozilla.org/show_bug.cgi?id=1606604

        You can use the following link to download Firefox Nightly edition:
        https://www.mozilla.org/en-US/firefox/channel/desktop/

        Adding the following binary capability in Firefox Options is mandatory to run with Nightly edition:

        'moz:firefoxOptions': {
            binary: '/path/to/firefox'
        }

        Note: "Nightly" as a term should be present in the "Firefox Application Name" across all OS's in binary path mentioned above for this to work.
    at launchBrowser (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/launcher.js:113:15)
    at Object.launch [as default] (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/launcher.js:125:16)
    at Function.newSession (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/index.js:33:49)
    at Object.exports.remote (/home/runner/work/ng-toggle/ng-toggle/node_modules/webdriverio/build/index.js:53:43)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
29 08 2021 06:08:31.630:INFO [launcher]: Trying to start firefox latest  on SauceLabs again (1/2).
29 08 2021 06:08:31.867:ERROR [SaucelabsLauncher]: Error: Couldn't find executable for browser
    at launchBrowser (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/launcher.js:107:15)
    at Object.launch [as default] (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/launcher.js:128:16)
    at Function.newSession (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/index.js:33:49)
    at Object.exports.remote (/home/runner/work/ng-toggle/ng-toggle/node_modules/webdriverio/build/index.js:53:43)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
29 08 2021 06:08:31.867:INFO [launcher]: Trying to start MicrosoftEdge latest Windows 10 on SauceLabs again (1/2).
29 08 2021 06:08:32.104:ERROR [SaucelabsLauncher]: Error: Couldn't find executable for browser
    at launchBrowser (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/launcher.js:107:15)
    at Object.launch [as default] (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/launcher.js:128:16)
    at Function.newSession (/home/runner/work/ng-toggle/ng-toggle/node_modules/devtools/build/index.js:33:49)
    at Object.exports.remote (/home/runner/work/ng-toggle/ng-toggle/node_modules/webdriverio/build/index.js:53:43)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

The above happens for any browser you try to launch. So, it appears that there is some major issue when using the Github action.