4443: django.db.utils.DatabaseError: (1146, "Table 'reviewboard.auth_user' doesn't exist")

musicaptain

What version are you running?

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

What steps will reproduce the problem?

  1. yum install ReviewBoard
  2. rb-site install /var/www/reviewboard

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

  • 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.

  • What's the host name for this site?

    This should be the fully-qualified host name without the http://,
    port or path.

Domain Name: 192.168.78.152

  • What URL path points to Review Board?

    Typically, Review Board exists at the root of a URL. For example,
    http://reviews.example.com/. In this case, you would specify "/".

    However, if you want to listen to, say,
    http://example.com/reviews/, you can specify "/reviews/".

    Note that this is the path relative to the domain and should not
    include the domain name.

    The default is /

Root Path [/]:

  • What URL will point to the shipped media files?

    While most installations distribute media files on the same server
    as the rest of Review Board, some custom installs may instead have
    a separate server for this purpose.

    If unsure, don't change the default.

    The default is static/

Shipped Media URL [static/]:

  • What URL will point to the uploaded media files?

    Note that this is different from shipped media. This is where all
    uploaded screenshots, file attachments, and extension media will
    go. It must be a different location from the shipped media.

    If unsure, don't change the default.

    The default is media/

Uploaded Media URL [media/]:

  • What database type will you be using?

    You can type either the name or the number from the list below.

    (1) mysql
    (2) postgresql
    (3) sqlite3 (not supported for production use)

Database Type: 1

  • What database name should Review Board use?

    NOTE: You need to create this database and grant user modification
    rights before continuing. See your database documentation for more
    information.

    The default is reviewboard

Database Name [reviewboard]:

  • What is the database server's address?

    This should be specified in hostname:port form. The port is
    optional if you're using a standard port for the database type.

    The default is localhost

Database Server [localhost]:

  • What is the login and password for this database?

    This must be a user that has table creation and modification
    rights on the database you already specified.

Database Username: root

Database Password:

The default is root123

Confirm Database Password [root123]:

  • What cache mechanism should be used?

    memcached is strongly recommended. Use it unless you have a good
    reason not to.

    You can type either the name or the number from the list below.

    (1) memcached (recommended)
    (2) file

Cache Type:

[!] '' is not a valid option.
Cache Type: 1

  • What memcached host should be used?

    This is in the format of hostname:port

    The default is localhost:11211

Memcache Server [localhost:11211]:

  • What web server will you be using?

    You can type either the name or the number from the list below.

    (1) apache
    (2) lighttpd

Web Server: 1

  • What Python loader module will you be using?

    Based on our experiences, we recommend using wsgi with Review
    Board.

    You can type either the name or the number from the list below.

    (1) wsgi (recommended)
    (2) fastcgi
    (3) modpython (no longer supported)

Python Loader:

[!] '' is not a valid option.
Python Loader: 1

  • Create an administrator account

    To configure Review Board, you'll need an administrator account.
    It is advised to have one administrator and then use that account
    to grant administrator permissions to your personal user account.

    If you plan to use NIS or LDAP, use an account name other than
    your NIS/LDAP account so as to prevent conflicts.

    The default is admin

Username [admin]:

Password:

The default is 123

Confirm Password [123]:

E-Mail Address:

[!] You must answer this question.
E-Mail Address: cuizhiqiang@maidoupo.com

Company/Organization Name (optional):

  • Enable collection of data for better support

    We would like to periodically collect data and statistics about
    your installation to provide a better support experience for you
    and your users.

    The data collected includes basic information such as your company
    name, the version of Review Board, and the size of your install.
    It does NOT include confidential data such as source code. Data
    collected never leaves our server and is never given to any third
    parties for any purposes.

    We use this to provide a user support page that's more specific to
    your server. We also use it to determine which versions to
    continue to support, and to help track how upgrades affect our
    number of bug reports and support incidents.

    You can choose to turn this off at any time in Support Settings in
    Review Board.

Allow us to collect support data? [Y/n]:

  • Installing the site...
    Building site directories ... OK
    Building site configuration files ... OK
    Creating database ...
    [!] Unable to execute the manager command syncdb: cannot import name
    WebAPITokenGenerationError

[!] Unable to execute the manager command registerscmtools: cannot
import name WebAPITokenGenerationError
OK
Performing migrations ...
[!] Unable to execute the manager command evolve: cannot import name
WebAPITokenGenerationError
OK
Creating administrator account ... Traceback (most recent call last):
File "/usr/bin/rb-site", line 9, in <module>
load_entry_point('ReviewBoard==1.7.27', 'console_scripts', 'rb-site')()
File "/usr/lib/python2.6/site-packages/reviewboard/cmdline/rbsite.py", line 2170, in main
command.run()
File "/usr/lib/python2.6/site-packages/reviewboard/cmdline/rbsite.py", line 1551, in run
self.show_install_status()
File "/usr/lib/python2.6/site-packages/reviewboard/cmdline/rbsite.py", line 1864, in show_install_status
site.create_admin_user)
File "/usr/lib/python2.6/site-packages/reviewboard/cmdline/rbsite.py", line 1011, in step
func()
File "/usr/lib/python2.6/site-packages/reviewboard/cmdline/rbsite.py", line 556, in create_admin_user
self.admin_password)
File "/usr/lib/python2.6/site-packages/django/contrib/auth/models.py", line 164, in create_superuser
u = self.create_user(username, email, password)
File "/usr/lib/python2.6/site-packages/django/contrib/auth/models.py", line 160, in create_user
user.save(using=self._db)
File "/usr/lib/python2.6/site-packages/django/db/models/base.py", line 463, in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/usr/lib/python2.6/site-packages/django/db/models/base.py", line 551, in save_base
result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/usr/lib/python2.6/site-packages/django/db/models/manager.py", line 203, in _insert
return insert_query(self.model, objs, fields, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 1593, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 912, in execute_sql
cursor.execute(sql, params)
File "/usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py", line 114, in execute
return self.cursor.execute(query, args)
File "/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 173, in execute
self.errorhandler(self, exc, value)
File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.DatabaseError: (1146, "Table 'reviewboard.auth_user' doesn't exist")

What operating system are you using? What browser?

Please provide any additional information below.

chipx86
#1 chipx86

This is a support issue, rather than a bug. Can you instead post on https://groups.google.com/group/reviewboard/ with the full details, and tell us more about your OS and the versions of Review Board and other modules being used?

  • -New
    +SetupIssue