-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
XDG_RUNTIME_DIR error in Debian 12.x headless #29554
Comments
any update on this error? thanks! |
Are you also seeing this error or are you just interested in the outcome? |
I'm seeing the error on the logs at the moment with the latest version of cypress (13.10.0) |
Are you also running under Debian |
The error The fact that it is sometimes occurs with a test failure may or may not be coincidence. |
Hi, we are also experiencing the same on issue on version We run our test in a docker container that uses Tried with version |
Which version of What output does the following command yield? docker run --entrypoint cat <your Docker image> /etc/debian_version |
Hi @MikeMcC399 We use the latest version |
If the failures are repeatable, then you may like to try with In the test runs of the Docker repo https://github.com/cypress-io/cypress-docker-images I am seeing the error happening quite often, but without test failure:
|
Hi @MikeMcC399 I did investigate a few non failing runs, and it is also showing it. I will try with the debug option and see if I can find anything useful |
Also experiencing this issue (but with the @MikeMcC399 Here are the logs surrounding the Difference with me: It's reproducible 100% of the time.
|
I suspect that these are two different errors. This is however just "gut feel". It needs more investigation to find out. |
Hey is there any update on this issue? Cheers ! |
The browser: chromium label can be removed, as this issue also occurs with Electron. |
I can also say that I am seeing this reliably with certain tests in my GitLab CI pipeline using |
We see the error
|
Also seeing this issue.
Running: |
Having the same issue on Azure Pipelines:
Dockerfile
|
It's difficult to know if Cypress failures are related to the Just as a comment on the way you are building your Docker image: you might find it easier to use cypress/factory which already adds the Linux prerequisites for Cypress and makes it easy to just add a selected version of Chrome. This comment is however off-topic for the current issue 🙂 If you want to discuss, then (click on button) is a better place. |
Just updated to 13.13.0 and seeing the error Cypress: 13.13.0 |
|
According to #29554 (comment), version 13.8.1 seems to be the earliest reported version where this has been reproduced. Is there any indication from the CI/CD logs which may indicate when this issue was introduced? |
After testing with 13.6.4, which appears to be the last time electron was upgraded, I'm no longer seeing the |
Due to the nature of this issue there are different root causes emerging which are difficult to split out. As far as the original subject of this issue is concerned "XDG_RUNTIME_DIR error in Debian 12.x headless" the first official Cypress Docker image to be based on Debian 12 was
|
Thank you for the details @MikeMcC399, according to your original post though it seems that you are indicating that this was first reported for I've also been able to avoid the |
Sorry for the confusing details! I was actually testing the Debian 12 image on Cypress It doesn't look like anybody has dug into the code at this stage, so thanks for your additional details! |
This comment was marked as outdated.
This comment was marked as outdated.
Happens to me when running in the CI using the |
Im using the I'm seeing the issue randomly while running my specs, but I'm able to consitently reproduce the error message by replacing the
The
|
Issue is still occurring with Cypress Last example https://app.circleci.com/pipelines/github/cypress-io/cypress-docker-images/2248/workflows/3e0039cf-477d-45e9-b8b8-6c0e0ff35ca5/jobs/68749 Sep 10, 2024 with Edge browser. |
Do we have an update regarding this issue please? we are stuck at version 13.10.0..Thank you |
I haven't seen any feedback from the Cypress.io team so far. https://app.circleci.com/pipelines/github/cypress-io/cypress-docker-images/2276/workflows/915912c6-727a-4e36-8ed3-04ae68e8abe8/jobs/69680 running with Cypress If you are stuck at |
We are experiencing the same issue with the following setup: Cypress: 13.15.0
Browser: Chrome 130 (headless)
Node Version: v20.18.0 (/usr/local/bin/node) Occasionally, some containers hang without any response. We're not certain if this is directly related to the error mentioned in this thread. |
after some long investigation we figured out that on our end this error message is not related to any hangs would still be great if cypress would handle ci cancellation more gracefully |
We have the same problems │ Cypress: 13.15.0 │ |
I imagine this is an erroneous error, that is not impacting the runs and can be safely ignored. We'll try to look and see if our Electron upgrade in Cy 14 would fix this. |
Also here
Coincidence or is the error message linked to the cause of failure? |
@MikeMcC399 do you have a link to the build? The times I've seen it, it's definitely been extraneous and hasn't really caused problems. |
... and if you happen to open up the CircleCI web UI, perhaps you could also rerun the failed jobs so that |
@MikeMcC399, I rebuilt and all went well this time around. |
Excellent! Thank you very much! 🎉 |
Hello, do we know when the fix for the message "error: XDG_RUNTIME_DIR is invalid or not set in the environment." will be released please? Thank you |
Do you have a shareable example where this message always occurs? The difficulty so far has been to reproduce the error. In the instances that I have seen, the issue is sporadic only. There hasn't been any root cause identified, and without a root cause there is no guarantee that the error message will stop, although there is some hope that it might go away with the future Cypress 14 release. (See also #29554 (comment) response from the Cypress.io team.) As an example of the sporadic nature: In the cypress-docker-images repo, the pipeline for
then with no changes, re-running the workflow:
|
Current behavior
Running Cypress default scaffolded tests on Debian 12.x in a headless environment (server with no GPU) may result in the error:
It may occur with Electron, Chrome, Edge for Firefox browsers and may be associated with a test failure or not. For example
Desired behavior
Cypress should run the default scaffolded tests reliably under Debian 12.5 and later on a server with no GPU.
The issue is not reproducible on Debian 12.5 where a GPU (graphics processing unit) is installed.
Test code to reproduce
This is a sporadic error, not a hard error.
Check tests on https://app.circleci.com/pipelines/github/cypress-io/cypress-docker-images?branch=master for examples
Last example Dec 6, 2024.
Cypress Version
First reported on
13.10.0
Also reproducible on
13.16.1
Node version
v20.13.1
v20.17.0
Operating System
Debian
12.5
12.7
&12.8
Debug Logs
See https://app.circleci.com/pipelines/github/cypress-io/cypress-docker-images
Other
The text was updated successfully, but these errors were encountered: