-
Notifications
You must be signed in to change notification settings - Fork 170
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
SQLAlchemy related traceback #31
Comments
Hi, Same problem scannig 150ips, on Kali 2020.4 fullupdated, either using Legion(kali version 0.3.6) or version from git 0.3.7. Even importing a scan done with legion fails. (python3:84709): Gtk-WARNING **: 16:23:25.008: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file “/root/.local/share/recently-used.xbel.0FHOQ0”: Too many open files The above exception was the direct cause of the following exception: Traceback (most recent call last): |
@re8el Can you check your limits? That "Too many open files" is a strong indication the ulimits are being reached for the user. |
Hi @sscottgvit , how can i check that? |
Hi @sscottgvit more details... opt/legion master !36 > pwd root@k20 18:19:03 | | | / | / _ | \ | | {"time": "2020-09-09 18:20:53,495", "name": "Creating temporary project at application start...", "level": "INFO", "data": {"logger_name": "legion-startup"}, "context": {"module": "legion", "filename": "legion.py", "line": 106}} "INFO", "data": {"logger_name": "legion"}, "context": {"module": "auxiliary", "filename": "auxiliary.py", "line": 115}} The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Another run... /opt/legion master !36 > ./startLegion.sh root@k20 18:35:10 | | | / | / _ | \ | | {"time": "2020-09-09 18:36:15,131", "name": "Creating temporary project at application start...", "level": "INFO", "data": {"logger_name": "legion-startup"}, "context": {"module": "legion", "filename": "legion.py", "line": 106}} (python3:86149): Gtk-WARNING **: 18:36:29.341: Attempting to store changes into '/root/.local/share/recently-used.xbel', but failed: Failed to create file “/root/.local/share/recently-used.xbel.PE5SQ0”: Too many open files The above exception was the direct cause of the following exception: Traceback (most recent call last): |
@re8el I'm seeing 'Too many open files'. I don't recognize your console line. What shell are you running? What user are you running as? Also can you run each of the following and let me know the output?: |
Hi @sscottgvit Im using costum ZSH with root on Kali 2020.4 fullupdated ~ > cat /proc/sys/fs/file-max | awk ' { print $1 } ' root@k20 19:13:24 |
@re8el You're definitely hitting limits. Try updating your user limits to something a bit higher. https://tecadmin.net/increase-open-files-limit-ubuntu/ |
@sscottgvit ulimits increased problem solved! thks! |
@re8el No problem. Have a good one. |
This occurred on 1/22/19 when scanning around 20 hosts which were added by host name:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 355, in connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 743, in _checkout
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 484, in checkout
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/impl.py", line 219, in _do_get
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 302, in _create_connection
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 429, in init
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 626, in __connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/strategies.py", line 106, in connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py", line 412, in connect
sqlite3.OperationalError: unable to open database file
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/legion/ui/view.py", line 1168, in updateInterface
File "/root/legion/ui/view.py", line 889, in updateHostsTableView
File "/root/legion/controller/controller.py", line 456, in getHostsFromDB
File "/root/legion/app/logic.py", line 204, in getHostsFromDB
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 2074, in execute
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 2123, in contextual_connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 2162, in _wrap_pool_connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception_noconnection
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/util/compat.py", line 248, in reraise
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 2158, in _wrap_pool_connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 355, in connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 743, in _checkout
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 484, in checkout
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/impl.py", line 219, in _do_get
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 302, in _create_connection
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 429, in init
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/pool/base.py", line 626, in __connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/strategies.py", line 106, in connect
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py", line 412, in connect
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/e3q8)
./startLegion.sh: line 23: 3776 Aborted ${PYTHON3BIN} legion.py
The text was updated successfully, but these errors were encountered: