Ticket #2316 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

option --db not recognized, when trying to upgrade MySQL database

Reported by: edsouza Owned by:
Priority: major Milestone: undecided
Version: 0.8.6p1 Keywords: MySQL, database
Cc:

Description

If the

cdb_url? = "sqlite:///state.sqlite"

entry in master.cfg is changed to use a local MySQL database like so:

cdb_url? = "mysql://root:@localhost/buildbot?max_idle=300"[[BR]]

The twistd.log prints the following instructions:

If you are
2012-06-12 09:28:47-0400 [-] using MySQL, you must specify the connector string on the upgrade-master
2012-06-12 09:28:47-0400 [-] command line:
2012-06-12 09:28:47-0400 [-]
2012-06-12 09:28:47-0400 [-] buildbot upgrade-master --db=<db-url> path/to/master


However, the --db option does not appear to be supported:

bash-4.1$ buildbot upgrade-master --db=mysql://root:@localhost/buildbot?max_idle=300 .
/usr/local/bin/buildbot: option --db not recognized

Change History

comment:1 Changed 11 months ago by KeiKun

just use buildbot upgrade-master before that update your master.cfg no need to use --db since --db only applies at buildbot create-master

c['db'] = {
    'db_url' : "mysql://sql_user:sql_password@sql_host/sql_db",
}

comment:2 Changed 11 months ago by dustin

That error message has already been fixed, but it's still wrong in the manual.

comment:3 Changed 11 months ago by Dustin J. Mitchell

  • Status changed from new to closed
  • Resolution set to fixed

update docs on buildbot upgrade-master and --db option

Fixes #2316.

Changeset: 49e492d85d2c2713226958e9d726d3001393ba50

comment:4 Changed 11 months ago by Dustin J. Mitchell

update docs on buildbot upgrade-master and --db option

Fixes #2316.

Changeset: 49e492d85d2c2713226958e9d726d3001393ba50

Note: See TracTickets for help on using tickets.