-
Notifications
You must be signed in to change notification settings - Fork 383
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
Chromium on ARM - Still waiting to connect to Chromium, retrying in 1 second #1262
Comments
Please let us know which host operating system and hardware you are using to run Docker. |
@MikeMcC399 |
Thanks for confirming you're running under macOS with Apple M1! I tested as far as I was able, however I don't have The GitHub Actions CI environments don't provide the necessary testing environment:
Logs for amd64
|
I was able to reproduce an error situation I'm confirming an issue with Chromium on ARM:
The same test is successful with The test is based on the directory examples/chromium, updated to Cypress
The above test indicates that it isn't specifically an Apple M1 issue. It would need further tests in a non-Docker ARM64 environment to narrow down the cause of the issue. I'm unsure if I can further contribute to this issue, since I don't have any native |
I'm also seeing Chromium related error messages:
Full debug log attached: |
Searching on https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=chromium;dist=unstable I found: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088974 submitted Dec 3, 2024, Severity: serious This appears to correspond to the issue we are seeing here. You can subscribe to the bug on the bug report page. I will leave this issue open until it has been reported resolved by Debian / Chromium. There would be no change needed to Cypress Docker images or to Cypress if it turns out that the bug is indeed the root cause. |
This may help you in the interim. I tested it on WorkaroundUntil Debian releases a fixed version of Chromium for Debian Replace the following line:
with: RUN apt-get install chromium=130.0.6723.91-1~deb12u1 chromium-common=130.0.6723.91-1~deb12u1 -y # Install older Chromium |
@MikeMcC399 Thank you for this! This has allowed me to move forward. I spent a couple of hours over the last few days racking my brain on this. I even tried I also saw that bug you linked about stack smashing from December 3rd, but I wasn't sure if that was related or not. I had thought this was a chromium specific issue, but I wasn't sure at the time where to even submit a bug; though it appears to be bugs.debian.org. Anyhow, thanks for the help! |
You're welcome and I'm glad that this is working for you!
The working version was mentioned in the bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088974. I wouldn't have guessed otherwise:
I did however need some trial and error before I got the installation command to work!
Your debug hints in your original post were helpful in finding the bug report, so thanks for the details you provided!
I have never personally needed to report a Debian bug, so I can only point you to https://www.debian.org/Bugs/Reporting for instructions.
😄 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Debian bug - 1088974 is now closed as fixed. Would you like to check if it is fixed for you without using the workaround of downgrading? I am now able to run successfully on CircleCI with Chromium 131 on arm64. https://packages.debian.org/search?keywords=chromium shows a new release: bookworm (stable) (web): web browser The crashing version, as listed in Debian bug - 1088974, was |
We have been building a custom image off
cypress/factory
for awhile now and installingchromium
. As of recently this has stopped working.I started to create a reproducible example and then realized that the arm chromium example here also produced the problem for me: https://github.com/cypress-io/cypress-docker-images/tree/master/examples/chromium
Running the last command from that readme produces:
Still waiting to connect to Chromium, retrying in 1 second
I had my peer do these same steps on his machine and it produced the same result.
It is unclear to me whether this is a Cypress, Chromium, or Cypress Docker issue.
I tried also using more verbose logging:
docker run --env DEBUG="cypress:*" -it --rm --entrypoint bash test-chromium -c "npx cypress run --browser chromium"
I see
cypress:network:connect received error on connect, retrying { iteration: 0, delay: 100, err: Error: connect ECONNREFUSED 127.0.0.1:42149 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 42149 } } +0ms
...and I see this:
cypress:launcher:browsers chromium stderr: *** stack smashing detected ***: terminated
The text was updated successfully, but these errors were encountered: