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

Errors trying to use Dionaea after installing it (Ubuntu 16.04) #259

Open
alcuard86 opened this issue Jul 20, 2019 · 2 comments
Open

Errors trying to use Dionaea after installing it (Ubuntu 16.04) #259

alcuard86 opened this issue Jul 20, 2019 · 2 comments

Comments

@alcuard86
Copy link

I have followed the installation instructions for the Ubuntu 16.04 (https://dionaea.readthedocs.io/en/latest/installation.html) . My platform is a Lubuntu based on Ubuntu 16.04 distribution.

Some errors I get in dionaea.log are:

[20072019 09:56:22] http /dionaea/http.py:162-debug: Headers: OrderedDict([('Server', 'nginx'), ('Location', '{location}'), ('Connection', '{connection}')])
[20072019 09:56:22] http /dionaea/http.py:162-debug: Headers: OrderedDict([('Server', 'nginx'), ('Allow', '{allow}'), ('Connection', '{connection}')])
[20072019 09:56:22] http /dionaea/http.py:421-warning: Root path 'var/lib/dionaea/http/root' is not a directory
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:268-debug: connection_bind con 0x2b68bd0 addr 127.0.0.1 port 443 iface lo
[20072019 09:56:22] util /home/pedro/honeypot/dionaea/src/util.c:204-debug: Key file does not have key 'listen.use_ipv4_mapped_ipv6' in group 'dionaea'
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:384-debug: connection_listen con 0x2b68bd0 len 20
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:188-debug: bind_local con 0x2b68bd0
[20072019 09:56:22] util /home/pedro/honeypot/dionaea/src/util.c:204-debug: Key file does not have key 'listen.use_ipv4_mapped_ipv6' in group 'dionaea'
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:204-debug: bind_local socket 13 127.0.0.1:443
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:218-warning: Could not bind 127.0.0.1:443 (Address already in use)
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:268-debug: connection_bind con 0x2b6ae00 addr 127.0.0.1 port 1883 iface lo
[20072019 09:56:22] util /home/pedro/honeypot/dionaea/src/util.c:204-debug: Key file does not have key 'listen.use_ipv4_mapped_ipv6' in group 'dionaea'
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:384-debug: connection_listen con 0x2b6ae00 len 20
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:188-debug: bind_local con 0x2b6ae00
[20072019 09:56:22] util /home/pedro/honeypot/dionaea/src/util.c:204-debug: Key file does not have key 'listen.use_ipv4_mapped_ipv6' in group 'dionaea'
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:204-debug: bind_local socket 13 127.0.0.1:1883
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:218-warning: Could not bind 127.0.0.1:1883 (Address already in use)
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:268-debug: connection_bind con 0x2b6b590 addr 127.0.0.1 port 3306 iface lo
[20072019 09:56:22] util /home/pedro/honeypot/dionaea/src/util.c:204-debug: Key file does not have key 'listen.use_ipv4_mapped_ipv6' in group 'dionaea'
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:384-debug: connection_listen con 0x2b6b590 len 20
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:188-debug: bind_local con 0x2b6b590
[20072019 09:56:22] util /home/pedro/honeypot/dionaea/src/util.c:204-debug: Key file does not have key 'listen.use_ipv4_mapped_ipv6' in group 'dionaea'
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:204-debug: bind_local socket 13 127.0.0.1:3306
[20072019 09:56:22] connection /home/pedro/honeypot/dionaea/src/connection.c:218-warning: Could not bind 127.0.0.1:3306 (Address already in use)
[20072019 09:56:22] services /dionaea/services.py:68-warning: Unable to start service
Traceback (most recent call last):
File "lib/dionaea/python/dionaea/services.py", line 66, in start
File "lib/dionaea/python/dionaea/smb/init.py", line 24, in start
File "lib/dionaea/python/dionaea/smb/smb.py", line 87, in apply_config
ImportError: No module named 'dionaea.smb.extras'
[20072019 09:56:22] sip /dionaea/sip/init.py:571-debug: <dionaea.sip.SipSession object at 0x7f8afacea1f8> init
[20072019 09:56:22] services /dionaea/services.py:68-warning: Unable to start service
Traceback (most recent call last):
File "lib/dionaea/python/dionaea/services.py", line 66, in start
File "lib/dionaea/python/dionaea/sip/init.py", line 89, in start
File "lib/dionaea/python/dionaea/sip/init.py", line 574, in init
File "lib/dionaea/python/dionaea/sip/extras.py", line 82, in init
sqlite3.OperationalError: unable to open database file

How can I fix it?

@alcuard86
Copy link
Author

@JesseBowling
Copy link
Contributor

Looks like there's a hard coded path for the sqlite database here that wasn't updated:

self.users = os.path.join(self.root_path, config.get("users", "var/dionaea/sipaccounts.sqlite"))

Will PR later.

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

No branches or pull requests

2 participants