Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

after update from 4.0.3 to 5.0.4: No space left on device #72

Closed
chabapok opened this issue Jun 25, 2017 · 11 comments
Closed

after update from 4.0.3 to 5.0.4: No space left on device #72

chabapok opened this issue Jun 25, 2017 · 11 comments

Comments

@chabapok
Copy link

chabapok commented Jun 25, 2017

OS: ubuntu x64 14.04

Аfter update from 4.0.3 to 5.0.4:

$ cargo watch
thread 'main' panicked at 'unable to create watcher: Io(Error { repr: Os { code: 28, message: "No space left on device" } })', /checkout/src/libcore/result.rs:859
note: Run with RUST_BACKTRACE=1 for a backtrace

And with --poll key: cargo watch --poll run ok and works, but consume 100% of cpu.

4.0.3 works ok.

@hcpl
Copy link
Contributor

hcpl commented Jun 25, 2017

cargo-watch switched to wrapping watchexec in 5.0.0. Not an owner, but I doubt the problem lies in cargo-watch itself now.

Does watchexec work for you?

P.S. You can also use cargo watch --debug and see if that can help.

P.P.S. Slightly modifying the line of cargo watch --debug beginning with *** Assembled command and passing that to watchexec will do the same as cargo watch.

@chabapok
Copy link
Author

The problem is in watchexec (there is 89G free on device):

$ watchexec -- ls -la
thread 'main' panicked at 'unable to create watcher: Io(Error { repr: Os { code: 28, message: "No space left on device" } })', /checkout/src/libcore/result.rs:859
note: Run with RUST_BACKTRACE=1 for a backtrace.
Aborted (core dumped)

@hcpl
Copy link
Contributor

hcpl commented Jun 25, 2017

Try to file this issue to https://github.com/mattgreen/watchexec then.

@chabapok
Copy link
Author

Ok

@chabapok
Copy link
Author

cargo watch --poll --debug show:

... poll: true, poll_interval: 1

As far as i understand, watcher consume 100% CPU, because default poll intervel ==1, but 500...2000 is better for default.

@passcod
Copy link
Member

passcod commented Jun 25, 2017

Hmm, must have misread the docs when I implemented that, I meant 1 second, not millisecond.

@passcod
Copy link
Member

passcod commented Jun 25, 2017

Also the "no space left on device" is probably a watcher limit.

@passcod
Copy link
Member

passcod commented Jun 25, 2017

(I wrote both cargo watch and notify, the library watchexec uses. This is a fairly frequent error.)

passcod added a commit that referenced this issue Jun 25, 2017
passcod added a commit that referenced this issue Jun 25, 2017
@passcod
Copy link
Member

passcod commented Jun 25, 2017

Both fixed/documented in 5.0.5.

Thanks for helping @hcpl!

@passcod passcod closed this as completed Jun 25, 2017
@hcpl
Copy link
Contributor

hcpl commented Jun 25, 2017

@passcod no problem!

And there are two things I'd like to mention:

@passcod
Copy link
Member

passcod commented Jun 25, 2017

I'll get onto that, thanks for the feedback :)

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

No branches or pull requests

3 participants