-
Notifications
You must be signed in to change notification settings - Fork 712
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation to describe how to mount a dedicated temp disk/partition/folder. #5496
Comments
I believe |
That's a good point @joshtrichards, thank you.
Edit: |
Is there anything left? I think it is already handled by the |
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. |
You should be able to point I don't see why that can't be done at your discretion still today if desired. |
Mount host directory to the Nextcloud container: Afterwards you should be able to set |
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) |
@szaimen |
I transferred this from server to aio as this is purely a configuration issue. So this is just configuration of AiO |
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. |
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. |
OK, but is there any known interaction between PHP-FPM and Nextcloud, that would require a path, that match for both? |
I tested, and yes. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
How to use GitHub
Is your feature request related to a problem? Please describe.
Currently public file uploads are temporarily stored in /tmp and then moved to the actual location in the nextcloud data directory.
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 (
data/user/uploads
) can be/data/public/uploads
in this case.Additional context
(See)
The text was updated successfully, but these errors were encountered: