MobileChromeApps / chrome-app-developer-tool

Mirror of Apache Cordova app harness
Other
202 stars 33 forks source link

Ulimit problem with cca push --watch #29

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi all,

I have the following problem. I try to watch changes in files and invoke: cca push --watch --target=my_ip_here

However, then I receive following errors:

cca v0.3.0 /bin/bash: line 0: ulimit: open files: cannot modify limit: Invalid argument /bin/bash: line 0: ulimit: open files: cannot modify limit: Invalid argument /bin/bash: line 0: ulimit: open files: cannot modify limit: Invalid argument ....

and so on.. and so on..

I changed my ulimit concerning opened files for any high value, however it still doesn't work. Do you know maybe what can be a problem?

Thanks for any help :)

ghost commented 10 years ago

Sorry, I set ulimit for a really big value and now it works, for instance: ulimit -n 10000

agrieve commented 10 years ago

Here's where we try to fix the ulimit automatically: https://github.com/MobileChromeApps/mobile-chrome-apps/blob/master/src/push-to-harness.js#L182

What OS & shell were you using?

ghost commented 10 years ago

I use: OS: Linux Mint 17 Qiana Cinammon Shell: bash

I cannot change ulimit by: ulimit -S -n 10240 or: ulimit -Sn 10240

But I can do that by: ulimit -S 10240 or: ulimit -n 10240

Hope that helps.

agrieve commented 10 years ago

Definitely helps! Looks like -S isn't needed.