Your OS might have different instructions, but the requirements will be the same. www-data needs to have ownership before it can write to that directory.
Or you could change the location of the tmp directory to your /media folder.
There isnt even a /data folder in /var/www/nextcloud this makes me think it isnt there because of the move to usbdrive and the tmp dir is somehow set to the wrong path
I had moved data dir while on a version 13.x of nextcloud, i actually didnt care about log output back then as everything seemed to work fine. Eventually after updating to 14.x i recently looked into logs and found that warning. However, i am not sure if this affected anything, there actually was no obvious problem before repair and i could not see any difference after that except of the warning disappeared from logs…
Just after updating to Nextcloud 20.0.8 via ncp-config this happened to me as well. Nextcloud continues to spam my log-file with the message Temporary directory /var/www/nextcloud/data/tmp is not present or writable. My quick-fix was to create that folder. However, it is probably desirable to have its path correctly set in config.php. Just wanted to let you know this “bug” still occurs.
Uniek is correct, this issue also happened to me after updating to 20.0.8
It seems the news app is the one checking and writing to /var/www/nextcloud/data/tmp
Seemingly out of nothing (or maybe because of the 20.0.11 update?) I got this same error, and I can’t sync files any more. The desktop client shows Connection Closed
The log is going crazy and is flooded with this output:
[no app in context] Warning: Temporary directory /var/www/nextcloud/data/tmp is not present or writable
PROPFIND /remote.php/dav/files/USERNAME/
from 5.149.32.95 by USERNAME at 2021-07-06T08:03:48+00:00
this seems the solution, but, I need a bit more help.
What does “tempdirectory” stand for?
the rest is the path to my data on the drive, as I understand.