linuxserver / docker-dokuwiki

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

latest docker image broken: expects wiki in /app/dokuwiki and not in /config #46

Closed papamoose closed 2 years ago

papamoose commented 2 years ago

Latest docker image breaks the wiki:

The datadir ('pages') at /app/dokuwiki/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?

When the docker-compose example clearly shows:

    volumes:
      - /host/path/to/config:/config # Configuration files.

To get access to my wiki again using the latest version I did the following:

  1. docker-compose exec dokuwiki /bin/bash
  2. cd /app
  3. mv dokuwiki dokuwiki.bak
  4. ln -s /config/dokuwiki /app/dokuwiki
  5. mkdir cache locks tmp log
  6. chown abc:users cache locks tmp log
github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

thestraycat commented 2 years ago

I have the same problem, had to roll back. Same error message as above.

papamoose commented 2 years ago

@thestraycat What version are you using?

I expect this latest image broke a ton of people's wiki's.

thestraycat commented 2 years ago

@papamoose - I've rolled back to: lscr.io/linuxserver/dokuwiki:amd64-version-2020-07-29

papamoose commented 2 years ago

I was finally able to successfully rollback.

Possibly this code didn't run for some reason or there is a bug root/migrations.

geozeke commented 2 years ago

Same here. Broken wiki. Thought I might be going crazy :-)

Thanks for the rollback info!

kytay commented 2 years ago

Thanks for posting the issue. I am facing the same issue.

papamoose commented 2 years ago

Pull request #45 looks related to this issue.

Aerowinder commented 2 years ago

Latest release (4 hours ago) resolved this issue for me.

geozeke commented 2 years ago

Great to hear! Digging into the commit that was part of the pull request for that release, the issue may have been around line 47 of this file.

couladin commented 2 years ago

I had the same issue, with my ls133 container not surviving the ls134 upgrade. I opted for a full rebuild to ls134 just to see the difference and save time, though I wish I'd thought to check here again before I started (didn't notice ls135). :)

I used backed up copies of my local.php file and /config/dokuwiki/data/ directory, and added a volume bind for the latter to make backing up easier.

papamoose commented 2 years ago

Closing the loop on this. I updated to version-2022-07-31 aka latest at time of writing. It all works now. I had to edit the nginx config to ensure was set root /app/www/public; but that was it.

thestraycat commented 2 years ago

@papamoose - Strange question, but does your 'Admin' button work on the mainpage?

papamoose commented 2 years ago

@thestraycat Yes it works.