{"action":"created","issue":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/412","repository_url":"https://api.github.com/repos/micheloosterhof/cowrie","labels_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/412/comments","events_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/412/events","html_url":"https://github.com/micheloosterhof/cowrie/issues/412","id":201715528,"number":412,"title":"Error running cowrie after install","user":{"login":"nwcook","id":17070057,"avatar_url":"https://avatars.githubusercontent.com/u/17070057?v=3","gravatar_id":"","url":"https://api.github.com/users/nwcook","html_url":"https://github.com/nwcook","followers_url":"https://api.github.com/users/nwcook/followers","following_url":"https://api.github.com/users/nwcook/following{/other_user}","gists_url":"https://api.github.com/users/nwcook/gists{/gist_id}","starred_url":"https://api.github.com/users/nwcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwcook/subscriptions","organizations_url":"https://api.github.com/users/nwcook/orgs","repos_url":"https://api.github.com/users/nwcook/repos","events_url":"https://api.github.com/users/nwcook/events{/privacy}","received_events_url":"https://api.github.com/users/nwcook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-18T22:51:30Z","updated_at":"2017-01-19T16:06:00Z","closed_at":null,"body":"\r\nI've seen similar threads with respect to this, but haven't found a solution yet.  I think the problem lies with a Twisted module, specifcally \"logger\" which does not appear to be installed/loaded.  I'm inexperienced with linux and python, but can usually figure things out.  This is one of those \"not usually\" items.\r\n\r\nI installed cowrie with scripts provided by MHN (threatstream.com).  The script ran clean with no errors.  I validated each command within the script manually ( checked the changes in cowrie.cfg, check move of real ssh port from 2222 to 22, double-checked permissions on /opt/cowrie/ and /etc/authbind/byport/22 and they are owned by cowrie with correct permissions)\r\nI've attached the script for completeness.  It basically \"registers\" the cowrie install with mhn then proceeds to install and start cowrie.\r\n[cowrie_install.sh.txt](https://github.com/micheloosterhof/cowrie/files/715241/cowrie_install.sh.txt)\r\n\r\n\r\nVersion info: \r\nUbuntu 14.04\r\n\r\nrelated packages & versions:\r\n```\r\nncook@nccowrie:~$ sudo apt list --installed|egrep \"python-twisted|python-crypto|python-pyasn1|python-gmpy2|python-zope|python-dev|openssl|python-openssl|python-pip|supervisor|authbind\"\r\n\r\nWARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.\r\n\r\nauthbind/trusty,now 2.1.1 i386 [installed]\r\nlibgnutls-openssl27/trusty-updates,trusty-security,now 2.12.23-12ubuntu2.5 i386 [installed]\r\nlibpython-dev/trusty,now 2.7.5-5ubuntu3 i386 [installed,automatic]\r\nopenssl/trusty-updates,trusty-security,now 1.0.1f-1ubuntu2.21 i386 [installed]\r\npython-crypto/trusty,now 2.6.1-4build1 i386 [installed]\r\npython-dev/trusty,now 2.7.5-5ubuntu3 i386 [installed]\r\npython-gmpy2/trusty,now 2.0.2-1ubuntu2 i386 [installed]\r\npython-gmpy2-common/trusty,now 2.0.2-1ubuntu2 all [installed,automatic]\r\npython-openssl/trusty,now 0.13-2ubuntu6 i386 [installed]\r\npython-pip/trusty-updates,now 1.5.4-1ubuntu4 all [installed]\r\npython-pip-whl/trusty-updates,now 1.5.4-1ubuntu4 all [installed,automatic]\r\npython-pyasn1/trusty,trusty-updates,now 0.1.7-1ubuntu2 all [installed]\r\npython-twisted/trusty,now 13.2.0-1ubuntu1 all [installed]\r\npython-twisted-bin/trusty,now 13.2.0-1ubuntu1 i386 [installed]\r\npython-twisted-conch/trusty,now 1:13.2.0-1ubuntu1 all [installed,automatic]\r\npython-twisted-core/trusty,now 13.2.0-1ubuntu1 all [installed]\r\npython-twisted-lore/trusty,now 13.2.0-1ubuntu1 all [installed,automatic]\r\npython-twisted-mail/trusty,now 13.2.0-1ubuntu1 all [installed,automatic]\r\npython-twisted-names/trusty,now 13.2.0-1ubuntu1 all [installed,automatic]\r\npython-twisted-news/trusty,now 13.2.0-1ubuntu1 all [installed,automatic]\r\npython-twisted-runner/trusty,now 13.2.0-1ubuntu1 i386 [installed,automatic]\r\npython-twisted-web/trusty,now 13.2.0-1ubuntu1 all [installed,automatic]\r\npython-twisted-words/trusty,now 13.2.0-1ubuntu1 all [installed,automatic]\r\npython-zope.interface/trusty,now 4.0.5-1ubuntu4 i386 [installed]\r\nsupervisor/trusty,now 3.0b2-1 all [installed]\r\n```\r\nHere is a list of the python module and versions installed:\r\n```\r\nncook@nccowrie:/opt/cowrie$ pip list\r\napt-xapian-index (0.45)\r\nargparse (1.2.1)\r\nchardet (2.0.1)\r\ncolorama (0.2.5)\r\nconfigobj (4.7.2)\r\ngmpy2 (2.0.2)\r\nhtml5lib (0.999)\r\nLandscape-Client (14.12)\r\nmeld3 (0.6.10)\r\nPAM (0.4.2)\r\npip (1.5.4)\r\npyasn1 (0.1.7)\r\npycrypto (2.6.1)\r\npyOpenSSL (0.13)\r\npyserial (2.6)\r\npython-apt (0.9.3.5ubuntu2)\r\npython-debian (0.1.21-nmu2ubuntu2)\r\nrequests (2.2.1)\r\nsetuptools (3.3)\r\nsix (1.5.2)\r\nssh-import-id (3.21)\r\nsupervisor (3.0b2)\r\nTwisted (13.2.0)\r\nTwisted-Conch (13.2.0)\r\nTwisted-Core (13.2.0)\r\nTwisted-Lore (13.2.0)\r\nTwisted-Mail (13.2.0)\r\nTwisted-Names (13.2.0)\r\nTwisted-News (13.2.0)\r\nTwisted-Runner (13.2.0)\r\nTwisted-Web (13.2.0)\r\nTwisted-Words (13.2.0)\r\nurllib3 (1.7.1)\r\nwheel (0.24.0)\r\nwsgiref (0.1.2)\r\nzope.interface (4.0.5)\r\n\r\n```\r\nWhen I start\r\n`sudo supervisorctl start cowrie`\r\nI get\r\n`cowrie: ERROR (abnormal termination)`\r\n\r\nin cowrie.out:\r\n`/usr/bin/twistd: Unknown command: cowrie\r\n`\r\nin cowrie.err:\r\n ```\r\n File \"/opt/cowrie/twisted/plugins/cowrie_plugin.py\", line 45, in <module>\r\n    from twisted.logger import ILogObserver, globalLogPublisher\r\nexceptions.ImportError: No module named logger\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/comments/273817444","html_url":"https://github.com/micheloosterhof/cowrie/issues/412#issuecomment-273817444","issue_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/412","id":273817444,"user":{"login":"nwcook","id":17070057,"avatar_url":"https://avatars.githubusercontent.com/u/17070057?v=3","gravatar_id":"","url":"https://api.github.com/users/nwcook","html_url":"https://github.com/nwcook","followers_url":"https://api.github.com/users/nwcook/followers","following_url":"https://api.github.com/users/nwcook/following{/other_user}","gists_url":"https://api.github.com/users/nwcook/gists{/gist_id}","starred_url":"https://api.github.com/users/nwcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwcook/subscriptions","organizations_url":"https://api.github.com/users/nwcook/orgs","repos_url":"https://api.github.com/users/nwcook/repos","events_url":"https://api.github.com/users/nwcook/events{/privacy}","received_events_url":"https://api.github.com/users/nwcook/received_events","type":"User","site_admin":false},"created_at":"2017-01-19T16:06:00Z","updated_at":"2017-01-19T16:06:00Z","body":"Thanks for the quick reply.  I'll give that a go.  FYI README.md says minimum Twisted required is 12.0+, not 15.2.1. (https://github.com/micheloosterhof/cowrie/blob/master/README.md)"}}
{"actor":{"display_login":"nwcook"}}