Hello guys,
I am using for first time your great framework. I am trying to build and run my application on an android emulator on ubuntu machine, but i am still getting this error after each execute of tns run android
Error: watch /home/geotzinos/projects/testapp/app ENOSPC
at exports._errnoException (util.js:1018:11)
at FSWatcher.start (fs.js:1443:19)
at Object.fs.watch (fs.js:1470:11)
at createFsWatchInstance (/home/geotzinos/.nvm/versions/node/v6.10.3/lib/node_modules/nativescript/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/geotzinos/.nvm/versions/node/v6.10.3/lib/node_modules/nativescript/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/geotzinos/.nvm/versions/node/v6.10.3/lib/node_modules/nativescript/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleDir (/home/geotzinos/.nvm/versions/node/v6.10.3/lib/node_modules/nativescript/node_modules/chokidar/lib/nodefs-handler.js:407:19)
at FSWatcher.<anonymous> (/home/geotzinos/.nvm/versions/node/v6.10.3/lib/node_modules/nativescript/node_modules/chokidar/lib/nodefs-handler.js:455:19)
at FSWatcher.<anonymous> (/home/geotzinos/.nvm/versions/node/v6.10.3/lib/node_modules/nativescript/node_modules/chokidar/lib/nodefs-handler.js:460:16)
at FSReqWrap.oncomplete (fs.js:123:15)
I am wondering why it runs without problems when i use your deprecated tns emulate android.
@gtzinos Thank you for your interest in NativeScript!
ENOSPC node error usually means that there is no space on the drive, so make sure that you have enough space in the working directory
Thank you for your information. I am currently using an ssd which is formatted before 1-2 days, so i mean that it has more space. Maybe a problem with android emulator space, i will check it now.
Nothing. My app can start but in the console i am still getting the same error message.
@gtzinos there are several possible reasons for this error:
$ df -h (the used space should not be at 100%)$ df -i -hcat /proc/sys/fs/inotify/max_user_watches
The limit can be expanded with the following command:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Great, that was a good point to start searching for this issue. The problem was that my machine had some smaller configuration than your requirements, i follow the istructions of the second answer (https://stackoverflow.com/questions/22475849/node-js-error-enospc) :
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Thank you very much for your help, as i see we found the same solution.
Most helpful comment
@gtzinos there are several possible reasons for this error:
$ df -h(the used space should not be at 100%)$ df -i -hThe limit can be expanded with the following command: