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

Can’t use default Firefox on latest Ubuntu #19793

Closed
andrewdotn opened this issue Jan 20, 2022 · 4 comments · Fixed by #21328
Closed

Can’t use default Firefox on latest Ubuntu #19793

andrewdotn opened this issue Jan 20, 2022 · 4 comments · Fixed by #21328

Comments

@andrewdotn
Copy link

andrewdotn commented Jan 20, 2022

Current behavior

When trying to use Firefox from Cypress on a fresh install of Ubuntu 21.10, it just hangs with
“Firefox is already running, but is not responding.”

Screenshot

Desired behavior

Cypress should open Firefox.

Test code to reproduce

cypress open

Cypress Version

9.3.1

Other

Ubuntu 21.10 has moved Firefox to a snap.

The snap is configured to confine Firefox using the home interface, which allows “access to non-hidden files.” The firefox profile Cypress creates at ~/.config/Cypress/cy/production/browsers/firefox-stable/interactive is considered hidden because of the . in .config. Firefox can’t access the profile folder and gets confused and says it is already running.

A similar issue was already fixed for Chromium in #7039.

As a temporary workaround, if I run, XDG_CONFIG_HOME=$HOME/cypress cypress open so that Cypress creates and uses a firefox profile in a non-hidden directory, then Firefox opens and cypress tests run successfully.

@larryh
Copy link

larryh commented Apr 20, 2022

Hi,

The same thing happened to me. I was always able to run Cypress tests in "interactive mode" using Firefox (which is also my Development browser) and then all of a sudden I couldn't. Took me awhile to figure out why, and doing so allowed me to finally supply the correct search string/terms to Google... where this Issue came in first in the search results.

Anyway, just confirming that this is still an issue.

Thanks for all of the work that you do!

-- Larry

P.S. Cypress 9.5.4 ; Firefox 99.0.1 ; Ubuntu 21.10

@flotwig flotwig self-assigned this May 3, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: backlog labels May 3, 2022
@flotwig
Copy link
Contributor

flotwig commented May 3, 2022

Full error text for SEO:

Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.

Started running into this myself after upgrading to Kubuntu 22.04. Sigh. $#%! snaps. I opened a PR to fix this: #21328 It was a little tricky to detect if FF is installed as a Snap but this appears to work well.

@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels May 5, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 5, 2022

The code for this is done in cypress-io/cypress#21328, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 9, 2022

Released in 9.6.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v9.6.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants