{"action":"created","issue":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/19","labels_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/19/comments","events_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/19/events","html_url":"https://github.com/micheloosterhof/cowrie/issues/19","id":98255608,"number":19,"title":"/usr/bin/twistd: Unknown command: cowrie","user":{"login":"wedaa","id":10532648,"avatar_url":"https://avatars.githubusercontent.com/u/10532648?v=3","gravatar_id":"","url":"https://api.github.com/users/wedaa","html_url":"https://github.com/wedaa","followers_url":"https://api.github.com/users/wedaa/followers","following_url":"https://api.github.com/users/wedaa/following{/other_user}","gists_url":"https://api.github.com/users/wedaa/gists{/gist_id}","starred_url":"https://api.github.com/users/wedaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wedaa/subscriptions","organizations_url":"https://api.github.com/users/wedaa/orgs","repos_url":"https://api.github.com/users/wedaa/repos","events_url":"https://api.github.com/users/wedaa/events{/privacy}","received_events_url":"https://api.github.com/users/wedaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T20:23:25Z","updated_at":"2015-07-30T20:31:33Z","closed_at":null,"body":"SHORT ERROR: \"/usr/bin/twistd: Unknown command: cowrie\"\r\n\r\nLONG ERROR:\r\n\r\n[urew@localhost cowrie]$ ./start.sh\r\nStarting cowrie in the background...\r\n/usr/lib64/python2.6/site-packages/twisted/conch/ssh/keys.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead\r\n  import sha, md5\r\n/usr/lib64/python2.6/site-packages/twisted/conch/ssh/keys.py:13: DeprecationWarning: the md5 module is deprecated; use hashlib instead\r\n  import sha, md5\r\nTraceback (most recent call last):\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/application/app.py\", line 669, in parseOptions\r\n    usage.Options.parseOptions(self, options)\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/usage.py\", line 226, in parseOptions\r\n    for (cmd, short, parser, doc) in self.subCommands:\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/application/app.py\", line 679, in subCommands\r\n    for plug in plugins:\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/plugin.py\", line 200, in getPlugins\r\n    allDropins = getCache(package)\r\n--- <exception caught here> ---\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/plugin.py\", line 165, in getCache\r\n    provider = pluginModule.load()\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/modules.py\", line 380, in load\r\n    return self.pathEntry.pythonPath.moduleLoader(self.name)\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/reflect.py\", line 456, in namedAny\r\n    topLevelPackage = _importAndCheckStack(trialname)\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/reflect.py\", line 392, in _importAndCheckStack\r\n    return __import__(importName)\r\n  File \"/usr/local/cowrie/twisted/plugins/cowrie_plugin.py\", line 14, in <module>\r\n    import cowrie.core.ssh\r\n  File \"/usr/local/cowrie/cowrie/core/ssh.py\", line 25, in <module>\r\n    import auth\r\n  File \"/usr/local/cowrie/cowrie/core/auth.py\", line 238, in <module>\r\n    @implementer(ICredentialsChecker)\r\n  File \"/usr/lib64/python2.6/site-packages/zope/interface/declarations.py\", line 495, in __call__\r\n    raise TypeError(\"Can't use implementer with classes.  Use one of \"\r\nexceptions.TypeError: Can't use implementer with classes.  Use one of the class-declaration functions instead.\r\nTraceback (most recent call last):\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/usage.py\", line 413, in __str__\r\n    return self.getSynopsis() + '\\n' + self.getUsage(width=None)\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/usage.py\", line 449, in getUsage\r\n    for (cmd, short, parser, desc) in self.subCommands:\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/application/app.py\", line 679, in subCommands\r\n    for plug in plugins:\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/plugin.py\", line 200, in getPlugins\r\n    allDropins = getCache(package)\r\n--- <exception caught here> ---\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/plugin.py\", line 165, in getCache\r\n    provider = pluginModule.load()\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/modules.py\", line 380, in load\r\n    return self.pathEntry.pythonPath.moduleLoader(self.name)\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/reflect.py\", line 456, in namedAny\r\n    topLevelPackage = _importAndCheckStack(trialname)\r\n  File \"/usr/lib64/python2.6/site-packages/twisted/python/reflect.py\", line 392, in _importAndCheckStack\r\n    return __import__(importName)\r\n  File \"/usr/local/cowrie/twisted/plugins/cowrie_plugin.py\", line 14, in <module>\r\n    import cowrie.core.ssh\r\n  File \"/usr/local/cowrie/cowrie/core/ssh.py\", line 25, in <module>\r\n    import auth\r\n  File \"/usr/local/cowrie/cowrie/core/auth.py\", line 238, in <module>\r\n    @implementer(ICredentialsChecker)\r\n  File \"/usr/lib64/python2.6/site-packages/zope/interface/declarations.py\", line 495, in __call__\r\n    raise TypeError(\"Can't use implementer with classes.  Use one of \"\r\nexceptions.TypeError: Can't use implementer with classes.  Use one of the class-declaration functions instead.\r\nUsage: twistd [options]\r\nOptions:\r\n      --savestats        save the Stats object rather than the text output of\r\n                         the profiler.\r\n  -o, --no_save          do not save state on shutdown\r\n  -e, --encrypted        The specified tap/aos/xml file is encrypted.\r\n      --nothotshot       DEPRECATED. Don't use the hotshot profiler even if it's\r\n                         available.\r\n  -n, --nodaemon         don't daemonize, don't use default umask of 0077\r\n  -q, --quiet            No-op for backwards compatibility.\r\n      --originalname     Don't try to change the process name\r\n      --syslog           Log to syslog, not to file\r\n      --euid             Set only effective user-id rather than real user-id.\r\n                         (This option has no effect unless the server is running\r\n                         as root, in which case it means not to shed all\r\n                         privileges after binding ports, retaining the option to\r\n                         regain privileges in cases such as spawning processes.\r\n                         Use with caution.)\r\n  -l, --logfile=         log to a specified file, - for stdout\r\n  -p, --profile=         Run in profile mode, dumping results to specified file\r\n      --profiler=        Name of the profiler to use (profile, cprofile,\r\n                         hotshot). [default: hotshot]\r\n  -f, --file=            read the given .tap file [default: twistd.tap]\r\n  -y, --python=          read an application from within a Python file (implies\r\n                         -o)\r\n  -x, --xml=             Read an application from a .tax file (Marmalade\r\n                         format).\r\n  -s, --source=          Read an application from a .tas file (AOT format).\r\n  -d, --rundir=          Change to a supplied directory before running [default:\r\n                         .]\r\n      --report-profile=  DEPRECATED.\r\n                         \r\n                         Manage --report-profile option, which does nothing currently.\r\n                         \r\n      --prefix=          use the given prefix when syslogging [default: twisted]\r\n      --pidfile=         Name of the pidfile [default: twistd.pid]\r\n      --chroot=          Chroot to a supplied directory before running\r\n  -u, --uid=             The uid to run as.\r\n  -g, --gid=             The gid to run as.\r\n      --umask=           The (octal) file creation mask to apply.\r\n      --help-reactors    Display a list of possibly available reactor names.\r\n      --version          Print version information and exit.\r\n      --spew             Print an insanely verbose log of everything that\r\n                         happens. Useful when debugging freezes or locks in\r\n                         complex code.\r\n  -b, --debug            run the application in the Python Debugger (implies\r\n                         nodaemon), sending SIGUSR2 will drop into debugger\r\n  -r, --reactor=         Which reactor to use (see --help-reactors for a list of\r\n                         possibilities)\r\n      --help             Display this help and exit.\r\nCommands:\r\n    ftp              An FTP server.\r\n    telnet           A simple, telnet-based remote debugging service.\r\n    socks            A SOCKSv4 proxy service.\r\n    manhole-old      An interactive remote debugger service.\r\n    portforward      A simple port-forwarder.\r\n    web              A general-purpose web server which can serve from a\r\n                     filesystem or application resource.\r\n    inetd            An inetd(8) replacement.\r\n    news             A news server.\r\n    xmpp-router      An XMPP Router server\r\n    words            A modern words server\r\n    toc              An AIM TOC service.\r\n    dns              A domain name server.\r\n    mail             An email service\r\n    manhole          An interactive remote debugger service accessible via\r\n                     telnet and ssh and providing syntax coloring and basic line\r\n                     editing functionality.\r\n    conch            A Conch SSH service.\r\n\r\n/usr/bin/twistd: Unknown command: cowrie\r\n[urew@localhost cowrie]$ \r\n\r\n\r\nSERVER DESCRIPTION:\r\nCentOS 6.5\r\n\r\nExtra packages installed:\r\n yum install tar make gcc zlib-devel openssl-devel python-twisted wget unzip updatedb mlocate telnet cpan make httpd jwhois php php-devel php-common php-cli php-xml php-pear php-pdo php-gd which\r\n\r\nBoring old Kippo runs without issues, but it's start.sh startup line is:\r\n    twistd -y kippo.tac -l log/kippo.log --pidfile kippo.pid\r\n\r\nBut Cowrie's startup line is:\r\n   twistd -l log/cowrie.log --pidfile cowrie.pid cowrie\r\n\r\nMaybe something wasn't uploaded to the git archive?\r\n\r\n>>>>>>>>>>Ericw"},"comment":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/comments/126475048","html_url":"https://github.com/micheloosterhof/cowrie/issues/19#issuecomment-126475048","issue_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/19","id":126475048,"user":{"login":"micheloosterhof","id":1063043,"avatar_url":"https://avatars.githubusercontent.com/u/1063043?v=3","gravatar_id":"","url":"https://api.github.com/users/micheloosterhof","html_url":"https://github.com/micheloosterhof","followers_url":"https://api.github.com/users/micheloosterhof/followers","following_url":"https://api.github.com/users/micheloosterhof/following{/other_user}","gists_url":"https://api.github.com/users/micheloosterhof/gists{/gist_id}","starred_url":"https://api.github.com/users/micheloosterhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheloosterhof/subscriptions","organizations_url":"https://api.github.com/users/micheloosterhof/orgs","repos_url":"https://api.github.com/users/micheloosterhof/repos","events_url":"https://api.github.com/users/micheloosterhof/events{/privacy}","received_events_url":"https://api.github.com/users/micheloosterhof/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T20:31:33Z","updated_at":"2015-07-30T20:31:33Z","body":"I see it's a CentOS 6.5 server, could you try to run on CentOS 7.0, or do you need to use this particular version?"}}