{"action":"created","issue":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/627","repository_url":"https://api.github.com/repos/micheloosterhof/cowrie","labels_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/627/comments","events_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/627/events","html_url":"https://github.com/micheloosterhof/cowrie/issues/627","id":273644164,"number":627,"title":"bin/cowrie: line 81: twistd: command not found ","user":{"login":"hkyq","id":20865218,"avatar_url":"https://avatars0.githubusercontent.com/u/20865218?v=4","gravatar_id":"","url":"https://api.github.com/users/hkyq","html_url":"https://github.com/hkyq","followers_url":"https://api.github.com/users/hkyq/followers","following_url":"https://api.github.com/users/hkyq/following{/other_user}","gists_url":"https://api.github.com/users/hkyq/gists{/gist_id}","starred_url":"https://api.github.com/users/hkyq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkyq/subscriptions","organizations_url":"https://api.github.com/users/hkyq/orgs","repos_url":"https://api.github.com/users/hkyq/repos","events_url":"https://api.github.com/users/hkyq/events{/privacy}","received_events_url":"https://api.github.com/users/hkyq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-14T02:13:18Z","updated_at":"2017-11-14T20:52:21Z","closed_at":null,"author_association":"NONE","body":"**EDIT: Fixed original issue in title by doing `sudo pip install twisted`**, but now have a new issue\r\n\r\nHey, so I'm running cowrie on a Raspberry Pi 3 with Raspbian. \r\nI'm trying to start cowrie with ` bin/cowrie start` (while on pi account), but I'm getting this:\r\n```\r\npi@raspberrypi:/home/cowrie/cowrie $ bin/cowrie start\r\nActivating virtualenv \"cowrie-env\"\r\nStarting cowrie: [twistd -n  --umask 0077 --pidfile var/run/cowrie.pid -l log/cowrie.log cowrie ]...\r\nUnhandled Error\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/application/app.py\", line 662, in run\r\n    runApp(config)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/scripts/twistd.py\", line 25, in runApp\r\n    _SomeApplicationRunner(config).run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/application/app.py\", line 380, in run\r\n    self.application = self.createOrGetApplication()\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/application/app.py\", line 440, in createOrGetApplication\r\n    ser = plg.makeService(self.config.subOptions)\r\n--- <exception caught here> ---\r\n  File \"/home/cowrie/cowrie/twisted/plugins/cowrie_plugin.py\", line 170, in makeService\r\n    globals(), locals(), ['output']).Output(cfg)\r\n  File \"/home/cowrie/cowrie/cowrie/output/jsonlog.py\", line 52, in __init__\r\n    self.outfile = twisted.python.logfile.DailyLogFile(base, dirs, defaultMode=0o664)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 45, in __init__\r\n    self._openFile()\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 248, in _openFile\r\n    BaseLogFile._openFile(self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 74, in _openFile\r\n    self._file = open(self.path, \"rb+\", 0)\r\nexceptions.IOError: [Errno 13] Permission denied: u'log/cowrie.json'\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/twistd\", line 11, in <module>\r\n    sys.exit(run())\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/scripts/twistd.py\", line 29, in run\r\n    app.run(runApp, ServerOptions)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/application/app.py\", line 662, in run\r\n    runApp(config)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/scripts/twistd.py\", line 25, in runApp\r\n    _SomeApplicationRunner(config).run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/application/app.py\", line 382, in run\r\n    self.logger.start(self.application)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/application/app.py\", line 191, in start\r\n    observer = self._getLogObserver()\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/scripts/_twistd_unix.py\", line 160, in _getLogObserver\r\n    logFile = logfile.LogFile.fromFullPath(self._logfilename)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 54, in fromFullPath\r\n    os.path.dirname(logPath), *args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 170, in __init__\r\n    BaseLogFile.__init__(self, name, directory, defaultMode)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 45, in __init__\r\n    self._openFile()\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 175, in _openFile\r\n    BaseLogFile._openFile(self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/twisted/python/logfile.py\", line 74, in _openFile\r\n    self._file = open(self.path, \"rb+\", 0)\r\nIOError: [Errno 13] Permission denied: '/home/cowrie/cowrie/log/cowrie.log'\r\n```"},"comment":{"url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/comments/344394494","html_url":"https://github.com/micheloosterhof/cowrie/issues/627#issuecomment-344394494","issue_url":"https://api.github.com/repos/micheloosterhof/cowrie/issues/627","id":344394494,"user":{"login":"micheloosterhof","id":1063043,"avatar_url":"https://avatars0.githubusercontent.com/u/1063043?v=4","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":"2017-11-14T20:52:20Z","updated_at":"2017-11-14T20:52:20Z","author_association":"OWNER","body":"Hi. It's not necessary to replace your original ticket. Just add a comment\nwith the new situation. This way other people can google for it and solve\nthe same problem as you.\n\nTo make it easier, I would just start again, delete the entire cowrie\ndirectory and follow the instructions from the start.\n\nOn Wed, Nov 15, 2017 at 04:30 Harry <notifications@github.com> wrote:\n\n> I just tried installing twisted with non-sudo pip on cowrie account,\n> although now I'm getting the error in the title\n>\n> —\n> You are receiving this because you were mentioned.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/micheloosterhof/cowrie/issues/627#issuecomment-344335050>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABA4g2a2YTCwzKZk-tttXKXT5e1FAy77ks5s2c43gaJpZM4Qcs03>\n> .\n>\n"}}
{"actor":{"display_login":"micheloosterhof"}}