985: Error when creating new site using rb-site

granto******@gmai***** (Google Code) (Is this you? Claim this profile.)
March 26, 2009
I seam to be getting an error when i attempt to create a new site, its on
debian etch, it creates the directory fine, creates all the files fine,
creates the database and all the tables, but just bombs out , cant work out
whats going on, perhaps im doing something wrong? Below is the setup i was
trying. Any help would be greatly appreciated as i really want to get this
going asap. Thanks in advance.
-------------------------------

$ rb-site install /www/review-board

* Welcome to the Review Board site installation wizard.

    This will prepare a Review Board site installation in:

    /www/review-board

    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 domain name for this site?

    This should be the full domain without the http://, port or path.

Domain Name: review-board.testserve


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

    The default is media/

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

Database Type: 1


* What database name should Review Board use?

    You may need to create this database and grant a user modification
    rights before continuing.

    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 creation and modification rights on
    the database.

Database Username: wxp_admin_remote

Database Password:


* 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
    (2) file

Cache Type: 1


* What memcached connection string should be used?

    This is generally in the format of memcached://hostname:port/

    The default is memcached://localhost:11211/

Memcache Server [memcached://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 modpython with Review
    Board.

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

    (1) modpython
    (2) fastcgi

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:

E-Mail Address: grant@webxpress.com.au


* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Traceback (most recent call last):
  File "/usr/bin/rb-site", line 5, in ?
    pkg_resources.run_script('ReviewBoard==1.0alpha4', 'rb-site')
  File
"/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File
"/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
line 1166, in run_script
    execfile(script_filename, namespace, namespace)
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 1280, in ?
    main(sys.argv[1:])
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 1275, in main
    command.run()
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 912, in run
    self.show_install_status()
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 1134, in show_install_status
    site.sync_database)
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 519, in step
    func()
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 224, in sync_database
    self.run_manage_command("syncdb", ["--noinput"])
  File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-py2.4.egg/EGG-INFO/scripts/rb-site",
line 262, in run_manage_command
    execute_manager(reviewboard.settings, [__file__, cmd] + params)
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/__init__.py",
line 340, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/__init__.py",
line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/base.py",
line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/base.py",
line 218, in execute
    self.validate()
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/base.py",
line 246, in validate
    num_errors = get_validation_errors(s, app)
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/validation.py",
line 65, in get_validation_errors
    connection.validation.validate_field(e, opts, f)
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/backends/mysql/validation.py",
line 8, in validate_field
    db_version = connection.get_server_version()
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/backends/mysql/base.py",
line 277, in get_server_version
    self.cursor()
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/backends/__init__.py",
line 56, in cursor
    cursor = self._cursor(settings)
  File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/backends/mysql/base.py",
line 262, in _cursor
    self.connection = Database.connect(**kwargs)
  File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line 75, in
Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 164,
in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL
server through socket '/var/run/mysqld/mysqld.sock' (2)")
#1 granto******@gmai***** (Google Code) (Is this you? Claim this profile.)
Ignor this, this is not an issue, my silly fault, sorry
david
#2 david
  • +UserError