RootTheBox: RoottheBox Setup problem

Hi,

I am having a setup problem, please let me know the reason behind this.

Python Version : 2.7.3 If you have video tutorial for installation, please share.

root@Kali~Home:~/RootTheBox-master# ./rootthebox.py --setup=prod [I 150113 10:17:14 ConfigHelpers:9] Saving current config to: files/rootthebox.cfg [] 10:17:14 : Creating the database … [] 10:17:14 : Bootstrapping the database … [?] Admin username: admin [?] New Admin Password: [?] Confirm New Admin Password: Traceback (most recent call last): File “./rootthebox.py”, line 447, in <module> setup() File “./rootthebox.py”, line 68, in setup import setup.bootstrap File “/root/RootTheBox-master/setup/bootstrap.py”, line 133, in <module> dbsession.flush() File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py”, line 1919, in flush self._flush(objects) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py”, line 2037, in _flush transaction.rollback(_capture_exception=True) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py”, line 60, in exit compat.reraise(exc_type, exc_value, exc_tb) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py”, line 2001, in _flush flush_context.execute() File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py”, line 372, in execute rec.execute(self) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py”, line 526, in execute uow File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py”, line 65, in save_obj mapper, table, insert) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py”, line 602, in _emit_insert_statements execute(statement, params) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py”, line 729, in execute return meth(self, multiparams, params) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py”, line 322, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py”, line 826, in _execute_clauseelement compiled_sql, distilled_params File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py”, line 958, in _execute_context context) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py”, line 1159, in _handle_dbapi_exception exc_info File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py”, line 199, in raise_from_cause reraise(type(exception), exception, tb=exc_tb) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py”, line 951, in _execute_context context) File “/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py”, line 436, in do_execute cursor.execute(statement, parameters) File “build/bdist.linux-x86_64/egg/MySQLdb/cursors.py”, line 205, in execute File “build/bdist.linux-x86_64/egg/MySQLdb/connections.py”, line 36, in defaulterrorhandler sqlalchemy.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’)

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 20 (4 by maintainers)

Commits related to this issue

Most upvoted comments

All solved, I have removed the special characters and I have lengthened the password. No more errors at the moment: P

Thank you very much @jeffg2k ;D