Page 1 of 1

Dokuwiki permission error

Posted: Sun Jan 10, 2016 3:01 am
by notaduck
Hello. I have installed Dokuwiki through the appcenter and saw there was a bunch of updates!!
Then i thought the easiest way to update dokuwiki was to download the Upgrade plugon for automatic upgrade, but i keep getting this error?

Code: Select all

There was a file copy error while attempting to install files for plugin upgrade: the disk could be full or file access permissions may be incorrect. This may have resulted in a partially installed plugin and leave your wiki installation unstable.
My permissions is :

Code: Select all

[/share/Web] # ls -al
drwxrwxrwx    3 admin    administ      4096 Jan  9 16:44 ./
drwxrwxrwx   24 admin    administ      4096 Jan  9 07:56 ../
drwxrwxrwx    2 admin    administ      4096 Jan  8 19:58 @Recycle/
lrwxrwxrwx    1 admin    administ        40 Jan  9 16:44 dokuwiki -> /share/CACHEDEV1_DATA/.qpkg/DokuWiki/web/
-rw-r--r--    1 admin    administ      1601 Jan  8 19:58 index.php
But i have to admit I an not sure what the right permissions should be? first day with Qnap here

Re: Dokuwiki permission error

Posted: Sat Sep 09, 2017 10:20 pm
by pczekalski
Same here on TVS-473.
Install goes well, I can log in through admin/admin, change the admin password and there is no way you can install plugins via the web interface.
There must be some security/permission problem during install.

Regards,

P.

Re: Dokuwiki permission error

Posted: Fri Oct 20, 2017 9:49 pm
by dabo7
I know this is a REALLY old thread, but I found the solution to this. I had to manually change my permission settings for the .qpkg/DokuWiki/web/ and allow the update. Here's the steps I used on my TS-251+:

I logged in to the NAS using PuTTY and performed the following commands

Code: Select all

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # ls -la
total 164
drwxr-xr-x    3 admin    administ      4096 Oct 20 09:22 ./
drwxrwxrwx   34 admin    administ      4096 Oct 20 09:22 ../
-rw-r--r--    1 admin    administ    145380 Oct 20 09:22 .list
-rwxr-xr-x    1 admin    administ       800 Oct 20 09:22 .uninstall.sh*
-rwxr-xr-x    1 admin    administ      1672 Jul 20  2014 DokuWiki.sh*
drwxr-xr-x    7 admin    administ      4096 Jul 20  2014 web/
web/ needs to be changed to 777

Code: Select all

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # chmod -R 777 web

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # ls -la
total 164
drwxr-xr-x    3 admin    administ      4096 Oct 20 09:22 ./
drwxrwxrwx   34 admin    administ      4096 Oct 20 09:22 ../
-rw-r--r--    1 admin    administ    145380 Oct 20 09:22 .list
-rwxr-xr-x    1 admin    administ       800 Oct 20 09:22 .uninstall.sh*
-rwxr-xr-x    1 admin    administ      1672 Jul 20  2014 DokuWiki.sh*
drwxrwxrwx    7 admin    administ      4096 Jul 20  2014 web/
Install the DokiWiki upgrade plugin from within the DokuWiki page using the url from the plugin's main page "https://github.com/splitbrain/dokuwiki- ... all/master" and perform the DokuWiki upgrade. I then had to stop and re-start my QNAP DokuWiki instance. The page formatting was very messed up on the wiki but restarting it seemed to fix it. (Note: I did NOT use the default admin account. I made a new admin login account and deleted that old one. So not sure if that made a difference or not)

When you're done don't forget to set the web folder permissions back to the default:

Code: Select all

[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # chmod -R 755 web
[/share/CE_CACHEDEV1_DATA/.qpkg/DokuWiki] # ls -la
total 164
drwxr-xr-x    3 admin    administ      4096 Oct 20 09:22 ./
drwxrwxrwx   34 admin    administ      4096 Oct 20 09:22 ../
-rw-r--r--    1 admin    administ    145380 Oct 20 09:22 .list
-rwxr-xr-x    1 admin    administ       800 Oct 20 09:22 .uninstall.sh*
-rwxr-xr-x    1 admin    administ      1672 Jul 20  2014 DokuWiki.sh*
drwxr-xr-x    8 admin    administ      4096 Oct 20 09:39 web/
I'm assuming you'll have to continue these steps every time you attempt to install a plugin. So it's probably better to install most of the plugins you'll need all at once.

Hope this helps someone else out.

Re: Dokuwiki permission error

Posted: Sat Apr 27, 2019 1:31 am
by HighPG
Thank you dabo7! :geek: saved my day! :D

Re: Dokuwiki permission error

Posted: Sat Aug 31, 2019 4:29 am
by deljones
Fantastic.. This worked for me very well.. Thank you so much for sharing...

Derek