Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
can't update plugins (solved)
download of plugin packages failes
Page:  1  2  3  next 
Avatar
Exzellius #1
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Subject: can't update plugins (solved)
Hey there,

I've got the problem that I can't update my plugins cause the download of the packages fails.
First some info about my setup:
Dokuwiki release: Release 2017-02-19b "Frusterick Manners"
OS: SLES11 SP4
Webserver: Apache2 (2.2.12-64.1)
PHP: 5.3.17-87.1

if you need any additional information, just ask I'll be more than happy to provide everything you need.

Communication to internet is going through a proxy server.
Communication through proxy works fine as wget on OS-site works fine with the download.

I found a forum post with a similar issue and there was a test.php-File described with the following content:
<?php
if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/');
require_once(DOKU_INC.'inc/init.php');

header('Content-Type: text/plain; charset=utf-8');

$http = new DokuHTTPClient();
$foo = $http->get('https://github.com/rztuc/dokuwiki-plugin-authchained/archive/master.zip');

var_dump($http->error);
var_dump($http->resp_headers);
var_dump($http->status);
when I call this file in browser I get the following return:
string(59) "Failed to set up crypto for secure connection to github.com"
array(0) {
}
int(-151)

the problem is: I have absolutely no idea what this error means, cause I don't know how php works.
Seems to me as if the server would have a problem with SSL to connect to github.

Has anyone an idea on how to fix this issue?
I wanted to update my wiki to a newer release but first I need to update my "Update"-Plugin. :/

Greetings,
Dominik
This post was edited on 2019-04-11, 15:29 by Exzellius.
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3411 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Exzellius:
PHP: 5.3.17-87.1

This is too old to run a newer DokuWiki release.

Quote by Exzellius:
string(59) "Failed to set up crypto for secure connection to github.com"

Seems like your PHP setup is missing SSL support. Might be an additional package on your distro.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Exzellius #3
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Quote by andi:
Quote by Exzellius:
PHP: 5.3.17-87.1

This is too old to run a newer DokuWiki release.

I know, I just want to update the "update"-plugin, then the update plugin will tell me iI need to update php, no problem
I got php version 7.0.7-50.56.2 available on the distro

Quote by andi:
Quote by Exzellius:
string(59) "Failed to set up crypto for secure connection to github.com"

Seems like your PHP setup is missing SSL support. Might be an additional package on your distro.

I got the package php5-openssl (5.5.14-109.45.2) installed and if I list the active php mods there is openssl in the list
so this should work fine as far as I understand it

Greets Dominik
Avatar
andi (Administrator) #4
User title: splitbrain
Member since May 2006 · 3411 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Your very old PHP version maybe uses outdated crypto? Or maybe it is missing the proper certificates to verify github's cert?
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Exzellius #5
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Thats possible. Do you think it might help if I update the Php Version? I thought maybe I get more trouble in if I do that ;)
Avatar
Exzellius #6
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
hm now that I uninstalled php5 and installed php7 with all mods that php5 had, php doesn't even get's executed I guess cause the server is giving me the downloads of pages instead of executing the php content
Avatar
Exzellius #7
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
ok I was missing the activation of php in apache ... sorry, at the moment there is the same issue with the php7 :/ same with test.php etc.
any ideas?
Avatar
Exzellius #8
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
In reply to post #4
Quote by andi:
Your very old PHP version maybe uses outdated crypto? Or maybe it is missing the proper certificates to verify github's cert?

about missing the proper cert, don't know much about certificates
how can I check that?

but I don't think thats the issue, I can wget that file from OS-site so certificate should not be the issue I guess?

thanks for your effort btw :) really appreciate that
Avatar
Exzellius #9
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

any more ideas on that? I still got the problem of not being able to update my plugins.
Setup atm:
Dokuwiki release: Release 2017-02-19b "Frusterick Manners"
OS: SLES12 SP4
Webserver: Apache2 (2.4.23-29.27.2)
PHP: 7.0.7-50.56.2

Communication to internet is going through a proxy server.
Communication through proxy works fine as wget on OS-site works fine with the download.

I found a forum post with a similar issue and there was a test.php-File described with the following content:
<?php
if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/');
require_once(DOKU_INC.'inc/init.php');

header('Content-Type: text/plain; charset=utf-8');

$http = new DokuHTTPClient();
$foo = $http->get('https://github.com/rztuc/dokuwiki-plugin-authchained/archive/master.zip');

var_dump($http->error);
var_dump($http->resp_headers);
var_dump($http->status);
when I call this file in browser I get the following return:
string(59) "Failed to set up crypto for secure connection to github.com"
array(0) {
}
int(-151)

any help for me?

Greetings
Dominik
Avatar
Exzellius #10
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

could anyone please be so kind and help me? getting pretty frustated with this problem, don't know what else I could try :(
Avatar
virk #11
Member since Aug 2008 · 606 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
1) Can you append a "?do=check" to your url to the wiki?
2) Can you grant access to your wiki from outside?
Avatar
Exzellius #12
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

sure, here's the output of the do=check:
DokuWiki version: Release 2017-02-19b "Frusterick Manners"
PHP version 7.0.7
More than 32MB RAM (134217728 bytes) available.
Changelog is writable
conf directory is writable
mb_string extension not available - PHP only replacements will be used
Valid locale LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C found.
Debugging support is disabled
You are currently logged in as hohner (Dominik Hohner)
You are part of the groups <a gigantic list of groups from the AD>
Your current permission for this page is 255
The current page is writable by the webserver
The current page is writable by you
The search index seems to be working
Server time seems to be okay. Diff: -1s

I don't think I can provide outside access to the wiki,
if you want to debug or see yourself, I could set up a webex, if you want.

Thanks for the reply.

Greetings
Dominik
Avatar
virk #13
Member since Aug 2008 · 606 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
1) Can it be related to the missing mb_string extension? I just googled "dokuwiki" and "mbstring" and got some results.
2) Could it be senseful to install an up-to-date-2nd dokuwiki-dummy on same server in parallel?
Avatar
Exzellius #14
Member for 3 months · 25 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

1) Can it be related to the missing mb_string extension? I just googled "dokuwiki" and "mbstring" and got some results.
could be, thank you for this hint, I'll see if I can fix that issue and if it works then
###EDIT###
I installed the mbstring-plugin for php, now the error on do=check is gone, instead it says:
mb_string extension is available and will be used
seems fine for now, updating plugins still does not work unfortunately
###EDIT###
2) Could it be senseful to install an up-to-date-2nd dokuwiki-dummy on same server in parallel?
would be possible, you mean to check if it's a problem in this dokuwiki release?

Greetings
Dominik
This post was edited on 2019-02-08, 11:39 by Exzellius.
Avatar
virk #15
Member since Aug 2008 · 606 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
You are fast :-) I just meant, for to ensure that you haven't got an error in your dokuwiki-files.

1) Clear all caches!
2) Deactivate all plugins and only try to update with the really necessary ones!
This post was edited on 2019-02-08, 11:44 by virk.
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:
Page:  1  2  3  next 
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-04-26, 00:04:18 (UTC +02:00)