I can't make Local File System backup to work #4118
Unanswered
ghost
asked this question in
Error / Bug Report
Replies: 1 comment 2 replies
|
You need to use the path /wiki/data/content inside the docker container. This is a pre-defined volume that you can map to. Otherwise you will run into users mismatch permission issues. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm using linuxserver, docker version of wikijs and I wanted to set automatic data backup to local filesystem of host. I changed settings in GUI like that.
Mappings of file systems look like that:
That gave me immediate error saying "EACCESS: Permission deniad mkdie /app/wiki/backup" - screenshot
Looking at the host's filesystem, permissions and ownership looks like this:
I tried to change ownership of /mnt/ops_appdata/wikijs_data to user that runs docker, which is: ubuntu
ubuntu@ubuntu:/mnt/ops_appdata$ sudo chown ubuntu:ubuntu wikijs_data
ubuntu@ubuntu:/mnt/ops_appdata$ ls -al
drwxrwxrwx 2 ubuntu ubuntu 4096 Jun 21 10:30 wikijs_config
drwxrwxrwx 4 ubuntu ubuntu 4096 May 4 22:47 wikijs_data
Unfortunately, that did nothing, error still persists, backup folder was not created. I tried to change permissions of wikijs_data and subfolders to 755:
ubuntu@ubuntu:/mnt/ops_appdata$ sudo chmod -R 755 wikijs_data
ubuntu@ubuntu:/mnt/ops_appdata$ ls -al wikijs_data
total 16
drwxr-xr-x 4 ubuntu ubuntu 4096 May 4 22:47 .
drwxrwxrwx 17 ubuntu ubuntu 4096 Jun 16 19:05 ..
drwxr-xr-x 2 ubuntu ubuntu 4096 Jun 21 11:02 cache
drwxr-xr-x 2 ubuntu ubuntu 4096 Jun 21 06:00 uploads
After this step my instance of wiki started to freak out - I had some issues with saving changes made to pages, so I reverted permission changes and now it seems to work finbe, but still I would like to have that backups, so please help me understand what the initial error is all about/
All reactions