Last modified: 2014-08-19 23:49:16 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 T70624, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68624 - Exception from line 79 of includes/db/CloneDatabase.php: Cannot clone shared table objectcache
Exception from line 79 of includes/db/CloneDatabase.php: Cannot clone shared ...
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-26 18:25 UTC by Nemo
Modified: 2014-08-19 23:49 UTC (History)
7 users (show)

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


Attachments
Installed stuff (10.27 KB, text/plain)
2014-07-27 23:22 UTC, Nemo
Details

Description Nemo 2014-07-26 18:25:05 UTC
I did http://paste.debian.net/111811/ and got the following, fixed by labs-vagrant disable-role globalcssjs. Probably the role should imply centralauth role but doesn't.

$ php5 --version
PHP 5.5.9-1ubuntu4.3 (cli) (built: Jul  7 2014 16:36:58) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
vagrant@nemobis:/srv/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php 
[...]
PHPUnit 3.7.37 by Sebastian Bergmann.

Configuration read from /srv/vagrant/mediawiki/tests/phpunit/suite.xml

[774ee431] [no req]   Exception from line 79 of /srv/vagrant/mediawiki/includes/db/CloneDatabase.php: Cannot clone shared table objectcache.
Backtrace:
#0 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(544): CloneDatabase->cloneTableStructure()
#1 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(115): MediaWikiTestCase::setupTestDB(DatabaseMysqli, string)
#2 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(779): MediaWikiTestCase->run(PHPUnit_Framework_TestResult)
#3 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(749): PHPUnit_Framework_TestSuite->runTest(ArrayUtilsTest, PHPUnit_Framework_TestResult)
#4 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#5 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#6 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#7 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php(350): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#8 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php(176): PHPUnit_TextUI_TestRunner->doRun(PHPUnit_Framework_TestSuite, array)
#9 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php(42): PHPUnit_TextUI_Command->run(array, boolean)
#10 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php(160): MediaWikiPHPUnitCommand::main()
#11 {main}
Comment 1 Kunal Mehta (Legoktm) 2014-07-27 17:07:06 UTC
What happens if you use the CentralAuth role instead of just including the extension?
Comment 2 Nemo 2014-07-27 17:19:22 UTC
(In reply to Kunal Mehta (Legoktm) from comment #1)
> What happens if you use the CentralAuth role instead of just including the
> extension?

"Just including the extension" is not something I did. Are you asking me to enable both the centralauth and globalcssjs roles together?
Comment 3 Nemo 2014-07-27 21:07:02 UTC
(In reply to Nemo from comment #2)
> "Just including the extension" is not something I did. 

Correction: as legoktm noted, by mistake I had forgotten to remove the CentralAuth.php inclusion.

> Are you asking me to
> enable both the centralauth and globalcssjs roles together?

Will retest later
Comment 4 Nemo 2014-07-27 23:22:44 UTC
Created attachment 16052 [details]
Installed stuff

Nope, I get the error nevertheless.

vagrant@nemobis:/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php includes
PHPUnit 3.7.37 by Sebastian Bergmann.

Configuration read from /srv/vagrant/mediawiki/tests/phpunit/suite.xml

[8923b28c] [no req]   Exception from line 79 of /srv/vagrant/mediawiki/includes/db/CloneDatabase.php: Cannot clone shared table objectcache.
Backtrace:
#0 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(544): CloneDatabase->cloneTableStructure()
#1 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(115): MediaWikiTestCase::setupTestDB(DatabaseMysqli, string)
#2 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(779): MediaWikiTestCase->run(PHPUnit_Framework_TestResult)
#3 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(749): PHPUnit_Framework_TestSuite->runTest(ArrayUtilsTest, PHPUnit_Framework_TestResult)
#4 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#5 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#6 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php(350): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean)
#7 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php(176): PHPUnit_TextUI_TestRunner->doRun(PHPUnit_Framework_TestSuite, array)
#8 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php(42): PHPUnit_TextUI_Command->run(array, boolean)
#9 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php(160): MediaWikiPHPUnitCommand::main()
#10 {main}
Comment 5 Kunal Mehta (Legoktm) 2014-07-27 23:32:25 UTC
Ok, I believe this is due to the CentralAuth role adding an objectcache table, which can't be cloned when running tests. What happens if you disable the globalcssjs role and enable the centralauth one? I think you should get the same error.
Comment 6 Nemo 2014-07-27 23:43:39 UTC
Tentatively moved here.
Comment 7 Kunal Mehta (Legoktm) 2014-07-30 21:08:52 UTC
So, this is actually a vagrant bug in the fact that CentralAuth no longer needs an objectcache table.

The creation of the table is going to be removed as part of https://gerrit.wikimedia.org/r/#/c/146440/, but for now you can just drop the table manually.
Comment 8 Bryan Davis 2014-08-19 23:49:16 UTC
The centralauth role no longer creates and configured the shared table. Kunal pointed out that our redis cache eliminated the need for it.

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


Navigation
Links