-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
'tempdirectory' in config.php is ignored. #19682
Comments
Don't put the temp directory inside the data directory. |
Changes made, server restarted. Same behavior. |
Yes. Just a general note not to do that. |
I don't see any issue with Nextcloud. |
Then why, after setting my data directory to my external drive, does this behavior persist?
As mentioned in my post, I did.
Here's another user from 2018 with the same issue getting a similar response. |
You don't. |
Why didn't you mention that 4 days ago? Both |
Same for version 18.0.4.2. Php-fpm 7.3+nginx. From this case ./lib/private/TempManager.php
Work only TMPDIR when configured in php-fpm pool as
|
@kesselb can you reopen issue? Problem not related with tmp directory path. |
What problem are you talking about? |
tempdirectory parameter in config.php is ignored. During file upload via webdav all php temporary files stored in /tmp
|
Uploads are processed by PHP before handed to Nextcloud. We are unable to change the location PHP uses to store temporary files used for uploads. https://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir https://www.php.net/manual/en/configuration.changes.modes.php |
My questions not about how to change php upload directory. tempdirectory directive for other nextcloud temporary files, not php upload? Then make sense update documentation, because is not clear.
Thank you. Now it's clear. |
@suslikas this was a while ago but the only way I was able to get around this behavior was to put my RPi filesystem on an external USB drive. I followed this guide: https://www.raspberrypi.org/forums/viewtopic.php?t=44177 I also ended up moving away from Nextcloud, but from the short amount of testing I did this solved my problem. Pain in the butt but overall better performance regardless. Good luck! |
I have the same issue which I solved as follows. I first deleted the original /var/snap/nextcloud/common/nextcloud/tmp |
Issue still persists in Nextcloud 24. |
As stated above setting the php environment variables does the trick. A clarification in the docs for this setting would still be nice.... |
@CaptainSifff mind to send a pull request? |
like so? #35974 |
Steps to reproduce
Expected behaviour
'tempdirectory' is used and only my external drive's disk space decreases.
Actual behaviour
Large (~150MB) chunks are continually written to SD card before being transferred to external.
Server configuration
Operating system:
Raspbian
Web server:
Apache
Database:
MySQL/MariaDB
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
18.0.1.3
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh Install
Where did you install Nextcloud from:
NC Github
Things I've done
Added
upload_tmp_dir = /mnt/my8TBeZ/nextcloud/data/tmp
to my .user.ini file.Added
upload_tmp_dir = /mnt/my8TBeZ/nextcloud/data/tmp
to my php.ini file.Ensured proper ownership on mount location, running both
I can read and write files just fine. The process in which they get there is the part I can't change.
Apparently I wasn't alone in this, I am hoping this thread won't be ignored as much as @berho's was
The text was updated successfully, but these errors were encountered: