error running cypress open
See original GitHub issueOn a fresh install of cypress through npm install cypress
, and fresh install of Ubuntu, attempting to launch causes an error after the browser opens.
Another ticket - https://github.com/cypress-io/cypress/issues/842 - that was previously open mentioned that my tmp dir may be full. But, https://ipfs.io/ipfs/QmZsZxNnBXA3Qpvx1z1Q1fgWfb9J5eQajVLkgfybsuwt2X
Filesystem Size Used Avail Use% Mounted on
udev 5.8G 0 5.8G 0% /dev
tmpfs 1.2G 17M 1.2G 2% /run
/dev/mapper/ubuntu--vg-root 446G 15G 409G 4% /
tmpfs 5.9G 665M 5.2G 12% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 5.9G 0 5.9G 0% /sys/fs/cgroup
/dev/sda2 473M 125M 324M 28% /boot
/dev/sda1 511M 3.4M 508M 1% /boot/efi
tmpfs 1.2G 52K 1.2G 1% /run/user/1000
This is also a ls -lah
of my /tmp dir
ls /tmp -lah
total 2.1M
drwxrwxrwt 50 root root 4.0K Oct 30 19:03 .
drwxr-xr-x 24 root root 4.0K Oct 30 14:41 ..
drwx------ 2 uptown uptown 4.0K Oct 30 15:20 .com.google.Chrome.2oaeZL
drwx------ 2 uptown uptown 4.0K Oct 30 16:55 .com.google.Chrome.sJB9e3
-rw------- 1 uptown uptown 0 Oct 30 15:19 config-err-H2fXYA
-rw------- 1 uptown uptown 0 Oct 30 16:41 config-err-K6WKua
drwxrwxr-x 2 uptown uptown 4.0K Oct 30 18:56 cypress
I have also tried changing my tmp directory just to be safe and the issue still occurs.
- Operating System: Ubuntu
- Cypress Version: 1.0.3
- Browser Version: 62.0.3202.75
Is this a Feature or Bug?
Bug
Current behavior:
Fails to launch
Desired behavior:
Should launch and run tests
How to reproduce:
- npm install cypress
- node_modules/.bin/cypress open
Test code:
describe('My First Test', function() {
it('Does not do much!', function() {
expect(true).to.equal(false)
})
})
Additional Info (images, stack traces, etc)
{ Error: watch /home/uptown/Bambee/dev/cyp/package.json ENOSPC
at exports._errnoException (util.js:1026:11)
at FSWatcher.start (fs.js:1439:19)
at Object.fs.watch (fs.js:1466:11)
at createFsWatchInstance (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at /home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:123:15)
code: 'ENOSPC',
errno: 'ENOSPC',
syscall: 'watch /home/uptown/Bambee/dev/cyp/package.json',
filename: '/home/uptown/Bambee/dev/cyp/package.json' }
Error: watch /home/uptown/Bambee/dev/cyp/package.json ENOSPC
at exports._errnoException (util.js:1026:11)
at FSWatcher.start (fs.js:1439:19)
at Object.fs.watch (fs.js:1466:11)
at createFsWatchInstance (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (/home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at /home/uptown/Bambee/dev/cyp/node_modules/cypress/dist/Cypress/resources/app/packages/server/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:123:15)
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
"cypress run" fails but "cypress open" works #6697 - GitHub
In another terminal, run yarn cy:open (uses cypress open ) and choose Chrome. Run all specs and they should all pass. Issue occurs...
Read more >Troubleshooting | Cypress Documentation
Troubleshooting · Support channels · Isolate the Problem · Download specific Chrome version · Clear Cypress cache · Launching browsers · Allow the...
Read more >Getting error while executing 'cypress open' - Stack Overflow
I think this is a problem with npm on Windows that is messing with file names, because npm is trying to run the...
Read more >cypress-io/cypress - Gitter
my error message say missing script: cypress:open. Justin Dietz ... https://docs.cypress.io/guides/guides/command-line.html#How-to-run-commands. Emirhan.
Read more >Getting Error While Executing 'Cypress Open' - ADocLib
If you're not ready to integrate Percy check out our 2minute Cypress testing tutorial and example Now whenever CI runs screenshots of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Duplicate of https://github.com/cypress-io/cypress/issues/842
This is a problem on your end of things - I don’t believe there’s anything to do on Cypress’ end. Would reopen if anyone can suggest if there’s anything we could do to prevent this.
i also had this same issue on ubuntu 18.04 when i ran the
./cypress open
from node_modules/.bin folderSuprisingly, it worked when i backed up to the parent directory and ran
./node_modules/.bin/cypress open