{"action":"created","issue":{"url":"https://api.github.com/repos/moloch--/RootTheBox/issues/61","labels_url":"https://api.github.com/repos/moloch--/RootTheBox/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/moloch--/RootTheBox/issues/61/comments","events_url":"https://api.github.com/repos/moloch--/RootTheBox/issues/61/events","html_url":"https://github.com/moloch--/RootTheBox/issues/61","id":54151630,"number":61,"title":"RoottheBox Setup problem","user":{"login":"hatim401","id":10497588,"avatar_url":"https://avatars.githubusercontent.com/u/10497588?v=3","gravatar_id":"","url":"https://api.github.com/users/hatim401","html_url":"https://github.com/hatim401","followers_url":"https://api.github.com/users/hatim401/followers","following_url":"https://api.github.com/users/hatim401/following{/other_user}","gists_url":"https://api.github.com/users/hatim401/gists{/gist_id}","starred_url":"https://api.github.com/users/hatim401/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatim401/subscriptions","organizations_url":"https://api.github.com/users/hatim401/orgs","repos_url":"https://api.github.com/users/hatim401/repos","events_url":"https://api.github.com/users/hatim401/events{/privacy}","received_events_url":"https://api.github.com/users/hatim401/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moloch--/RootTheBox/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"moloch--","id":875022,"avatar_url":"https://avatars.githubusercontent.com/u/875022?v=3","gravatar_id":"","url":"https://api.github.com/users/moloch--","html_url":"https://github.com/moloch--","followers_url":"https://api.github.com/users/moloch--/followers","following_url":"https://api.github.com/users/moloch--/following{/other_user}","gists_url":"https://api.github.com/users/moloch--/gists{/gist_id}","starred_url":"https://api.github.com/users/moloch--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moloch--/subscriptions","organizations_url":"https://api.github.com/users/moloch--/orgs","repos_url":"https://api.github.com/users/moloch--/repos","events_url":"https://api.github.com/users/moloch--/events{/privacy}","received_events_url":"https://api.github.com/users/moloch--/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-01-13T05:11:23Z","updated_at":"2015-03-16T10:37:21Z","closed_at":null,"body":"Hi,\r\n\r\nI am having a setup problem, please let me know the reason behind this.\r\n\r\nPython Version : 2.7.3\r\nIf you have video tutorial for installation, please share.\r\n\r\n root@Kali~Home:~/RootTheBox-master# ./rootthebox.py --setup=prod\r\n[I 150113 10:17:14 ConfigHelpers:9] Saving current config to: files/rootthebox.cfg\r\n[*] 10:17:14 : Creating the database ...\r\n[*] 10:17:14 : Bootstrapping the database ...\r\n[?] Admin username: admin\r\n[?] New Admin Password: \r\n[?] Confirm New Admin Password: \r\nTraceback (most recent call last):\r\n  File \"./rootthebox.py\", line 447, in <module>\r\n    setup()\r\n  File \"./rootthebox.py\", line 68, in setup\r\n    import setup.bootstrap\r\n  File \"/root/RootTheBox-master/setup/bootstrap.py\", line 133, in <module>\r\n    dbsession.flush()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 1919, in flush\r\n    self._flush(objects)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 2037, in _flush\r\n    transaction.rollback(_capture_exception=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py\", line 60, in __exit__\r\n    compat.reraise(exc_type, exc_value, exc_tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py\", line 2001, in _flush\r\n    flush_context.execute()\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py\", line 372, in execute\r\n    rec.execute(self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py\", line 526, in execute\r\n    uow\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py\", line 65, in save_obj\r\n    mapper, table, insert)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py\", line 602, in _emit_insert_statements\r\n    execute(statement, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 729, in execute\r\n    return meth(self, multiparams, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py\", line 322, in _execute_on_connection\r\n    return connection._execute_clauseelement(self, multiparams, params)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 826, in _execute_clauseelement\r\n    compiled_sql, distilled_params\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 958, in _execute_context\r\n    context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 1159, in _handle_dbapi_exception\r\n    exc_info\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py\", line 199, in raise_from_cause\r\n    reraise(type(exception), exception, tb=exc_tb)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py\", line 951, in _execute_context\r\n    context)\r\n  File \"/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py\", line 436, in do_execute\r\n    cursor.execute(statement, parameters)\r\n  File \"build/bdist.linux-x86_64/egg/MySQLdb/cursors.py\", line 205, in execute\r\n  File \"build/bdist.linux-x86_64/egg/MySQLdb/connections.py\", line 36, in defaulterrorhandler\r\nsqlalchemy.exc.IntegrityError: (IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (`rootthebox`.`user`, CONSTRAINT `user_ibfk_2` FOREIGN KEY (`theme_id`) REFERENCES `theme` (`id`))') 'INSERT INTO user (created, uuid, team_id, _avatar, _locked, last_login, logins, _handle, password, bank_password, theme_id, algorithm) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)' (datetime.datetime(2015, 1, 13, 10, 17, 38, 300696), 'ef632f77-8365-4f40-85a5-f8970f1b7f7d', None, None, 0, None, 0, 'admin', u'$p5k2$2bad$nrrD/1tX$VwtbalM60/KhhuQoyGFGzogs2espm9aM', None, 3, 'md5')\r\n\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/moloch--/RootTheBox/issues/comments/81570048","html_url":"https://github.com/moloch--/RootTheBox/issues/61#issuecomment-81570048","issue_url":"https://api.github.com/repos/moloch--/RootTheBox/issues/61","id":81570048,"user":{"login":"viris","id":3950657,"avatar_url":"https://avatars.githubusercontent.com/u/3950657?v=3","gravatar_id":"","url":"https://api.github.com/users/viris","html_url":"https://github.com/viris","followers_url":"https://api.github.com/users/viris/followers","following_url":"https://api.github.com/users/viris/following{/other_user}","gists_url":"https://api.github.com/users/viris/gists{/gist_id}","starred_url":"https://api.github.com/users/viris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viris/subscriptions","organizations_url":"https://api.github.com/users/viris/orgs","repos_url":"https://api.github.com/users/viris/repos","events_url":"https://api.github.com/users/viris/events{/privacy}","received_events_url":"https://api.github.com/users/viris/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T10:37:21Z","updated_at":"2015-03-16T10:37:21Z","body":"Any news regarding this issue?"}}