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:  previous  1  2  3 
Avatar
schplurtz (Moderator) #31
Member since Nov 2009 · 463 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 64818
so I guess the certs are not the main issue here?
Can't really say. I'd say : The ca certs are not the only prolem here.
Avatar
Michaelsy #32
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
From me a hint on possible workarounds:

1.) Uninstall the plugin and install it again via the "Manual Install" option. There you can specify a file that you have downloaded yourself.

2.) Another way is to install or update a plugin in a pure manual way. "Pure manual" means here, to copy the files directly via file access to your server.

This is relatively easy as no further installation is required. For example, it is not necessary to register the plugin in a configuration file. Simply copy the plugin's files into DokuWiki's plugin directory (/lib/plugins/) and everything is done. (Every plugin has its own directory.)

If you want to update a plugin you have only to delete the existing plugin files before you copy. (In very rare cases, there may be plugins that store data in their directory. If necessary, this would have to be taken into account.)

As far as the file permissions and the owner are concerned, you can orient yourself to the existing plugins.

3.) But the problem will probably reappear when you try to update DokuWiki via the upgrade plugin. In this case, you can also apply workarounds in some more or less tricky or costly ways.

Added: Upgrading DokuWiki (without upgrade plugin)

HTH - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited 3 times, last on 2019-02-12, 20:32 by Michaelsy.
Avatar
Exzellius #33
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
So I tried upgrading the plugins "manually" by downloading the zip-Files and giving it to the "manual install" option as suggested by you Michaelsy
the problem with that is, that I get an error that seems odd, like the apache is blocking something or crashing :/ error-screenshot attached to this post
I will try now to complete manual install the plugin
any idea why apache seems to have a problem with the .zip-File?
The author has attached one file to this post:
Dokuwiki-patch-error.png 23.6 kBytes
You have no permission to open this file.
Avatar
schplurtz (Moderator) #34
Member since Nov 2009 · 463 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
any idea why apache seems to have a problem with the .zip-File?
Zip is such a common extension , I can't believe your new PHP 7.0 has no ZIP support. But, just in case, check with phpinfo(). Maybe, you have to enable ZIP...

500 internal error could also happen because of a memory or time limit. do you see anything interresting in apache log ? (/var/log/apache or similar)
I don't think that could cause a 500 internal error, but this is worth checking as it takes only one minute :
What are the basic permissions on lib/tpl and lib/plugins ? Feel free to paste ls -la lib/plugins lib/tpl result (and ps -ef | grep -e apache -e http -e php) if you're not sure to understand what you get.
And last (but maybe not least), does by chance your server use selinux ? What does getenforce give ?
Avatar
Exzellius #35
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

I checked for zip in phpinfo, found the following:
Apache Environment
=============
HTTP_ACCEPT_ENCODING    gzip, deflate, br

HTTP Headers Information
================
Accept-Encoding    gzip, deflate, br

PHP Variables
========
$_SERVER['HTTP_ACCEPT_ENCODING']    gzip, deflate, br

Module Authors
==========
Bzip2    Sterling Hughes
Zip    Pierre-Alain Joye, Remi Collet
is that fine?

also here are the permissions on lib/tpl and lib/plugins and a ps -ef | grep -e apache -e http -e php
viswiki01:~/dokuwiki # ls -ltra
total 100
-rwxr-xr-x  1 wwwrun www  18092 Aug 23  2015 COPYING
drwxr-xr-x  8 wwwrun www    104 Nov 27  2015 lib
-rwxr-xr-x  1 wwwrun www  19374 Jul 14  2016 feed.php
-rwxr-xr-x  1 wwwrun www    306 Jul 14  2016 README
-rwxr-xr-x  1 wwwrun www  20700 May 26  2017 install.php
-rwxr-xr-x  1 wwwrun www     33 May 26  2017 VERSION
drwxr-xr-x  8 wwwrun www    141 Sep 19  2017 vendor
drwxr-xr-x 12 wwwrun www    236 Mar 28  2018 data
-rwxr-xr-x  1 wwwrun www   3673 Jan 18 09:22 doku.php
drwxr-xr-x  2 wwwrun www    142 Jan 18 09:25 bin
-rwxr-xr-x  1 root   root   381 Feb  4 08:59 test.php
-rwxr-xr-x  1 wwwrun www   2097 Feb  4 09:06 index.php
drwxr-xr-x  7 wwwrun www   4096 Feb  4 09:10 inc
-rwxr-xr-x  1 wwwrun www   1868 Feb  4 09:49 .htaccess
-rwxr-xr-x  1 root   root    32 Feb 11 07:02 phpinfo.php
drwxr-xr-x  8 wwwrun www    241 Feb 11 07:36 .
drwxr-xr-x  7 root   root   131 Feb 12 13:40 ..
drwxr-xr-x  5 wwwrun www   4096 Feb 12 13:49 conf
viswiki01:~/dokuwiki # cd lib/
viswiki01:~/dokuwiki/lib # ls -ltra
total 16
-rwxr-xr-x  1 wwwrun www  241 Aug 23  2015 index.html
drwxr-xr-x  3 wwwrun www 4096 Nov 27  2015 scripts
drwxr-xr-x  8 wwwrun www 4096 Nov 27  2015 images
drwxr-xr-x  8 wwwrun www  104 Nov 27  2015 .
drwxr-xr-x  2 wwwrun www  205 May 26  2017 exe
drwxr-xr-x  2 wwwrun www  108 Aug 30  2017 styles
drwxr-xr-x  3 wwwrun www   39 Aug 30  2017 tpl
drwxr-xr-x  8 wwwrun www  241 Feb 11 07:36 ..
drwxr-xr-x 35 wwwrun www 4096 Feb 12 13:50 plugins
viswiki01:~/dokuwiki/lib # ls -ltra plugins/
total 44
-rwxr-xr-x  1 wwwrun www   4438 Aug 23  2015 syntax.php
-rwxr-xr-x  1 wwwrun www    244 Aug 23  2015 index.html
-rwxr-xr-x  1 wwwrun www    665 Aug 23  2015 action.php
drwxr-xr-x  6 wwwrun www    233 Nov 27  2015 wrap
drwxr-xr-x  2 wwwrun www     47 Nov 27  2015 safefnrecode
drwxr-xr-x  2 wwwrun www     47 Nov 27  2015 info
drwxr-xr-x  8 wwwrun www    104 Nov 27  2015 ..
drwxr-xr-x  6 wwwrun www    207 Jan 26  2016 gallery
drwxr-xr-x  3 wwwrun www    225 Jan 26  2016 vshare
drwxr-xr-x  7 wwwrun www    212 Jan 26  2016 tag
drwxr-xr-x  7 wwwrun www    255 Apr 21  2016 include
drwxr-xr-x  5 wwwrun www    221 Apr 26  2016 blog
-rwxr-xr-x  1 wwwrun www   3124 Jul 14  2016 remote.php
-rwxr-xr-x  1 wwwrun www  15450 Jul 14  2016 auth.php
drwxr-xr-x 10 wwwrun www    224 Jan  3  2017 move
drwxr-xr-x  3 wwwrun www     97 Feb 15  2017 color
drwxr-xr-x  4 wwwrun www    154 Mar 13  2017 loglog
drwxr-xr-x  4 wwwrun www    147 Apr 13  2017 csv
drwxr-xr-x  4 wwwrun www    104 Apr 13  2017 newpagetemplate
drwxr-xr-x  4 wwwrun www    123 May 26  2017 usermanager
drwxr-xr-x  3 wwwrun www    174 May 26  2017 styling
drwxr-xr-x  3 wwwrun www     75 May 26  2017 revert
drwxr-xr-x  3 wwwrun www    111 May 26  2017 popularity
drwxr-xr-x  5 wwwrun www    172 May 26  2017 extension
-rwxr-xr-x  1 wwwrun www   2571 May 26  2017 admin.php
drwxr-xr-x  5 wwwrun www    101 Aug 17  2017 forcessllogin
drwxr-xr-x  8 wwwrun www    272 Sep  7  2017 dw2pdf
drwxr-xr-x  5 wwwrun www    212 Oct  9  2017 hidden
drwxr-xr-x  7 wwwrun www    216 Oct 19  2017 bureaucracy
drwxr-xr-x  4 wwwrun www    179 Dec 22  2017 cloud
drwxr-xr-x  3 wwwrun www    135 Jan 16  2018 rdplink
drwxr-xr-x  5 wwwrun www    101 Jan 31  2018 authad
drwxr-xr-x  3 wwwrun www     57 Jan 31  2018 authplain
drwxr-xr-x  5 wwwrun www    122 Jan 31  2018 config
drwxr-xr-x  4 wwwrun www    106 Jan 31  2018 authchained
drwxr-xr-x  4 wwwrun www    127 Feb  8  2018 addnewpage
drwxr-xr-x  4 wwwrun www    135 Feb  8  2018 pagelist
drwxr-xr-x  4 wwwrun www    156 Mar  5  2018 acl
drwxr-xr-x  3 wwwrun www    159 Jan 24 23:43 upgrade
drwxr-xr-x  4 root   root   140 Feb 12 13:50 temp
drwxr-xr-x 35 wwwrun www   4096 Feb 12 13:50 .
viswiki01:~/dokuwiki/lib # ls -ltra tpl/
total 4
-rwxr-xr-x 1 wwwrun www 2084 Aug 23  2015 index.php
drwxr-xr-x 8 wwwrun www  104 Nov 27  2015 ..
drwxr-xr-x 3 wwwrun www   39 Aug 30  2017 .
drwxr-xr-x 5 wwwrun www  204 Aug 30  2017 dokuwiki
viswiki01:~/dokuwiki/lib # ps -ef | grep -e apache -e http -e php
root      1678     1  0 Feb12 ?        00:00:02 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    1815  1678  0 Feb12 ?        00:00:01 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    1816  1678  0 Feb12 ?        00:00:01 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    1817  1678  0 Feb12 ?        00:00:00 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    1818  1678  0 Feb12 ?        00:00:01 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    1819  1678  0 Feb12 ?        00:00:02 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    2562  1678  0 Feb12 ?        00:00:01 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    2563  1678  0 Feb12 ?        00:00:00 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
wwwrun    2564  1678  0 Feb12 ?        00:00:00 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -DSYSTEMD -DFOREGROUND -k start
root     20515 19380  0 07:40 pts/0    00:00:00 grep --color=auto -e apache -e http -e php
getenforce doesn't exist on the system, so I guess no selinux?

###EDIT
oh right the logfiles
I checked those too, /var/log/apache2/error_log /var/log/apache2/ssl_request_log /var/log/apache2/access_log
no activity to see in these files when I get the http 500 error except the posting of the 500-page
###EDIT END

I'll try next to upgrade manually by copying the files to the server and upgrade dokuwiki this way to see if that resolves the issue.
I will however take a backup of the current dokuwiki-folder to recreate the issue if needed.

Thanks
Dominik
This post was edited on 2019-02-13, 07:33 by Exzellius.
Avatar
schplurtz (Moderator) #36
Member since Nov 2009 · 463 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Files are good.

As for the Zip extension. I'm afraid I made a huge mistake. DW does not use Zip extension.
It has its own Zip library.

Sorry for the noise and the time wasted.

You say there is nothing in the log. A 500 error should be reported somewhere. Try to raise the verbosity of PHP. I don't know how to do this...
Avatar
Exzellius #37
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

ok this helped a lot, now I got a file that is causing the 500-return
I followed the guide here: https://stackoverflow.com/questions/845021/how-to-get-usef…
to set php7 to verbose
following error was posted instead of the 500 return:
Fatal error: Uncaught Error: Call to undefined function splitbrain\PHPArchive\gzopen() in /srv/www/htdocs/dokuwiki/vendor/splitbrain/php-archive/src/Zip.php:206 Stack trace: #0 /srv/www/htdocs/dokuwiki/lib/plugins/extension/helper/extension.php(1058): splitbrain\PHPArchive\Zip->extract('/srv/www/htdocs...') #1 /srv/www/htdocs/dokuwiki/lib/plugins/extension/helper/extension.php(870): helper_plugin_extension_extension->decompress('/srv/www/htdocs...', '/srv/www/htdocs...') #2 /srv/www/htdocs/dokuwiki/lib/plugins/extension/helper/extension.php(579): helper_plugin_extension_extension->installArchive('/srv/www/htdocs...', true, 'splitbraindokuw...') #3 /srv/www/htdocs/dokuwiki/lib/plugins/extension/admin.php(117): helper_plugin_extension_extension->installFromUpload('installfile') #4 /srv/www/htdocs/dokuwiki/inc/actions.php(171): admin_plugin_extension->handle() #5 /srv/www/htdocs/dokuwiki/doku.php(123): act_dispatch() #6 {main} thrown in /srv/www/htdocs/dokuwiki/vendor/splitbrain/php-archive/src/Zip.php on line 206

Greetings
Dominik
Avatar
schplurtz (Moderator) #38
Member since Nov 2009 · 463 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Line 206 reads this :
  1. $gzp = @gzopen($extractto, 'rb');
I suspect that gzopen does not exists on your system. I'm not a PHP dev, so I'm not sure how PHP actually looks for function. But it could be this : "If a global function does not exist, look for it in the current class". Since there is no gzopen in the Zip class, PHP gives up and sends the error message.
Can you try this test.php file ?
<?php
echo "Zlib gzopen exists : ";
if( function_exists("gzopen")) { echo "YES"; } else { echo "no :-("; }'

Thanks to the error message, others will be able to propose better explanations, should I be wrong again.
Avatar
Exzellius #39
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hi,

that gives me
Zlib gzopen exists : no :-(
so I guess I need to install the gzip plugin for php or something?
gzip is installed on the system, same for the php7-zip plugin
viswiki01:~/dokuwiki # zypper se zip
Reading installed packages...

S  | Name             | Summary                                                     | Type
---+------------------+-------------------------------------------------------------+--------
i  | bzip2            | A Program for Compressing Files                             | package
   | bzip2-doc        | The bzip2 program and Library Documentation                 | package
i  | gzip             | GNU Zip Compression Utilities                               | package
   | libzip-devel     | C library for reading, creating, and modifying zip archives | package
   | libzip2          | C library for reading, creating, and modifying zip archives | package
   | libzzip-0-13     | Free zip compression library with easy to use API           | package
   | p7zip            | 7-zip file compression program                              | package
   | perl-Archive-Zip | Provide an interface to ZIP archive files.                  | package
   | php5-zip         | PHP5 Extension Module                                       | package
i+ | php7-zip         | PHP7 Extension Module                                       | package
i  | unzip            | A program to unpack compressed files                        | package
i  | zip              | File compression program                                    | package
   | zziplib-devel    | Free zip compression library with easy to use API           | package
Avatar
schplurtz (Moderator) #40
Member since Nov 2009 · 463 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
so I guess I need to install the gzip plugin for php or something?
Yes, or maybe load an extension with some php.ini directive. I really don't know.
In the list you provided, I just don't see which package could solve your problem.

Not that we're unwilling to help, but you'll probably get better help on a SLES forum or mailing list.

Please report the solution here as it may help others.
Avatar
Exzellius #41
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Hey there

it's been a while since my last update on this topic.
I exerimented with a lot of stuff, uncluding other distros, other versions of dokuwiki, fresh installs, migrations etc.etc.

the big picture right now looks like the following:
OS: SLES12 SP4
Hostname: viswiki01
Apache Version: 2.4.23-29.27.2
PHP Version: 7.0.7-50.56.2
PHP Plugins Installed: php7-ctype, php7-dom, php7-iconv, php7-json, php7-ldap, php7-mcrypt, php7-openssl, php7-pdo, php7-sqlite, php7-tokenizer, php7-xmlreader, php7-xmlwriter, php7-zlib
OpenSSL Version: 1.0.2p-3.3.1

there are 2 Dokuwiki-Releases under /srv/www/htdocs/
one is dokuwiki_functioning
Dokwuki-Release: 2018-04-22b "Greebo"
one is dokuwiki_broken
Dokuwiki-Release: 2017-02-19b "Frusterick Manners"

as the names let you think, one of them is working fine, one of them is not working.

quick recap: the issue is upon clicking the Update/Install Button for any Plugin, the error
"Download der Datei: https://github.com/rztuc/dokuwiki-plugin-authchained/archi… nicht möglich."
gets displayed, this happens with the broken one, not with the functioning one

so there needs to be a difference in how these two folders/Releases behave when interacting with github I guess ...
I can zip the folders and upload them if anyone is interested in the issue

I have looked in both folders and can't find any difference between broken and functioning which would cause this, but I am no php-developer :/

I would simply use the functioning one but this is a fresh install of dokuwiki, so none of my pages, media, revisions etc are in there.

does anyone have any idea on how to solve this?

Every help is appreciated.
Greetings
Dominik
Avatar
andi (Administrator) #42
User title: splitbrain
Member since May 2006 · 3471 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Exzellius:
one is dokuwiki_functioning
Dokwuki-Release: 2018-04-22b "Greebo"
one is dokuwiki_broken
Dokuwiki-Release: 2017-02-19b "Frusterick Manners"

Well, the broken one is older. It might simply be a problem that has been fixed in Greebo?
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Exzellius #43
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Might be the case,
I'll try updating the broken one to a newer release and check if the problem stays.
This post was edited on 2019-04-09, 15:34 by Exzellius.
Avatar
turnermm (Moderator) #44
Member since Oct 2009 · 4690 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post ID 64817
You can get a valid certificate using letsencrypt:
   https://letsencrypt.org/getting-started/
and the following script:
   https://github.com/Neilpang/acme.sh
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Exzellius #45
Member since Jan 2019 · 26 posts · Location: Bamberg
Group memberships: Members
Show profile · Link to this post
Well ... shame on me
Upgrading to the latest version of Dokuwiki (Greebo) fixed the issue for installing/upgrading plugins.
Thanks everyone for the help, I guess I made this more complicated that I needed to, sorry for that :/

Greetings
Dominik
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:  previous  1  2  3 
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-24, 02:38:17 (UTC +02:00)