https://bugzilla.wikimedia.org/show_bug.cgi?id=68307

            Bug ID: 68307
           Summary: Initial database setup fails in MediaWiki-Vagrant
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: CentralNotice
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to