Comments (4)
I was able to bypass this issue by adding nonPersistant to the app.json
{
"expo": {
"sdkVersion": "20.0.0",
"packagerOpts": {
"nonPersistent": "--nonPersistent"
}
}
}
from appr.
For future googlers who came upon this problem... We tried the nonPersistent
configuration options (both "nonPersistent": "--nonPersistent" and "nonPersistent": true) in
packagerOpts` but none of them worked.
Try this: echo 'fs.inotify.max_user_watches=524288' | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Long version
We tried the nonPersistent
configuration options in packagerOpts
but none of them worked.
The ENOSPC
error code was critical in solving the problem. It was fixed with this line:
echo 'fs.inotify.max_user_watches=524288' | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
inotify
is the system that watchman
(a file watcher made by Facebook) uses, and watchman
is used by Expo. It appears for Travis we would hit the limit of watches and report we had no more space, but actually we just ran out of file descriptors. The line above increases that amount. More here. You could also probably try installing watchman
, but that seemed pretty difficult to do on Ubuntu and the above command worked for us so whatever.
In our particular case, we were using default Travis builds, which it turns out runs on Ubuntu 14. It didn't particularly like the command above, so we switched to using Ubuntu 16 (Xenial) and had to enable sudo
mode. So, for Travis folks, here's the salient details in our .travis.yml
file:
dist: xenial
# We needed to specify PostgreSQL 10 once we switched to Ubuntu 16
# you might need this as well
addons:
postgresql: "10"
# then add the script however you want
We also noticed that it would choke when we used the &&
with the command, so we split it into two separate operations:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
Hope this is helpful to other people!
from appr.
Thank you so much for sharing.
from appr.
Should this be included in the project readme for setup? I can confirm that on a new CRNA project, setup fails without this option in app.json
(with Travis CI atleast).
from appr.
Related Issues (20)
- Travis instructions for "only PRs" HOT 1
- "Loading dependency graph, done." HOT 1
- Error Pushing Packages to Expo HOT 5
- App for gitlab CI HOT 1
- Pushing to Expo for master branch HOT 2
- Publishing with appr ends with "too long with no output" HOT 3
- Change exp to a peerDependency HOT 1
- Does not work for react-native HOT 1
- Use Expo release channels instead of package namespacing HOT 1
- Make GitHub comments less spammy HOT 4
- Missing configuration key error HOT 3
- Allow setting --max-workers / other publish options HOT 5
- Circle CI 2 doc HOT 1
- Regexp replace is incorrect.
- Adding the send link option to the PR
- Adding expo-cli breaks appr HOT 1
- `yarn appr` returns "Error starting tunnel"
- Don't work if set `slug` in app.json HOT 4
- Heroku support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appr.