Does anyone know how to deal with this situation? I'm running into this Error 24 Too many open files error message that was discussed at least a couple of times here. The ticket is this:
78 Framework IOError: [Errno 24] Too many open files: 'C:\\web2py\\applications\\YAKiToMe\\controllers/api.py' <http://127.0.0.1:8000/admin/errors/YAKiToMe#>+ details <http://127.0.0.1:8000/admin/ticket/YAKiToMe/103.248.248.246.2015-11-15.02-02-55.7cd626ee-294d-44a2-bf97-dc51490079a2> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Traceback (most recent call last): File "C:\web2py\gluon\main.py", line 446, in wsgibase serve_controller(request, response, session) File "C:\web2py\gluon\main.py", line 190, in serve_controller page = run_controller_in(request.controller, request.function, environment) File "C:\web2py\gluon\compileapp.py", line 623, in run_controller_in code = read_file(filename) File "C:\web2py\gluon\fileutils.py", line 100, in read_file f = open(filename, mode) IOError: [Errno 24] Too many open files: 'C:\\web2py\\applications\\myapp\\controllers/api.py' I'm also getting this ticket that indicates too many connections to postgres: 66 0_0_globals.py <http://127.0.0.1:8000/admin/errors/YAKiToMe#>+ details <http://127.0.0.1:8000/admin/ticket/YAKiToMe/103.248.248.246.2015-11-15.02-05-12.161003cc-5b59-448c-b761-32c8f1c2a694> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 224, in restricted exec ccode in environment File "C:\web2py\applications\myapp\models\0_0_globals.py", line 29, in <module> migrate=False, # enable in production for increased performance File "C:\web2py\gluon\dal\base.py", line 432, in __init__ raise RuntimeError("Failure to connect, tried %d times:\n%s" % (attempts, tb)) RuntimeError: Failure to connect, tried 10 times: Traceback (most recent call last): File "C:\web2py\gluon\dal\base.py", line 410, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File "C:\web2py\gluon\dal\adapters\base.py", line 47, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File "C:\web2py\gluon\dal\adapters\postgres.py", line 144, in __init__ if do_connect: self.reconnect() File "C:\web2py\gluon\dal\connection.py", line 113, in reconnect self.connection = f() File "C:\web2py\gluon\dal\adapters\postgres.py", line 142, in connector return self.driver.connect(msg,**driver_args) File "C:\Program Files (x86)\Python27\lib\site-packages\psycopg2\__init__.py", line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) OperationalError: FATAL: sorry, too many clients already -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.