DokuWiki Setup Error - datadir pages not found

Hi,

wanted to test the dokuwiki container for the first time. Sadly i always get the same error on opening the setup URL.

compose file - first version:

version: '2.1'

volumes:
  dokuwiki:

networks:
  docker-vmbr210:
    external: true

services:
  dokuwiki:
    image: "lscr.io/linuxserver/dokuwiki:latest"
    restart: always
    volumes:
      - /docker-data/dokuwiki:/config
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
    networks:
      docker-vmbr210:
        ipv4_address: 10.253.42.33

The Error upon directly opening the setup url https://10.253.42.33:80/install.php :

# DokuWiki Setup Error

The datadir ('pages') at /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://10.253.42.33/install.php)?

So i thougth i made a mistake somewhere the bind mount (owner, permissions etc). Tried everything i thougth possible as error source. Could still not figure it out.

Also tested container image versions back to amd64-2022-07-31a-ls146. Get the same error all the time, so i think im doing something wrong.

So i tried with a docker volume, because now it should get setup the right way, because i cannot do wrongly with the docker volume.

version: '2.1'

volumes:
  dokuwiki:

networks:
  docker-vmbr210:
    external: true

services:
  dokuwiki:
    image: "lscr.io/linuxserver/dokuwiki:2022-07-31-ls134"
    restart: always
    volumes:
      - /docker-data/dokuwiki:/config
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
    networks:
      docker-vmbr210:
        ipv4_address: 10.253.42.33

Sadly i get the same error. So: Does someone see my error? Clearly im doing something wrong, but i cant find it.

Thank you all in advance
hasechris

Have you tried doing precisely what our container readme tells you to without the network changes?
What is the output of uname -mr && docker version

First: thanks for the fast response!

precisely what our container readme tells

Sorry if i did not emphasize my problem clearly enough.

The steps are:

  1. Upon first install go to http://$IP:$PORT/install.php
  2. once you have completed the setup, restart the container,
  3. login as admin and
    […]
    My Problem: Cant do step “1”. Opening the install page gets me the specified error in my browser.

without the network changes…

hm nope, did not try that until now. Tried it now, same result.

uname -mr

wgpve-docker:~/docker-repo/wgpve-docker/dokuwiki# uname -mr
6.2.6-1-pve x86_64

docker version

wgpve-docker:~/docker-repo/wgpve-docker/dokuwiki# docker version
Client:
 Version:           20.10.24
 API version:       1.41
 Go version:        go1.19.8
 Git commit:        297e1284d3bd092e9bc96076c3ddc4bb33f8c7ab
 Built:             Tue Apr 11 17:06:29 2023
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.24
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.19.8
  Git commit:       5d6db842238e3c4f5f9fb9ad70ea46b35227d084
  Built:            Tue Apr 11 07:26:55 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.6.18
  GitCommit:        2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:          1.1.5
  GitCommit:        f19387a6bec4944c770f7668ab51c4348d9c2f38
 docker-init:
  Version:          0.19.0
  GitCommit:        
wgpve-docker:~/docker-repo/wgpve-docker/dokuwiki# 

What is the output of ls -asnl /docker-data/dokuwiki

wgpve-docker:~/docker-repo/wgpve-docker/dokuwiki# ls -asnl /docker-data/dokuwiki
total 10
     1 drwxr-xr-x   10 1000     1000            11 May 18 10:57 .
     1 drwxr-xr-x    7 0        0                8 May 18 10:56 ..
     0 -rw-r--r--    1 1000     1000            48 May 18 10:57 .migrations
     0 drwxr-xr-x    2 0        0                2 May 18 10:57 custom-cont-init.d
     0 drwxr-xr-x    2 0        0                2 May 18 10:57 custom-services.d
     1 drwxr-xr-x    5 1000     1000             7 May 18 10:57 dokuwiki
     0 drwxr-xr-x    2 1000     1000             4 May 18 10:57 keys
     0 drwxr-xr-x    4 1000     1000             4 May 18 10:57 log
     1 drwxrwxr-x    3 1000     1000            10 May 18 10:58 nginx
     0 drwxr-xr-x    2 1000     1000             4 May 18 10:58 php
     0 drwxrwxr-x    2 1000     1000             2 May 18 10:57 www

hm, this looks good… I’ll see if anyone has an idea. What is the host OS? and you’re not using portainer or anything like that are you?

sorry, i have a bit more advanced setup.

Host

  • hostname: wgpve
  • Proxmox VE 7.4.3 on a Debian 11
  • Network
    • enp86s0 (hardware nic)
      • vmbr0 (linux bridge)
  • LXC container
    • hostname: wgpve-docker
    • OS: Alpine 3.17.3

LXC Container

  • Hostname: wgpve-docker
  • NIC in lxc container is attached to linux bridge vmbr0 from proxmox Host
  • Network
    • vmbr0 (proxmox bridge from above)
      • eth0 (lxc nic)
        • vmbr0
        • eth0.210
          • vmbr210

Docker

  • Docker installed in lxc container
  • Using only Compose. No Portainer, no other management tools
  • working containers in this setup so far:
    • unifi controller
    • DNS Server via selfbuild bind9 image
    • traefik reverse proxy
    • heimdall Docker Hub
  • Docker Network built via compose
version: '2.4'
networks:
  docker-vmbr210:
    name: docker-vmbr210
    driver: ipvlan
    driver_opts:
      ipvlan_mode: l2
      parent: vmbr210
    ipam:
      config:
        - subnet: 10.253.42.0/24
  docker-vmbr0:
    name: docker-vmbr0
    driver: ipvlan
    driver_opts:
      ipvlan_mode: l2
      parent: vmbr0
    ipam:
      config:
        - subnet: 192.168.42.0/27
        - subnet: 192.168.0.0/24
  docker-internal:
    name: docker-internal
services:
  dummy:
    container_name: network-dep-dummy
    image: williamyeh/dummy
    entrypoint: ["echo", "Networks generated"]
    networks:
      - docker-internal
      - docker-vmbr210
      - docker-vmbr0
    restart: "no"

Sadly as you can see i also tried the “example compose” without all my container network foo. Just portfowarding directly i then have to access http://wgpve-docker:80/install.php. Sadly this also does not work.

the proxmox devs do not support or recommend running docker in lxc. They recommend docker in a vm. I would suggest first moving to a supported configuration and then re-testing. We also do not test or support macvlan or ipvlan for our containers, we support and recommend bridge except when we specify host (which applies to 2 of our containers)