linuxserver / docker-dokuwiki

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

[BUG] Cannot access files in subfolders of the mounted volume #57

Closed EvgeniyDoctor closed 1 year ago

EvgeniyDoctor commented 1 year ago

Is there an existing issue for this?

Current Behavior

I'm trying to show a video file on page:

<html>
 <video width="500" onloadstart="this.volume=0.3" controls>
  <source src="/_media/files/tutorials/test.mp4">
 </video>
</html>

and this will work.

But if put test.mp4 in the tutorials/OS folder, i got an empty video player:

<html>
 <video width="500" onloadstart="this.volume=0.3" controls>
  <source src="/_media/files/tutorials/OS/test.mp4"> <-- here
 </video>
</html>

It does not matter, how i can try to access my file:

<html>
 <img src='/_media/files/tutorials/test.png'> - working
</html>
---
{{:/files/tutorials/test.png?100}} - working
---
{{:/files/tutorials/OS/test.png?100}} - does not work

Here you can see folders permissions and owner:

root@7d265bb8a19a:/config/dokuwiki/data/media# ls -l
drwxrwxr-x 1 abc  abc     18 Jan 23 00:44 files
---
root@7d265bb8a19a:/config/dokuwiki/data/media# cd files/; ls -l
drwxr-xr-x 1 abc abc 198 Jan 23 00:58 tutorials
-rwxrwxrwx 1 abc nginx 16933782 Mar 22  2021  test.mp4
-rwxrwxrwx 1 abc nginx    93608 Mar 24  2021  test.png
---
root@7d265bb8a19a:/config/dokuwiki/data/media/files# cd tutorials/; ls -l
drwxr-xr-x 1 abc abc        100 Jan 23 00:57  OS
-rwxrwxrwx 1 abc nginx 16933782 Mar 22  2021 test.mp4
-rwxrwxrwx 1 abc nginx    93608 Mar 24  2021 test.png
---
root@7d265bb8a19a:/config/dokuwiki/data/media/files/tutorials# cd OS; ls -l
-rwxrwxrwx 1 abc nginx 16933782 Mar 22  2021 test.mp4
-rwxrwxrwx 1 abc nginx    93608 Mar 24  2021 test.png

I'm using Dokuwiki 2020 without docker and i can play same video without any problem.

Expected Behavior

Files in nested folders must be accessible.

Steps To Reproduce

Environment

- OS: DSM 6
- Comp: Synology NAS
- How docker service was installed: Synology package manager
- dokuwiki: Release 2022-07-31a "Igor"

CPU architecture

x86-64

Docker creation

docker run -d \
--name=doku \
-e PUID=1026 \
-e PGID=65539 \
-p 7890:80 \
-v /path/config:/config/dokuwiki \
-v /path/Tutorials:/config/dokuwiki/data/media/files/tutorials:rw \
--restart unless-stopped \
lscr.io/linuxserver/dokuwiki

### Container logs

```bash
[migrations] started
[migrations] 01-nginx-site-confs-default: executing...
[migrations] 01-nginx-site-confs-default: succeeded
[migrations] 02-default-location: executing...
grep: /config/nginx/site-confs/default.conf: No such file or directory
[migrations] 02-default-location: succeeded
[migrations] done

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1026
User gid:    65539
-------------------------------------

Setting resolver to  192.168.0.1
Setting worker_processes to 2
generating self-signed keys in /config/keys, you can replace these with your own keys if required
…
-----
chown: cannot access '/config/dokuwiki/lib/images/smileys/local': No such file or directory
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
Existing install found install.php not available
[custom-init] No custom files found, skipping...
[ls.io-init] done.
github-actions[bot] commented 1 year ago

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

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity