Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
The plugin repository could not be contacted.
Extension Manager can not check plugin repository.
Avatar
bpaddock #1
Member since Apr 2014 · 20 posts
Group memberships: Members
Show profile · Link to this post
Subject: The plugin repository could not be contacted.
Can someone tell me what outbound port I need to unblock to remove this message please?:

"The plugin repository could not be contacted. Make sure your server is allowed to contact www.dokuwiki.org and check your proxy settings."

I'm running DokuWiki on a Gentoo Virtual Server.  For security everything is locked up rather tight.
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3484 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Should be port 80. However just opening connections to dokuwiki.org won't help you much because Plugins are not hosted there. Maybe open 443 to the github servers at least.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
bpaddock #3
Member since Apr 2014 · 20 posts
Group memberships: Members
Show profile · Link to this post
Getting back to this as I may have found a security issue and want to make sure everything is up to date.

I'm not a PHP expert.  If I followed the code correctly it ends up at file repository.php that tries to access this url:

 https://www.dokuwiki.org/lib/plugins/pluginrepophpi.php

If I do this from the server prompt:

curl -i  https://www.dokuwiki.org/lib/plugins/pluginrepophpi.php

I get a file that looks like version information for plugins, as I would expect.

So what is it telling me that curl from the prompt can access the file but repository.php can not?
Avatar
Klap-in #4
Member since Nov 2009 · 239 posts · Location: Alkmaar, The Netherlands
Group memberships: Documentation Team, Members
Show profile · Link to this post
I don't understand your observation.
What are you seeing?

The url you mention doesn't exist so far I see.
Existing files should be: https://github.com/splitbrain/dokuwiki-plugin-pluginrepo
Do you mean lib/plugins/pluginrepo/api.php
e.g. https://www.dokuwiki.org/plugin:repository:api
Avatar
bpaddock #5
Member since Apr 2014 · 20 posts
Group memberships: Members
Show profile · Link to this post
"The url you mention doesn't exist so far I see."

Yeah, somethng got lost along the way not sure where, sorry.


dokuwiki/lib/plugins/extension/helper/repository.php has this:

 * DokuWiki Plugin extension (Helper Component)


#define('EXTENSION_REPOSITORY_API', 'http://localhost/dokuwiki/lib/plugins/pluginrepo/api.php');

if (!defined('EXTENSION_REPOSITORY_API_ENDPOINT'))
    define('EXTENSION_REPOSITORY_API', 'http://www.dokuwiki.org/lib/plugins/pluginrepo/api.php');


which is called indirectly from dokuwiki/lib/plugins/extension/admin.php

to set the value of hasAccess.

As far as I can tell hasAccess is set to false by php while I can access that URL from the command line.
I can only assume I have something configured incorrectly someplace.  The quesion is where?

I don't see where github gets invovled unless it is via the data returned by the api file?
Avatar
Klap-in #6
Member since Nov 2009 · 239 posts · Location: Alkmaar, The Netherlands
Group memberships: Documentation Team, Members
Show profile · Link to this post
The api provides in its information about plugins, also the download urls of the plugins. Many of these plugins are hosted at github.
If you allow github as well in your configuration, then you will enabling downloading of many of these plugins.

Most times the plugins at github can be easier reviewed and are more probably better maintained.
This post was edited on 2015-06-24, 08:46 by andi.
Edit reason: fixed wrong word
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-10-16, 07:29:23 (UTC +02:00)