Hi,
I've been setting up MW 1.26 with Parsoid, Collection, OCG and Visual Editor. I'm having a few problems, but here's one I would appreciate a little help with.
When I make the wiki private by modifying LocalSettings.php with:
# Disable reading by anonymous users - private wiki
$wgGroupPermissions['*']['read'] = false;
# reading by anonymous users enabled 13/02/2015
# and changed 4/11/2015
# code snippet to help VisualEditor out
# as instructions seem to be a bit problematic
# for private wikis
if ( $_SERVER['REMOTE_ADDR'] == '127.0.0.1' ) {
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
}I've also separately enabled NetworkAuth, created a user called parsoid and at the same time included the following in LocalSettings.php:
# NetworkAuth
require_once "$IP/extensions/NetworkAuth/NetworkAuth.php";
$wgNetworkAuthUsers[] = array(
'iprange' => array('127.0.0.1/32'),
'user' => 'parsoid');When I comment out
$wgGroupPermissions['*']['read'] = false;
I can no longer generate a PDF of any pages using OCG. I get the following error.
[2015-12-06T03:26:42.174Z] INFO: mw-ocg-service/7106 on lamp: [0%]
Fetching wiki configuration: http://52.62.34.216/html/mediawiki (channel=backend.bundler.bin, details="")
job: {
"id": "55cff608a8064f01c5011d76f0a5ebffe89efed5",
"writer": "rdf2latex"
}
Cannot read property 'repos' of undefined
[2015-12-06T03:26:42.847Z] ERROR: mw-ocg-service/7106 on lamp: (channel=backend.bundler.bin, details="")
TypeError: Cannot read property 'repos' of undefined
at /var/local/OCG/mw-ocg-bundler/lib/metabook.js:254:15
at run (/var/local/OCG/mw-ocg-bundler/node_modules/core-js/modules/es6.promise.js:89:39)
at /var/local/OCG/mw-ocg-bundler/node_modules/core-js/modules/es6.promise.js:100:28
at doNTCallback0 (node.js:430:9)
at process._tickCallback (node.js:359:13)
--
job: {
"id": "55cff608a8064f01c5011d76f0a5ebffe89efed5",
"writer": "rdf2latex"
}
[2015-12-06T03:26:42.932Z] ERROR: mw-ocg-service/7106 on lamp: Bundling process died with non zero code: 1 (channel=backend.bundler.error)
BundlerError: Bundling process died with non zero code: 1
at /var/local/OCG/mw-ocg-service/lib/threads/backend.js:560:11
at run (/var/local/OCG/mw-ocg-service/node_modules/core-js/modules/es6.promise.js:89:39)
at /var/local/OCG/mw-ocg-service/node_modules/core-js/modules/es6.promise.js:100:28
at doNTCallback0 (node.js:430:9)
at process._tickCallback (node.js:359:13)
--
job: {
"id": "55cff608a8064f01c5011d76f0a5ebffe89efed5",
"writer": "rdf2latex"
}Is this a known bug? Should I be able to generate a PDF on a private wiki using the OCG?
VE works just fine with this configuration and yet the error appears to be associated with an authentication failure to the MW API.Happy to provide further details...