Dokuwiki broken?

It seems currently not possible to install the Dokuwiki application.
Tried both software center and command line. The image seems not to be available anymore?
Also the link (https://github.com/bitnami/bitnami-docker-dokuwiki) to the image ns8-dokuwiki page gives an 404.

Add to module/dokuwiki8 environment DOKUWIKI_IMAGE=docker.io/bitnami/dokuwiki:20240206-debian-12
<7>podman-pull-missing docker.io/bitnami/dokuwiki:20240206-debian-12
Trying to pull docker.io/bitnami/dokuwiki:20240206-debian-12...
Error: initializing source docker://bitnami/dokuwiki:20240206-debian-12: (Mirrors also failed: [ghcr.io/nethserver/docker.io/bitnami/dokuwiki:20240206-debian-12: Requesting bearer token: invalid status code from registry 403 (Forbidden)]): docker.io/bitnami/dokuwiki:20240206-debian-12: reading manifest 20240206-debian-12 in docker.io/bitnami/dokuwiki: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

Traceback (most recent call last):
  File "/usr/local/agent/bin/podman-pull-missing", line 35, in <module>
    subprocess.run(['podman', 'pull', image_url]).check_returncode()
  File "/usr/lib/python3.11/subprocess.py", line 502, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['podman', 'pull', 'docker.io/bitnami/dokuwiki:20240206-debian-12']' returned non-zero exit status 125.
Traceback (most recent call last):
  File "/usr/local/agent/actions/create-module/05pullimages", line 48, in <module>
    agent.run_helper('podman-pull-missing', *images).check_returncode()
  File "/usr/lib/python3.11/subprocess.py", line 502, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '('podman-pull-missing', 'docker.io/bitnami/dokuwiki:20240206-debian-12')' returned non-zero exit status 1.

Regards,
/erik

1 Like

Related to: Change Dokuwiki upstream image by DavidePrincipi · Pull Request #37 · NethServer/ns8-dokuwiki · GitHub

3 Likes

@davidep should the app be disabled in software center for iti s currently broken?

1 Like

I think it’s not that critical like for example the mail app but for sure it needs to be fixed.

EDIT:

As the images are archived, the image name has changed to dokuwiki-archived, see https://hub.docker.com/r/bitnami/dokuwiki-archived/tags?name=20240206-debian-12

A patched dokuwiki app that pulls the archived image is available from my github. It can be used as a workaround to install dokuwiki until it’s fixed.
I think it’s also usable for testing the upgrade to the new fixed version that uses the official DokuWiki image.

To remove a buggy installation:

remove-module --no-preserve dokuwiki1

To install dokuwiki using the old archived image:

add-module ghcr.io/mrmarkuz/dokuwiki:archived-patch
1 Like

Thanks for your efforts.
Obviously i had to move over the dokuwiki-data directory from the old node and set the permissions accordingly.

Anyhow, before i discovered you reply, i did test some other methods.

  1. I restored (well partly) the backup i had, that would give the NS8 user for the app. The i fetched the images from the old node with podman save and loaded it into the new NS8 user with podman load, hoping NS would take the existing image, unfortunately that did not happen.
  2. I also tried to podman load the images as root and tried a restore, but still no luck.

So NS8/podman restore insists on fetching images from the original image repository.

One important takeaway form this is that in case the original image source is not available at time of restore, it will fail. Even if do a disaster recovery as described in the manual, apps depending on these images will fail to restore.

Regards,
/erik

1 Like

Thanks for the hints. You’re right, maybe I can push it to the original repo…

Maybe a module override would have worked to restore the right image?

redis-cli hset cluster/override/modules dokuwiki ghcr.io/mrmarkuz/dokuwiki:archived-patch

See Quickstart | NS8 dev manual

Just tried the override option, this does not seem to work.
When installing the app from the app center, it still wants to pull from the original source.

Interestingly enough on the same manual page you refer to says:

If the given image is already present in the local Podman storage, no remote download occurs and the local image is used instead.

So once again i tried to podman load the images and then tried to install the app from the command line via add-module, and this works similar to your workaround.
Still that only gives you an unconfigured instance, but at least you are a step closer.
For a simple app like dokuwiki that is not to hard to do the configuration manually restore the data. For a more complex app… well not so fun i would imagine.

Maybe developers could look at the restore procedure and take existing images into account instead if insisting a pull every time. If add-module can do it, then it should also be possible to make it work for the restore.

1 Like

we are reintroducing dokuwiki, please if you want to test

4 Likes

In Software Center the latest version is still at 1.0.5?

yes it is an hidden feature, once installed from stable you can do a right click and install the testing version or do in your terminal add-module ghcr.io/nethserver/dokuwiki:1.0.6-dev.1

2 Likes

Installs and works. Log entries:

2025-08-01T15:22:07+02:00 [1:dokuwiki3:agent@dokuwiki3] agent.ldapproxy: domain xxx.com should not be used by dokuwiki3. Invoke agent.bind_user_domains(["xxx.com"]) to fix this warning.

2025-08-01T15:22:59+02:00 [1:dokuwiki3:dokuwiki] AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.2.100. Set the 'ServerName' directive <mark>global</mark>ly to suppress this message

Thanks for fixing Dokuwiki!

3 Likes

thanks laylow :stuck_out_tongue:

2 Likes

Backup in place works
Backup as new works

Once final is released, status on the wiki will change.

3 Likes

i tell you, you are doing a fantastic work

2 Likes

It seems I can not enable the upgrade plugin. The upgrade plugin is a default plugin bundled with standard dokuwiki. The wiki logs neither the Nethserver app logs show someting interesting/related. I removed the plugin and re-installed. Same issue, can not enable it.

The screenshot is when I click ‘enable’. Can somebody test please?

When i start to install a plugin, i get this message:

No connection could be established to the plugin directory. Make sure that the server is allowed to connect to www.dokuwiki.org ans check your settings.

1 Like

It seems a lot of symbolic links are ‘faulty’? Or harmless by design?

bash-5.1$ pwd
/home/dokuwiki3/.local/share/containers/storage/volumes/dokuwiki-data/_data/lib/plugins
bash-5.1$ ls -l
total 12
lrwxrwxrwx 1 558784 558784   34 Aug  2 10:14 acl -> /var/www/html/lib/plugins.core/acl
lrwxrwxrwx 1 558784 558784   41 Aug  2 10:14 action.php -> /var/www/html/lib/plugins.core/action.php
lrwxrwxrwx 1 558784 558784   40 Aug  2 10:14 admin.php -> /var/www/html/lib/plugins.core/admin.php
lrwxrwxrwx 1 558784 558784   39 Aug  2 10:14 auth.php -> /var/www/html/lib/plugins.core/auth.php
lrwxrwxrwx 1 558784 558784   37 Aug  2 10:14 authad -> /var/www/html/lib/plugins.core/authad
lrwxrwxrwx 1 558784 558784   39 Aug  2 10:14 authldap -> /var/www/html/lib/plugins.core/authldap
lrwxrwxrwx 1 558784 558784   38 Aug  2 10:14 authpdo -> /var/www/html/lib/plugins.core/authpdo
lrwxrwxrwx 1 558784 558784   40 Aug  2 10:14 authplain -> /var/www/html/lib/plugins.core/authplain
drwxr-xr-x 8 558784 558784 4096 Aug  2 14:03 button
lrwxrwxrwx 1 558784 558784   38 Aug  2 10:14 cli.php -> /var/www/html/lib/plugins.core/cli.php
lrwxrwxrwx 1 558784 558784   37 Aug  2 10:14 config -> /var/www/html/lib/plugins.core/config
lrwxrwxrwx 1 558784 558784   40 Aug  2 10:14 extension -> /var/www/html/lib/plugins.core/extension
drwxr-xr-x 8 558784 558784 4096 Aug  1 15:50 include
lrwxrwxrwx 1 558784 558784   41 Aug  2 10:14 index.html -> /var/www/html/lib/plugins.core/index.html
lrwxrwxrwx 1 558784 558784   35 Aug  2 10:14 info -> /var/www/html/lib/plugins.core/info
lrwxrwxrwx 1 558784 558784   40 Aug  2 10:14 logviewer -> /var/www/html/lib/plugins.core/logviewer
lrwxrwxrwx 1 558784 558784   41 Aug  2 10:14 popularity -> /var/www/html/lib/plugins.core/popularity
lrwxrwxrwx 1 558784 558784   41 Aug  2 10:14 remote.php -> /var/www/html/lib/plugins.core/remote.php
lrwxrwxrwx 1 558784 558784   37 Aug  2 10:14 revert -> /var/www/html/lib/plugins.core/revert
lrwxrwxrwx 1 558784 558784   43 Aug  2 10:14 safefnrecode -> /var/www/html/lib/plugins.core/safefnrecode
lrwxrwxrwx 1 558784 558784   38 Aug  2 10:14 styling -> /var/www/html/lib/plugins.core/styling
lrwxrwxrwx 1 558784 558784   41 Aug  2 10:14 syntax.php -> /var/www/html/lib/plugins.core/syntax.php
drwxr-xr-x 5 558784 558784 4096 Aug  2 14:02 upgrade
lrwxrwxrwx 1 558784 558784   42 Aug  2 10:14 usermanager -> /var/www/html/lib/plugins.core/usermanager

1 Like

I get the same result when hitting the enable button. In the module log the following can be found:

2025-08-02T14:57:28+02:00 [3:dokuwiki33:dokuwiki] 10.0.2.100:80 10.0.2.100 - - [02/Aug/2025:12:57:28 +0000] "GET /lib/exe/ajax.php?call=plugin_extension&ext=upgrade&act=toggle&sectok=582dd6730550a882a91200032fb078a8 HTTP/1.1" 500 361 "http://xyz.com/wiki:backup?do=admin&page=extension" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0"

Not that familiar with the plugin, but it it visible on the admin page seems to work regardless of the above.

1 Like

Sorry, i mistakenly hit the BackupTool plugin which initially behaved the same, but now it is enabled. The message in the log remains similar however.

You need to enter the container and check the references.

runagent -m dokuwiki3 podman exec -ti dokuwiki bash -l

I believe they will be fine.

1 Like