Comments (3)
Also found the following today before the broken pipe error:
File "/user1/telnet-iot-honeypot/backend/db.py", line 25, in db_wrapper
return func(*args, **kwargs)
File "/user1/telnet-iot-honeypot/backend/clientcontroller.py", line 245, in put_session
self.session.flush() # to get id
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/scoping.py", line 162, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2451, in flush
self._flush(objects)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2589, in _flush
transaction.rollback(_capture_exception=True)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 68, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 2549, in _flush
flush_context.execute()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute
rec.execute(self)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 589, in execute
uow,
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 245, in save_obj
insert,
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 1120, in _emit_insert_statements
statement, params
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 988, in execute
return meth(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
distilled_params,
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
e, statement, parameters, cursor, context
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
util.raise_from_cause(sqlalchemy_exception, exc_info)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 552, in do_execute
cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) database is locked
[SQL: INSERT INTO conns (ip, date, user, pass, connhash, text_combined, asn, backend_user_id, ipblock, country, city, lon, lat, network) VALUES (?, ?, ?, ?, ? , ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: (u'185.107.80.7', 1565278873, u'user1', u'klv123', '00cc1f053cb3020f1bc7020fc880020f1d29020f5d0f020ffdc3020f079e020fd135020f0162020fab57020f30de02 0f810a020fc52b020f85cd3d1115d2cd1bcdf561cd38aef5cd11cd4acd3b965e5d06861ad1a6cdcd11cd4af33b965e5d06861ad1a68acd11cd0bcde1cd11cd8bf9953b3df5cd38aef5', '[{"data" : " # ", "ts": 0.802, "in": false}, {"data": "\n", "ts": 0.802, "in": true}, {"data": " # ", "ts": 0.802, "in": false}, {"data": "enable\n" ... (13043 chara cters truncated) ... ctory\n", "ts": 17.681, "in": false}, {"data": "lizrd: applet not found\n", "ts": 17.681, "in": false}, {"data": " # ", "ts": 17.681, " in": false}]', 43350, 1, None, 'NL', 'Unknown', 0.0, 0.0, None)]
(Background on this error at: http://sqlalche.me/e/e3q8)
from telnet-iot-honeypot.
This is pointing to a database problem. I'm closing this ticket and will reopen if needed. I created a new database and have not seen the issue since.
from telnet-iot-honeypot.
This is a problem with (how i use) sqlalchemy. It seems that DB queries sometimes fail or the DB connection stales which causes the whole backend to just lock up entirely. I tried some things like changing the allowed number of connection to DB and adding commit() and close() statements everywhere but it doesn't seem to help much. You can try to use MySQL, but similar issues tend to happen there :/
from telnet-iot-honeypot.
Related Issues (20)
- Web-UI not showing data HOT 5
- Could not parse HOT 5
- Vagrant 'gurumeditation' state HOT 1
- Administration Area: Bad credentials HOT 2
- UnboundLocalError: local variable '_BACKEND' referenced before assignment HOT 2
- admin area isnt working with login HOT 4
- No command get reply on default install HOT 2
- Problem with database HOT 3
- Backend upload failed HOT 2
- All backend pages return a 404 HOT 4
- No data in web interface after installing Apache HOT 2
- Listen on multiple ports HOT 2
- Get logs HOT 1
- Connect it to internet ? HOT 1
- Demonizing backend.py and honeypot.py HOT 1
- ImportError: cannot import name JSONDecodeError HOT 1
- Python3 support HOT 2
- The docker image isn't working (anymore?) HOT 2
- Not able to populate connections on database HOT 8
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 telnet-iot-honeypot.