-
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
Failed to connect to the bus - Cypress failed to start #30529
Comments
What host environment are you running in? Is this a local environment or a CI environment? How are you running the Cypress Docker image |
|
In GitHub Actions, the recommended way to run a container:
image: cypress/included:13.15.0
options: --user 1001 See for instance https://docs.cypress.io/app/continuous-integration/github-actions#Testing-with-Cypress-Docker-Images |
See also the refreshed documentation |
So as per current situation If i execute with root user it executed tests and works fine
|
If you use The |
Here is the piece of workflow where i am executing tests
FROM cypress/included:latest RUN mkdir -p /var/cache/fontconfig && chmod -R 777 /var/cache/fontconfig WORKDIR /app COPY package.json package-lock.json /app/ COPY . /app RUN npm i RUN whoami ENV appEnv="qa" ENTRYPOINT ["npx", "cypress", "run"] |
At this stage I don't see any sign that there is a bug in Cypress or the Cypress Docker image that you are using. If you think you have identified a bug in a Cypress Docker image or a mistake in the documentation, you are welcome to file an issue in the Cypress Docker repository. The primary purpose of the issue list here is to report bugs or request feature enhancements for the core Cypress software. Since you are not using the recommended way to run Cypress Docker images in GitHub Actions - calling Note: for better readability of code in GitHub issues, which use Markdown for formatting, you can use fenced code blocks with triple backticks. See the GitHub documentation Creating and highlighting code blocks. The example workflow on https://github.com/cypress-io/cypress-docker-images/blob/master/.github/workflows/example-cypress-github-action.yml shows how a name: Example Cypress GitHub Actions
# This example workflow demonstrates
# GitHub Actions (https://docs.github.com/en/actions) using the
# Cypress JavaScript GitHub Action (https://github.com/cypress-io/github-action) with
# Cypress Docker images (https://github.com/cypress-io/cypress-docker-images)
# The workflow is triggered manually on demand, see
# https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow
# To automatically trigger a workflow, for instance on a push event, see
# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow
on: workflow_dispatch
jobs:
docker-included:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
browser: [chrome, edge, firefox]
# from https://hub.docker.com/r/cypress/included/tags
container:
# Examples use latest tag
# For production use, to avoid the risk of breaking changes,
# choose a fixed version tag from
# https://hub.docker.com/r/cypress/included/tags
image: cypress/included:latest
options: --user 1001
steps:
- uses: actions/checkout@v4
- uses: cypress-io/github-action@v6
with:
# Using Cypress project with no Cypress version pre-installed
working-directory: examples/basic-mini
browser: ${{ matrix.browser }}
env:
# Cypress binary is already installed in cypress/included image
# Use CYPRESS_INSTALL_BINARY=0 to prevent unneeded caching
# which can cause errors with non-root user
# see https://on.cypress.io/guides/references/advanced-installation#Skipping-installation
CYPRESS_INSTALL_BINARY: 0 |
|
Current behavior
Desired behavior
Test should be executed
Test code to reproduce
Using
Cypress Docker included image version 13.15.0
Cypress Version
13.5.0
Node version
22.6
Operating System
Debian 12.7
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: