https://bugzilla.wikimedia.org/show_bug.cgi?id=28836
Web browser: ---
Bug #: 28836
Summary: ForeignDBRepo fails to connect to database server
Product: Wikimedia
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Using the following configuration from the toolserver:
$wgForeignFileRepos[] = array(
'class' => 'ForeignDBRepo',
'name' => 'shared',
'url' => 'http://upload.wikimedia.org/wikipedia/commons/',
'hashLevels' => 2,
'dbType' => 'mysql',
'dbServer' => 'commonswiki-p.rrdb',
'dbName' => 'commonswiki_p',
'dbUser' => $wgDBuser,
'dbPassword' => $wgDBpassword
);
api.php returns the following:
<?xml version="1.0"?>
<api servedby="wolfsbane">
<error code="internal_api_error_DBConnectionError" info="Exception Caught: DB
connection error: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)" xml:space="preserve">
#0 /home/valhallasw/src/phase3/includes/db/DatabaseMysql.php(131):
DatabaseBase->reportConnectionError(' Can't connect ...')
#1 /home/valhallasw/src/phase3/includes/db/Database.php(518):
DatabaseMysql->open(false, 'valhallasw', '...', 'commonswiki_p')
#2 /home/valhallasw/src/phase3/includes/db/Database.php(566):
DatabaseBase->__construct(false, 'valhallasw', '...', 'commonswiki_p', 0, 'get
from global')
#3 /home/valhallasw/src/phase3/includes/filerepo/ForeignDBRepo.php(47):
DatabaseBase::newFromType('mysql', Array)
#4 /home/valhallasw/src/phase3/includes/filerepo/LocalFile.php(257):
ForeignDBRepo->getMasterDB()
#5 /home/valhallasw/src/phase3/includes/filerepo/LocalFile.php(328):
LocalFile->loadFromDB()
#6 /home/valhallasw/src/phase3/includes/filerepo/LocalFile.php(556):
LocalFile->load()
#7 /home/valhallasw/src/phase3/includes/filerepo/FileRepo.php(120):
LocalFile->exists()
#8 /home/valhallasw/src/phase3/includes/filerepo/FileRepo.php(173):
FileRepo->findFile(Object(Title), Array)
#9 /home/valhallasw/src/phase3/includes/filerepo/RepoGroup.php(188):
FileRepo->findFiles(Array)
#10 /home/valhallasw/src/phase3/includes/api/ApiQueryImageInfo.php(81):
RepoGroup->findFiles(Array)
#11 /home/valhallasw/src/phase3/includes/api/ApiQuery.php(268):
ApiQueryImageInfo->execute()
#12 /home/valhallasw/src/phase3/includes/api/ApiMain.php(667):
ApiQuery->execute()
#13 /home/valhallasw/src/phase3/includes/api/ApiMain.php(351):
ApiMain->executeAction()
#14 /home/valhallasw/src/phase3/includes/api/ApiMain.php(335):
ApiMain->executeActionWithErrorHandling()
#15 /home/valhallasw/src/phase3/api.php(130): ApiMain->execute()
#16 /home/valhallasw/src/tsapi/api.php(83): require('/home/valhallas...')
#17 {main}
</error>
</api>
This has probably been introduced in r80864.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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