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

System errno 28 while watching coffee files #2016

Closed
shreyas-satish opened this issue Jan 8, 2012 · 18 comments
Closed

System errno 28 while watching coffee files #2016

shreyas-satish opened this issue Jan 8, 2012 · 18 comments
Labels

Comments

@shreyas-satish
Copy link

When I run

coffee -w -c *.coffee

I get

/home/shreyas/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:227
  if (e.code !== 'ENOENT') throw e;
                                 ^
Error: watch Unknown system errno 28
    at errnoException (fs.js:605:11)
    at FSWatcher.start (fs.js:632:11)
    at Object.watch (fs.js:660:11)
    at /home/shreyas/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:232:27
    at Object.oncomplete (/home/shreyas/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:106:25)

The folder I'm running the command just has 3 coffee files. Running the command against just one file results in the same error. I did have a look at #1537 but that didn't help.

I'm running CoffeeScript - 1.2.0 & Node 0.6.1 on Linux.

UPDATE

As a temporary fix, I've patched the watch function in command.js with this - http://stackoverflow.com/questions/8119066/coffeescript-watch-switch-not-working-with-node-0-4-7 .

@michaelficarra
Copy link
Collaborator

Running the command against just one file results in the same error.

So this error occurs whenever running that command, regardless of file contents, permissions, etc?

@shreyas-satish
Copy link
Author

@michaelficarra Yes.

@michaelficarra
Copy link
Collaborator

I don't know how I'm going to be able to reproduce this. We have a lot of users watching/compiling files on Linux/Node 0.6.x without problem, myself included.

@jashkenas
Copy link
Owner

It sounds like you weren't actually using 0.6?

@shreyas-satish
Copy link
Author

I am using node 0.6! If it helps, I face this error with both node 0.6.1 & 0.6.5 and the error goes away when I apply the patch.

@jashkenas jashkenas reopened this Jan 9, 2012
@shreyas-satish
Copy link
Author

Not able to reproduce this issue in another linux machine. If nobody else is facing such a problem, there's probably something wrong with my config (But definitely not the version of node :) )

@cc-lam
Copy link

cc-lam commented Feb 6, 2012

I have the exact same problem:

When issuing command coffee --watch --compile abc.coffee, I get:

/home/ccl/.nvm/v0.6.9/lib/node_modules/coffee-script/lib/coffee-script/command.js:227
if (e.code !== 'ENOENT') throw e;
^
Error: watch Unknown system errno 28
at errnoException (fs.js:636:11)
at FSWatcher.start (fs.js:663:11)
at Object.watch (fs.js:691:11)
at /home/ccl/.nvm/v0.6.9/lib/node_modules/coffee-script/lib/coffee-script/command.js:232:27
at Object.oncomplete (/home/ccl/.nvm/v0.6.9/lib/node_modules/coffee-script/lib/coffee-script/command.js:106:25)

ubuntu 11.10 x64,
node v0.6.9
coffeescript v1.2.0

@shreyas-satish
Copy link
Author

@cc-lam Interesting. I too am using Ubuntu 11.10 x64 but I'm not facing any such problem. Is your ~/.bashrc configured correctly? Also, does the error go away when u apply the patch I've linked to above?

@cc-lam
Copy link

cc-lam commented Feb 6, 2012

@shreyas-satish Yep, the error goes away with the patch. Were you able to have watch working without the patch ?

@shreyas-satish
Copy link
Author

Yes, I don't need the patch.

On Mon, Feb 6, 2012 at 4:04 PM, cc-lam <
reply@reply.github.com

wrote:

@shreyas-satish Yep, the error goes away with the patch. Were you able to
have watch working without the patch ?


Reply to this email directly or view it on GitHub:
#2016 (comment)

@sattes-faction
Copy link

I'm having a similar problem here on Debian squeez.

I opened a new ticket as my error message is slightly different:

#2113

@jalvarezsamayoa
Copy link

Same problem here. From a fresh installation (but using zsh)

Ubuntu 11.10 x64
Node v0.7.8-pre
CoffeeScript version 1.2.0
npm 1.1.4

$ coffee-test coffee -cw .

/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:287
if (e.code !== 'ENOENT') throw e;
^
Error: watch ENOSPC
at errnoException (fs.js:723:11)
at FSWatcher.start (fs.js:750:11)
at Object.watch (fs.js:778:11)
at /usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:256:27
at Object.oncomplete (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/command.js:85:25)

@tzbob
Copy link

tzbob commented Apr 26, 2012

A possible issue could be a that you've capped the max of inotify. This commonly happens with large Dropbox folders. It fixed the problem for me.

http://forums.dropbox.com/topic.php?id=19978

@luiselizondo
Copy link

I got here because I got an error with nodemon. Who knew that the problem was caused because I was running the project inside my Dropbox directory.

running
echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p /etc/sysctl.conf

solved the problem for me, thanks to Tzbob

@milushov
Copy link

@lelizondo thank you! and thanks to Tzbob ofcourse

@rbeen
Copy link

rbeen commented Jan 29, 2013

Awesome, lelizondo's fix fixed this for me!

Linux 3.2.0-29-generic x86_64
Ubuntu 12.04.1 LTS

@dancar
Copy link

dancar commented Mar 9, 2013

@lelizondo @tzbob Thanks guys, solved here too 👍

@helmuthdu
Copy link

@lelizondo You are my hero! 👍
For any reason this also fix my problem with vim + powerline...

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

No branches or pull requests