Skip to content
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

Failed to connect to the bus #27907

Closed
EtienneBruines opened this issue Sep 26, 2023 · 9 comments
Closed

Failed to connect to the bus #27907

EtienneBruines opened this issue Sep 26, 2023 · 9 comments
Labels
stale no activity on this issue for a long period

Comments

@EtienneBruines
Copy link

EtienneBruines commented Sep 26, 2023

Current behavior

Cypress failed to start Chrome

Desired behavior

Cypress should start

Test code to reproduce

Any code. Error pops up regularly, regardless of the code.

Cypress Version

12.17.2 till 13.2.0

Node version

20.6.1 (as provided in the docker image)

Operating System

Debian 11.7

Debug Logs

[STARTED] Task without title.
[FAILED] Cypress failed to start.
[FAILED] 
[FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] Please refer to the error below for more details.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] [982:0926/135153.247995:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux-x64 (Debian - 11.7)
[FAILED] Cypress Version: 13.2.0
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
[982:0926/135153.247995:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
----------
Platform: linux-x64 (Debian - 11.7)
Cypress Version: 13.2.0

Other

Running the docker image cypress/browsers:latest at version sha256:cd909915e1a0aa24dbd3eaf95feb2a7be6cf9961fa425ffa06cd5a44d211451c

Using GitLab CI pipelines with docker 24.0.5

@EtienneBruines
Copy link
Author

Sometimes it also starts with this:

[STARTED] Task without title.
[SUCCESS] Task without title.
The Test Runner unexpectedly exited via a exit event with signal SIGTRAP
Please search Cypress documentation for possible solutions:
https://on.cypress.io/
Check if there is a GitHub issue describing this crash:
https://github.com/cypress-io/cypress/issues
Consider opening a new issue.
----------
Platform: linux-x64 (Debian - 11.7)
Cypress Version: 13.2.0

And then exits. This might be completely unrelated, but wanted to mention it just in case.

@EtienneBruines
Copy link
Author

More related debug logs:

[STARTED] Task without title.
[FAILED] Cypress failed to start.
[FAILED] 
[FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
[FAILED] 
[FAILED] Please refer to the error below for more details.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] [982:0926/135925.583538:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[FAILED] [982:0926/135926.406664:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[FAILED] [982:0926/135926.406740:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[FAILED] [982:0926/135926.408757:ERROR:bus.cc(399)] Failed to connect to the bus: Address does not contain a colon
[FAILED] [982:0926/135926.408814:ERROR:bus.cc(399)] Failed to connect to the bus: Address does not contain a colon
[FAILED] [982:0926/135926.424313:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[FAILED] 
[FAILED] DevTools listening on ws://127.0.0.1:44445/devtools/browser/85f2e184-5f0e-40d6-9ce0-e9d19ea7e488
[FAILED] [1157:0926/135926.437341:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[FAILED] [1157:0926/135926.442546:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[FAILED] 
[FAILED] ----------
[FAILED] 
[FAILED] Platform: linux-x64 (Debian - 11.7)
[FAILED] Cypress Version: 13.2.0
Cypress failed to start.
This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
Please refer to the error below for more details.
----------
[982:0926/135925.583538:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[982:0926/135926.406664:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[982:0926/135926.406740:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[982:0926/135926.408757:ERROR:bus.cc(399)] Failed to connect to the bus: Address does not contain a colon
[982:0926/135926.408814:ERROR:bus.cc(399)] Failed to connect to the bus: Address does not contain a colon
[982:0926/135926.424313:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
DevTools listening on ws://127.0.0.1:44445/devtools/browser/85f2e184-5f0e-40d6-9ce0-e9d19ea7e[488](https://gitlab.q-mex.net/qmex/q-identity/-/jobs/66571#L488)
[1157:0926/135926.437341:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[1157:0926/135926.442546:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
----------
Platform: linux-x64 (Debian - 11.7)
Cypress Version: 13.2.0

@jennifer-shehane
Copy link
Member

@EtienneBruines Have you ensured the required dependencies are installed for Debian as mentioned in the error message? https://on.cypress.io/required-dependencies

@EtienneBruines
Copy link
Author

@jennifer-shehane Shouldn't/wouldn't the Cypress-provided docker image include those already?

Docker image with all operating system dependencies and some pre-installed browsers, but NOT Cypress itself.
Source: https://hub.docker.com/r/cypress/browsers

@spe888
Copy link

spe888 commented Nov 23, 2023

Same problem here. We have all dependencies installed (as mentioned in https://on.cypress.io/required-dependencies). We currently have this in a gitlab pipeline running. But the error also occurs when trying to start it directly, even in privileged mode:
sudo docker run --privileged --rm -v $PWD:/e2e -w /e2e cypress/included:latest cypress verify

docker --version

Docker version 23.0.1, build a5ee5b1

lsb_release -a

OS Info: 
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal

uname -a

Linux nlnzglr02 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 22, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
@sergiubologa
Copy link

sergiubologa commented Nov 19, 2024

I'm using cypress/factory:4.2.1 base image and the issue still reproduces for me in Azure, even if the docs say that

See below under Docker Prerequisites for information on Cypress Docker images. These already include the necessary dependencies.

Here are my logs:

[2024-11-19 00:53:37.465] [INF] > [email protected] test-cy
[2024-11-19 00:53:37.465] [INF] > cypress run --browser chrome --env=ACCOUNT=bbdedec --reporter=junit --reporter-options=mochaFile=/app/testresults/junit.athena.xml
[2024-11-19 00:54:01.455] [INF] [STARTED] Task without title.
[2024-11-19 00:54:36.496] [ERR] [FAILED] Cypress verification timed out.
[2024-11-19 00:54:36.496] [ERR] [FAILED] 
[2024-11-19 00:54:36.496] [ERR] [FAILED] This command failed with the following output:
[2024-11-19 00:54:36.496] [ERR] [FAILED] 
[2024-11-19 00:54:36.496] [ERR] [FAILED] /root/.cache/Cypress/13.13.3/Cypress/Cypress --no-sandbox --smoke-test --ping=584
[2024-11-19 00:54:36.496] [ERR] [FAILED] 
[2024-11-19 00:54:36.496] [ERR] [FAILED] ----------
[2024-11-19 00:54:36.496] [ERR] [FAILED] 
[2024-11-19 00:54:36.496] [ERR] [FAILED] [37:1119/005425.235261:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2024-11-19 00:54:36.496] [ERR] [FAILED] 
[2024-11-19 00:54:36.496] [ERR] [FAILED] ----------
[2024-11-19 00:54:36.496] [ERR] [FAILED] 
[2024-11-19 00:54:36.496] [ERR] [FAILED] Platform: linux-x64 (Debian - 12)
[2024-11-19 00:54:36.496] [ERR] [FAILED] Cypress Version: 13.13.3
[2024-11-19 00:54:36.497] [INF] Cypress verification timed out.
[2024-11-19 00:54:36.497] [INF] This command failed with the following output:
[2024-11-19 00:54:36.497] [INF] /root/.cache/Cypress/13.13.3/Cypress/Cypress --no-sandbox --smoke-test --ping=584
[2024-11-19 00:54:36.497] [INF] ----------
[2024-11-19 00:54:36.497] [INF] [37:1119/005425.235261:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2024-11-19 00:54:36.497] [INF] ----------
[2024-11-19 00:54:36.497] [INF] Platform: linux-x64 (Debian - 12)
[2024-11-19 00:54:36.497] [INF] Cypress Version: 13.13.3

@sergiubologa
Copy link

sergiubologa commented Nov 19, 2024

Also, it seems like a duplicate issue with #4925. That's closed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

5 participants