Last modified: 2014-09-07 20:09:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70307, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68307 - Initial database setup fails in MediaWiki-Vagrant
Initial database setup fails in MediaWiki-Vagrant
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-20 23:35 UTC by Bryan Davis
Modified: 2014-09-07 20:09 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bryan Davis 2014-07-20 23:35:58 UTC
Provisioning the initial CentralNotice database tables using update.php fails on a clean MediaWiki-Vagrant install after I7b0d0103aab0a6eba57b250f41accd897bb111e8.

Creating cn_notices table ...A database query error has occurred.
Query: INSERT INTO `cn_known_devices` VALUES (1, 'android', 'Android OS')

Function: DatabaseBase::sourceFile( /vagrant/mediawiki/extensions/CentralNotice/patches/../CentralNotice.sql )
Error: 1062 Duplicate entry '1' for key 'PRIMARY' ()
Backtrace:
#0 /vagrant/mediawiki/includes/db/Database.php(1156): DatabaseBase->reportQueryError('Duplicate entry...', 1062, 'INSERT INTO `cn...', 'DatabaseBase::s...', false)
#1 /vagrant/mediawiki/includes/db/Database.php(3910): DatabaseBase->query('INSERT INTO `cn...', 'DatabaseBase::s...')
#2 /vagrant/mediawiki/includes/db/Database.php(3824): DatabaseBase->sourceStream(Resource id #544, false, false, 'DatabaseBase::s...', false)
#3 /vagrant/mediawiki/includes/installer/DatabaseUpdater.php(653): DatabaseBase->sourceFile('/vagrant/mediaw...')
#4 /vagrant/mediawiki/includes/installer/DatabaseUpdater.php(676): DatabaseUpdater->applyPatch('/vagrant/mediaw...', true, 'Creating cn_not...')
#5 [internal function]: DatabaseUpdater->addTable('cn_notices', '/vagrant/mediaw...', true)
#6 /vagrant/mediawiki/includes/installer/DatabaseUpdater.php(441): call_user_func_array(Array, Array)
#7 /vagrant/mediawiki/includes/installer/DatabaseUpdater.php(406): DatabaseUpdater->runUpdates(Array, true)
#8 /vagrant/mediawiki/maintenance/update.php(163): DatabaseUpdater->doUpdates(Array)
#9 /vagrant/mediawiki/maintenance/doMaintenance.php(109): UpdateMediaWiki->execute()
#10 /vagrant/mediawiki/maintenance/update.php(206): require_once('/vagrant/mediaw...')
#11 {main}

If I checkout commit 0e89e279645a5e4f69bf977c5eaffbe3e70b238b (I0353a4da78ce93b1023b7f8dea9fc8e575e1b083), which is the last revision prior to the merge of I7b0d0103aab0a6eba57b250f41accd897bb111e8, update.php completes with no errors.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links