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

Terminus is loading too many files #982

Closed
TeslaDethray opened this issue Mar 9, 2016 · 3 comments · Fixed by #988
Closed

Terminus is loading too many files #982

TeslaDethray opened this issue Mar 9, 2016 · 3 comments · Fixed by #988
Assignees

Comments

@TeslaDethray
Copy link
Contributor

[ari@ink:~/Projects ] $ vendor/bin/terminus --site=ari-usd2 --env=dev site clear-cache

Warning: file_get_contents(/Users/ari/Projects/vendor/pantheon-systems/terminus/config/constants.yml): failed to open stream: Too many open files in /Users/ari/Projects/vendor/pantheon-systems/terminus/php/Terminus/Configurator.php on line 145

Warning: Invalid argument supplied for foreach() in /Users/ari/Projects/vendor/pantheon-systems/terminus/php/Terminus/Configurator.php on line 147

Warning: include(/Users/ari/Projects/vendor/pantheon-systems/terminus/config/spec.php): failed to open stream: Too many open files in /Users/ari/Projects/vendor/pantheon-systems/terminus/php/Terminus/Configurator.php on line 24

Warning: include(): Failed opening '/Users/ari/Projects/vendor/pantheon-systems/terminus/config/spec.php' for inclusion (include_path='.:') in /Users/ari/Projects/vendor/pantheon-systems/terminus/php/Terminus/Configurator.php on line 24

Warning: Invalid argument supplied for foreach() in /Users/ari/Projects/vendor/pantheon-systems/terminus/php/Terminus/Configurator.php on line 34

Warning: Invalid argument supplied for foreach() in /Users/ari/Projects/vendor/pantheon-systems/terminus/php/Terminus/Configurator.php on line 83

Warning: fopen(php://stderr): failed to open stream: operation failed in /Users/ari/Projects/vendor/katzgrau/klogger/src/Logger.php on line 167
[2016-03-09 19:28:26] [error] The file could not be opened. Check permissions.

This should be optimized. @ari-gold can't be the only one getting the error. I can reproduce it if I use ulimit -n 233 (my usual limit is 1597).

Current workaround: ulimit -n $((2 * $(ulimit -n)))
If you get an error like
bash: ulimit: open files: cannot modify limit: Operation not permitted
Then use ulimit -n, then where 2*ulimit -n = x, ulimit -n x. Repeat until it works.

@ari-gold
Copy link
Contributor

ari-gold commented Mar 9, 2016

I downgraded to 0.10.5 for now.

curl https://github.com/pantheon-systems/terminus/releases/download/0.10.5/terminus.phar -L -o /usr/local/bin/terminus && chmod +x /usr/local/bin/terminus

@messageagency
Copy link

@ari-gold is not the only one.

I am getting the same issue on 0.10.6 with site deploy commands (maybe others, but that's the one i've tested).

no idea what my ulimit is.
downgrading to .5 fixed it for me.

@styledev
Copy link

I am getting this on stable 0.11.2 (bottled), work around above by OP works for me, still annoying.

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

Successfully merging a pull request may close this issue.

3 participants