https://bugzilla.wikimedia.org/show_bug.cgi?id=70225
Bug ID: 70225
Summary: Freshly installed wiki fails with "Permission denied"
on PostgreSQL socket
Product: MediaWiki
Version: 1.24-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Database
Assignee: [email protected]
Reporter: [email protected]
Blocks: 384, 69281
Web browser: ---
Mobile Platform: ---
After running:
php -c "${HOME}/php.ini" maintenance/install.php --dbtype="postgres"
--dbname=${db} \
--dbuser=wikiuser --dbpass=${pass} \
--installdbuser=*someuser* --installdbpass=*somepassword* \
--server http://tools.wikimedia.pl --scriptpath "${script}" \
--showexceptions=true --pass test postgrestest WikiAdmin
a wiki installs fine, but the first invocation of /w/index.php gives:
(Cannot contact the database server: pg_connect(): Unable to connect to
PostgreSQL server: could not connect to server: Permission denied Is the server
running locally and accepting connections on Unix domain socket
"/run/postgresql/.s.PGSQL.5432"?)
Backtrace:
#0 w/includes/db/Database.php(822): DatabasePostgres->open('', 'wikiuser',
'*pass*', '*database*')
#1 w/includes/db/Database.php(919): DatabaseBase->__construct(Array)
#2 w/includes/db/LoadBalancer.php(717): DatabaseBase::factory('postgres',
Array)
#3 w/includes/db/LoadBalancer.php(591):
LoadBalancer->reallyOpenConnection(Array, false)
#4 w/includes/db/LoadBalancer.php(471): LoadBalancer->openConnection(0, false)
#5 w/includes/GlobalFunctions.php(3618): LoadBalancer->getConnection(-1, Array,
false)
#6 w/includes/page/WikiPage.php(379): wfGetDB(-1)
#7 w/includes/page/WikiPage.php(462): WikiPage->loadPageData()
#8 w/includes/page/WikiPage.php(515): WikiPage->exists()
#9 w/includes/page/WikiPage.php(222): WikiPage->getContentModel()
#10 w/includes/page/WikiPage.php(208): WikiPage->getContentHandler()
#11 w/includes/actions/Action.php(96): WikiPage->getActionOverrides()
#12 w/includes/actions/Action.php(149): Action::factory('view',
Object(WikiPage), Object(RequestContext))
#13 w/includes/MediaWiki.php(164):
Action::getActionName(Object(RequestContext))
#14 w/includes/MediaWiki.php(533): MediaWiki->getAction()
#15 w/includes/MediaWiki.php(460): MediaWiki->main()
#16 w/index.php(46): MediaWiki->run()
#17 {main}
LocalSettings.php include:
$wgDBtype = "postgres";
$wgDBserver = "";
$wgDBname = "*dbname*";
Running the installer with explicit --dbserver=localhost
php -c "${HOME}/php.ini" maintenance/install.php --dbtype="postgres"
--dbname=${db} \
--dbuser=wikiuser --dbpass=${pass} \
--dbserver=localhost \
--installdbuser=*user* --installdbpass=*pass* \
--server http://tools.wikimedia.pl --scriptpath "${script}" \
--showexceptions=true --pass test postgrestest WikiAdmin
Seems to create LocalSettings.php with
Now LocalSettings.php include:
$wgDBtype = "postgres";
$wgDBserver = "localhost";
$wgDBname = "*dbname*";
which indicates this is probably another intstance of bug 69291
--
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