linuxserver / docker-projectsend

GNU General Public License v3.0
74 stars 26 forks source link

[BUG] Cannot create a bind mount to /app/www/public/upload/files #36

Closed Daniel-Kalus closed 1 year ago

Daniel-Kalus commented 1 year ago

Is there an existing issue for this?

Current Behavior

I want to drop files into the /app/www/public/upload/files folder, so I can use the "find orphaned files" feature of projectsend. As I understand it, this would allow me to instantly upload big files, without using the web interface.

When I add this bind mount under volumes section: - $STORAGEDIR/appdata/filedrop/:/app/www/public/upload/files the container won't start up properly, because the files in /app/www/public/ don't get created. On the browser I get 403 Forbidden. When I check the folder inside the container I see root@6ea140ebcf61:/app/www/public# ls lang public-tmp upload All the files which should be in the public folder are in public-tmp.

Expected Behavior

The files and folders under /app/www/public/ should not be affected by a bind mount to /app/www/public/upload/files ...or any other solution which let's me bind mount that folder

Steps To Reproduce

  1. add bind mount under volumes section: - :/app/www/public/upload/files
  2. start the container

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

docker compose -f projectsend.yml up -d

Container logs

docker logs projectsend
[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
───────────────────────────────────────

using keys found in /config/keys
New container detected. Setting up app folder and fixing permissions.
ln: failed to create symbolic link '/app/www/public/includes/sys.config.php': No such file or directory
date: '/app/www/public/lang/*': No such file or directory
date: '/config/translations/lang/*': No such file or directory
cp: cannot stat '/app/www/public/lang/*': No such file or directory
mv: cannot stat '/app/www/public/templates/default/lang': No such file or directory
mv: cannot stat '/app/www/public/templates/gallery/lang': No such file or directory
mv: cannot stat '/app/www/public/templates/pinboxes/lang': No such file or directory
[custom-init] No custom files found, skipping...
crontab: can't open 'abc': No such file or directory
[ls.io-init] done.
github-actions[bot] commented 1 year ago

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

Roxedus commented 1 year ago

you want the documented /data mount.

Daniel-Kalus commented 1 year ago

Yes under the /data mount I can find the files I upload via the web interface. But there is the "Find orphan files" option in the "Files" section which I would like to use. On that page it states: "There are no files available to add right now. To use this feature you need to upload your files via FTP to the folder /app/www/public/upload/files". Unfortunately I cannot mount the mentioned folder, as described in the first post.. (sorry I closed the issue by mistake)

Daniel-Kalus commented 1 year ago

Aaah after looking at the Dockerfile I realised that /app/www/public/upload/files is available under /data/projectsend/files Thanks alot!