Hi Team, I am trying to setup manually on my mac 10.15 using mariadb 10.5.5 and keep getting this error. What is the issue?
bench new-site testing.erp
MySQL root password:
Installing frappe...
Updating DocTypes for frappe : [=================================== ] 87%Traceback (most recent call last):
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/utils/bench_helper.py", line 99, in <module>
main()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/commands/site.py", line 36, in new_site
_new_site(db_name, site, mariadb_root_username=mariadb_root_username,
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/commands/site.py", line 86, in _new_site
_install_app(app, verbose=verbose, set_as_patched=not source_sql)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/installer.py", line 78, in install_app
sync_for(name, force=True, sync_everything=True, verbose=verbose, reset_permissions=True)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/sync.py", line 69, in sync_for
import_file_by_path(doc_path, force=force, ignore_version=True,
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/modules/import_file.py", line 69, in import_file_by_path
import_doc(doc, force=force, data_import=data_import, pre_process=pre_process,
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/modules/import_file.py", line 143, in import_doc
doc.insert()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/document.py", line 268, in insert
self.run_post_save_methods()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/document.py", line 964, in run_post_save_methods
self.run_method("on_update")
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/document.py", line 831, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/document.py", line 1116, in composer
return composed(self, method, *args, **kwargs)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/document.py", line 1099, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/model/document.py", line 825, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 282, in on_update
make_module_and_roles(self)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1105, in make_module_and_roles
if ("tabModule Def" in frappe.db.get_tables()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/database/database.py", line 793, in get_tables
table_rows = self.sql("""
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/apps/frappe/frappe/database/database.py", line 153, in sql
self._cursor.execute(query)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/connections.py", line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/connections.py", line 732, in _read_query_result
result.read()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/connections.py", line 1075, in read
first_packet = self.connection._read_packet()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/connections.py", line 684, in _read_packet
packet.check_error()
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/Users/rahul/Documents/project-mamba/reserch/testing-erpnext/env/lib/python3.8/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1018, 'Can\'t read dir of \'.\' (errno: 24 "Too many open files")')