question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RoottheBox Setup problem

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ghostcommented, Dec 27, 2018

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

0reactions
eljeffegcommented, Dec 27, 2018

Looks like it’s having a problem with the password. It’s added %2B%2C, encoding for “+,”. Apparently, it doesn’t like % signs in the Alembic string. I’ll try to add something that will convert or work around this, but for now, try a password without those special characters.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running OWASP Juice Shop with Root-the-Box on Google ...
This time I wanted to setup a CTF challenge for my students. ... right now, performance is not so much of an issue...
Read more >
Root the Box: A Game of Hackers (CTF Scoreboard) - EsGeeks
Root the Box is a real-time capture the flag (CTF) scoring engine for computer wargames where hackers can practice and learn.
Read more >
Root the Box: Server Setup Demo - YouTube
Source Code: https://github.com/moloch--/RootTheBoxInstructions: https://github.com/moloch--/ RootTheBox /wiki/InstallationMore information ...
Read more >
Hosting a CTF event - Pwning OWASP Juice Shop
The score server must be set up accordingly to accept exactly those flag codes ... RootTheBox a very sophisticated framework which comes even...
Read more >
Root The Box - easy CTF framework [closed]
rootthebox.py --setup=prod. And yes, you do have to be an admin user so you can start the game after loggin into your account....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found