Skip to content

chrome.docker with "Chrome failed to start with error" and "Error: Timeout" #222

Description

@rwieruch

Using https://github.com/AvnerCohen/lok-dnd-repro on my MacOS with this Docker Setup. This seems to work for others: #183 (comment) on their local machine. However, when I try to run the Loki tests, I get:

> loki test

loki test v0.20.1
 FAIL  chrome.docker
       Starting
       Chrome failed to start with errors "", "DevTools listening on ws://0.0.0.0:53273/de
vtools/browser/e8bfbe46-db1c-4e8d-b209-6b5cc90e077d"
Some visual tests failed to run

If I console.log the error at

I get:

loki test v0.20.1
 RUNS  chrome.docker: Starting
Error: Timeout
    at Timeout._onTimeout (/Users/mydspr/Developer/Repos/lok-dnd-repro/node_modules/wait-on/lib/wait-on.js:113:10)
    at listOnTimeout (internal/timers.js:549:17)
 FAIL  chrome.docker
       Starting
       Chrome failed to start with error "DevTools listening on ws://0.0.0.0:57617/devtool
s/browser/52ca57e9-6fab-4553-b46c-162e8b1a0657"
Some visual tests failed to run

What I tried:

  1. If I use chrome.app, everything works fine.
  2. I reproduced this issue on another MacOS system with the same Docker setup from above.
  3. Tried to increase the timeout integer Fails on CI with Timeout onTimeout #38, didn't help though.
  4. Tried Chrome flags Errors when running Loki inside Docker #143 didn't work.
  5. Not sure if this matters: If I print my Docker Machine's IP with docker-machine ip default, I get 192.168.99.100. If I print host and port at
    const waitOnCDPAvailable = (host, port) =>
    , I get: 127.0.0.1 and 59048. The port for the Docker container changes with every loki test run though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions