4487: Duplicate entry 'admin' for key 'username'

bkmeneguello
david
david

What version are you running?

2.5.7

What's the URL of the page containing the problem?

What steps will reproduce the problem?

  1. Perform a full instalation of Review Board
  2. Delete the site directory
  3. Try to install again using the populated database

What is the expected output? What do you see instead?

Is expected to work cleanly, detecting the current database installation and only creating the site archives. Instead an error occurs when there is an user with de admin provided username. I expect that installation process verify the user exists and is an admin and ignore this step.

What operating system are you using? What browser?

Please provide any additional information below.

* Welcome to the Review Board site installation wizard
    This will prepare a Review Board site installation in:
    /var/www/reviewboard
    We need to know a few things before we can prepare your site for
    installation. This will only take a few minutes.
* Make sure you have the modules you need
    Depending on your installation, you may need certain Python
    modules and servers that are missing.
    If you need support for any of the following, you will need to
    install the necessary modules and restart the install.
    Databases (optional):
        * PostgreSQL (psycopg2)
* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
OK
Performing migrations ... No evolution required.
OK
Traceback (most recent call last):
  File "/usr/local/bin/rb-site", line 11, in <module>
    sys.exit(main())
  
david
#1 david
  • -New
    +PendingReview
  • +david
david
#2 david

Fixed in release-2.5.x (cf46190). This will ship in 2.5.8. Thanks!

  • -PendingReview
    +Fixed