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

Unable to open cypress UI #7243

Closed
thecodejack opened this issue May 6, 2020 · 4 comments
Closed

Unable to open cypress UI #7243

thecodejack opened this issue May 6, 2020 · 4 comments

Comments

@thecodejack
Copy link

Current behavior:

We are having a VM machine which multiple users connect. Multiple users also use cypress. Now problem is when I run cypress open. Cypress is trying to access/create folder named /tmp/cypress and place a lock file there. But if another user runs same command after folder is created, it throws following error

[OperationalError: EACCES: permission denied, open '/tmp/cypress/4fa88ed0720f436f49e09ac33f63413a.lock'

] {  cause: [Error: EACCES: permission denied, open '/tmp/cypress/4fa88ed0720f436f49e09ac33f63413a.lock'    ] {
    errno: -13,
    code: 'EACCES',
    syscall: 'open',
    path: '/tmp/cypress/4fa88ed0720f436f49e09ac33f63413a.lock'
  },
  isOperational: true,
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/tmp/cypress/4fa88ed0720f436f49e09ac33f63413a.lock'
}
Error: EACCES: permission denied, open '/tmp/cypress/4fa88ed0720f436f49e09ac33f63413a.lock'

Desired behavior:

A way where this error doesn't occur. Possible solutions that come to my mind are

  • config
  • automatically try creating another folder proably /tmp/cypress01
  • create cypress folder with access to all groups and users of the machine.
@jennifer-shehane
Copy link
Member

Cypress requires root access, you'll need to install it accordingly and make sure you have the proper permissions set. See #1281

@Saibamen
Copy link
Contributor

Saibamen commented May 7, 2020

@jennifer-shehane So maybe we need to add check if we have root access and throw better error message?

@thecodejack
Copy link
Author

@jennifer-shehane

this seems to be bit different to what discussion is happening in #1281 . Probably root access will helps but if cypress can create folder and set permissions right in /tmp/cypress, this can be resolved easily.

I think you should add also root access issue to trade-offs if can't be fixed. This is kind of a blocker that can make developers/companies rethink about cypress before committing.

@jennifer-shehane
Copy link
Member

Some of this will be addressed in #7126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants