Koozali.org: home of the SME Server

Dokuwiki: issue after a server upgrade from SME8 to SME9

Offline Arnaud

  • *
  • 143
  • +0/-0
    • GuedeL
Dokuwiki: issue after a server upgrade from SME8 to SME9
« on: December 08, 2015, 08:48:03 PM »
Good evening boys and girls  :shock:,

I get following issue with dokuwiki:

The environment:  testing the migration from SME8 to SME9 on a virtual machine
The current situation:
  • the "SME8-prod" of production. Dokuwiki installed according to the wiki ,running well.
  • "SME9-clone": a clone of the "SME8-prod", based on a SME9, running on proxmox VM.
    To build it, I normally installed a new SME9 , I ran a backup of "SME8-prod" on it and I made such necessary post modifications, like setting up yum for SME9 again.
    After this, I installed the different contribs on the SME9. Now it's the turn of smeserver-dokuwiki
  • dokuwiki is running on the "SME9-clone", but I can't see the pages that I created on the "SME8-prod". This pages are physically present on SME9-clone (I can see the files in /var/lib/dokuwiki/data/pages/) but thtey  are not displayed (neither as page or in the tree), neither by loggin as "admin".
  • The default pages of dokuwiki (startr+wiki+sandbox+ etc...) are present and visible.
The tests:
  • checking the permission of "my" pages of dokuwiki: OK
  • reload the folders /etc/dokuwiki and /var/lib/dokuwiki from the SME8-prod to the SME9-clone and verify the permissions again.
  • according to the official documentation of dokuwiki, the needed files for a backup are present into these 2 folders, except the folder (or  file?) "conf"!!
  • I checked the version of the rpms of "dokuwiki" and "smeserver-dokuwiki": they are not the same betwenn SME8 and SME9:
    smeserver-dokuwiki:
    SME8: Version    : 0.1.6 Release    : 1.el5.fws
    SME9: Version    : 0.1.6 Release    : 1.el6.fws

    dokuwiki:
    SME8: Version    : 20150810a Release    : 1.el5.fws
    SME9: Version    : 20150810a Release    : 3.el6.fws

    ==> Is it the reason of the problem?
Questions:
what shall I do to get my pages visible  on "SME9-clone"? How do you have solve this?
Bad solutions:
  • recopy each page and rebuild the tree by hand   :evil::
  • try a backup plugin of dokuwiki.

Thanks for your information.
Bye
Arnaud

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
« Reply #1 on: December 09, 2015, 09:16:19 AM »
It certainly works, I've migrated 3 Dokuwiki instances on the past month. The only files/directory needed for the data themselve are:

Code: [Select]
/etc/dokuwiki/acl.auth.php
/etc/dokuwiki/acronyms.conf
/etc/dokuwiki/entities.conf
/etc/dokuwiki/interwiki.conf
/etc/dokuwiki/local.php
/etc/dokuwiki/plugins.local.php
/etc/dokuwiki/scheme.conf
/var/lib/dokuwiki/data/attic
/var/lib/dokuwiki/data/index
/var/lib/dokuwiki/data/media
/var/lib/dokuwiki/data/media_attic
/var/lib/dokuwiki/data/media_meta
/var/lib/dokuwiki/data/meta
/var/lib/dokuwiki/data/pages

(you can see it's just a subset of /etc/dokuwiki and /var/lib/dokuwiki/data).

If you also want to migrate manually installed plugins, you can run:

Code: [Select]
for D in /usr/share/dokuwiki/lib/plugins/*;do
  rpm -qf $D >/dev/null 2>&1 || echo $D
done

It'll print every files which doesn't belongs to an installed rpm
C'est la fin du monde !!! :lol:

Offline Arnaud

  • *
  • 143
  • +0/-0
    • GuedeL
Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
« Reply #2 on: December 09, 2015, 10:33:52 PM »
Hello Daniel,
the good news is that it works by you --> it's "only" a local issue.
The bad is that it still refuse to work by me!

I copied again each folder that you indicate, gave the right permissions (apache:www).......nothing happens  :sad:
I notice that the menu tree stays empty, even for all the default pages of dokuwiki (in spite they are on the source SME) --> the plugin seems not to see them

How do you migrate:
1) install of the contribs and 2) copy the folders
or
1) copy the folders and 2) install the contribs (like I did - I hope that this is the mistake in spite it's the normal procedure for restoration from backups)

Thanks.
Arnaud

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
« Reply #3 on: December 09, 2015, 10:40:49 PM »
I usually copy the folders, then reinstall the contrib, but the order doesn't really matter
C'est la fin du monde !!! :lol:

Offline Arnaud

  • *
  • 143
  • +0/-0
    • GuedeL
Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
« Reply #4 on: December 10, 2015, 09:25:54 PM »
EUREKA!!  :lol:

the mistake was once again placed between the chair and the screen....... :oops:

In the dokuwiki of the SME source, I enabled the acceptance of capital letters and blanks for the name of the pages.
All the names of my pages start with capital letter.

This acceptance is disabled by default in dokuwiki --> the pages with capital letters are simply ignored......................... :roll:

Here https://www.guedel.eu/dokuwiki/doku.php?id=Welcome:SME-server:Setup%20of%20dokuwiki is how to proceed:

Enable pages names with capital letters

In a console of the SME-server: edit /usr/share/dokuwiki/inc/pageutils.php and comment out the line $id=utf8_strtolower($id); with /* and */

Code: [Select]
# cd /usr/share/dokuwiki/inc/
# cp pageutils.php pageutils.php.orig
# nano pageutils.php

Enable the "spaces" in the pages names

In a console of the SME-server: edit /usr/share/dokuwiki/lib/plugins/config/settings/extra.class.php and add a “space” (=blank) between the “.” and the “ ' ” in $str = '_-.'; in the function setting_sepchar (a few lines after “Class setting_sepchar”):

Code: [Select]
# cd /usr/share/dokuwiki/lib/plugins/config/settings/
# cp extra.class.php extra.class.php.orig
# nano extra.class.php
       -->  $str = '_-. ';

In Dokuwiki, login as admin and go to “administration” –> “parameters” and search for “sepchar”.

Then choose the space (“ ”) instead of the “_”.

Don't forget to backup these 2 files (was my mistake)!!!

Bye
Arnaud

PS: once again, many Thanks Daniel!

guest22

Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
« Reply #5 on: December 10, 2015, 11:54:04 PM »
Nice catch Arnaud, and congrats! Maybe we should add this to the wiki?