-
How to use GitHub
Is your feature request related to a problem? Please describe. This can be a problem for users who do not have a dedicated partition with fixed size for /tmp or users who use Nextcloud-AIO in docker as it can completely fill up the partition or location where they have the docker installation files. Describe the solution you'd like It is known that for nextcloud 31 public file uploads will be migrated to vue in the application files and will support chunking, so why not take advantage and change the way they are stored temporarily, for example in the data directory as well as uploads are stored for registered users ( Additional context (See) |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
I believe |
Beta Was this translation helpful? Give feedback.
-
That's a good point @joshtrichards, thank you.
Edit: |
Beta Was this translation helpful? Give feedback.
-
Is there anything left? I think it is already handled by the |
Beta Was this translation helpful? Give feedback.
-
In this case, on the Nextcloud-AIO (Docker official installation method) currently there is no way to mount a custom directory from the host to the nextcloud container If you try to upload a big file using a public link, the nextcloud container starts to grow until the upload file is moved to the data directory. As the result, if you have your docker installation on a small drive, uploads can fail because you are running out of space (See nextcloud/server#5356) The workaround for this is to move your entire docker installation to another drive with enough space or deploy a custom docker compose like linuxserver.io images and set a mountpoint for /tmp until this feature is approved on Nextcloud-AIO or Nextcloud server devs migrate public upload chunks to the data directory. |
Beta Was this translation helpful? Give feedback.
-
You should be able to point I don't see why that can't be done at your discretion still today if desired. |
Beta Was this translation helpful? Give feedback.
-
Mount host directory to the Nextcloud container: Afterwards you should be able to set |
Beta Was this translation helpful? Give feedback.
-
I tested this on a VM But you need to modify some files inside the nextcloud container. @joshtrichards @susnux
If you get an error when the upload is finished check the permissions and ownership of the temp folder. (Step 5) |
Beta Was this translation helpful? Give feedback.
-
@szaimen |
Beta Was this translation helpful? Give feedback.
-
I transferred this from server to aio as this is purely a configuration issue. So this is just configuration of AiO |
Beta Was this translation helpful? Give feedback.
-
Do I understand correctly that the adjustment of the temporary directory involves two parts that have nothing to do with each other? As far as I understand it, can the temporary directory of PHP be in a different location than the temporary directory of Nextcloud? As far as I can see it, I have just an issue with the temporary files of PHP then, because those phpXXXX folders are filling up my container and the the docker host. |
Beta Was this translation helpful? Give feedback.
-
Yes sir, we can use the temp directory of nextcloud but this directive is ignored when you upload files, since PHP and PHP-FPM have their own ENV variables for the tmp directory is better to point all to a fixed mountpoint where Nextcloud and PHP stores all his files to avoid issues. |
Beta Was this translation helpful? Give feedback.
-
OK, but is there any known interaction between PHP-FPM and Nextcloud, that would require a path, that match for both? |
Beta Was this translation helpful? Give feedback.
-
I tested, and yes. |
Beta Was this translation helpful? Give feedback.
-
Hi, I just added this to #5251 |
Beta Was this translation helpful? Give feedback.
Hi, I just added this to #5251