linuxserver / docker-dokuwiki

GNU General Public License v3.0
110 stars 24 forks source link

[BUG] Images newer than 2024-02-06a-ls223 stopped working for me #77

Closed apenngrace closed 3 weeks ago

apenngrace commented 1 month ago

Is there an existing issue for this?

Current Behavior

If I install a version of the container newer than 2024-02-06a-ls223 (such as 2024-02-06a-ls224 and also the most recent 2024-02-06a-ls230), then I get an error message when I try to access my wiki. The error message says:

DokuWiki Setup Error

The datadir ('pages') at /app/www/public/data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to [run the installer](http://192.168.1.114:88/install.php)?

Expected Behavior

Rather than an error, I expect the dokuwiki home page to appear (as it currently does if I use version 2024-02-06a-ls223.

Steps To Reproduce

In my case, I could reproduce both a working and non-working dokuwiki installation. If I use version 2024-02-06a-ls223 it still works. If I use version 2024-02-06a-ls224 it no longer works.

Environment

- OS: Debian 12 (bookworm)
- How docker service was installed:

I originally installed using the command line with docker compose, and I used the recommended docker compose file that is shown on the github page.  I have a local folder on the host system that is mapped to the `/config` folder in the container.  Now I'm using portainer.

I have separate data folders for my current working dokuwiki page (using version `2024-02-06a-ls223`), and the others that I am testing with.  For example, the host folder for the working version is `/dokuwiki/config` mapped to `/config` in the container.  And versions that I'm testing with are mapped to `/dokuwiki-test/config`.

CPU architecture

x86-64

Docker creation

I'm using portainer, but it is based off of this.
-----------------------------------

services:
  dokuwiki:
    image: lscr.io/linuxserver/dokuwiki:latest
    container_name: dokuwiki
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /home/andrew/HD500GB/docker_volumes/dokuwiki/config:/config
    ports:
      - 80:80
      - 443:443 #optional
    restart: unless-stopped

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 2024-02-06a-ls230
Build-date: 2024-07-26T15:43:35+00:00
───────────────────────────────────────

using keys found in /config/keys
Existing install found, deleting install.php.
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2023-12-25 │ 2024-05-31 │ /config/nginx/site-confs/default.conf                                  │
│ 2023-04-13 │ 2024-05-27 │ /config/nginx/nginx.conf                                               │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
[custom-init] No custom files found, skipping...
[ls.io-init] done.
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:7
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /config/nginx/site-confs/default.conf:8
github-actions[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

apenngrace commented 3 weeks ago

I tried again and I ran chown -R on the config directory on the host. That seemed to fix it for me. I'm able to use the latest version as of today.