tmp folder does not exist during and after upgrade process

This issue has been tracked since 2021-03-16.

System information

NextCloudPi diagnostics

NextCloudPi version  v1.35.0
NextCloudPi image    NextCloudPi_11-27-20
distribution         Debian GNU/Linux 10 \n \l
automount            yes
USB devices          sda
datadir              /mnt/nextCloud/data
data in SD           no
data filesystem      nfs
data disk usage      4.7T/14T
rootfs usage         3.5G/230G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    20.0.8.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               47days

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "11": "***REMOVED SENSITIVE VALUE***",
            "1": "192.168.76.6",
            "20": "192.168.76.6",
            "21": "***REMOVED SENSITIVE VALUE***",
            "12": "***REMOVED SENSITIVE VALUE***"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.8.1",
        "overwrite.cli.url": "https:\/\/drive.***REMOVED SENSITIVE VALUE***\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/var\/www\/nextcloud\/data\/tmp",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "htaccess.RewriteBase": "\/",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

HTTPd logs

[Tue Mar 16 11:35:21.944923 2021] [authz_host:error] [pid 18895:tid 547358245264] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:21.945461 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:21.946453 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:21.946511 2021] [authz_host:error] [pid 18895:tid 547358245264] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:21.947658 2021] [authz_host:error] [pid 18895:tid 547358245264] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:21.947772 2021] [authz_host:error] [pid 18895:tid 547400233360] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:21.948133 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:35:22.019303 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 16 11:35:22.104918 2021] [authz_host:error] [pid 18895:tid 547400233360] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Tue Mar 16 11:35:26.592095 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 16 11:35:26.671355 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 16 11:35:26.671355 2021] [authz_host:error] [pid 18895:tid 547358245264] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Tue Mar 16 11:35:26.671380 2021] [authz_host:error] [pid 18895:tid 547316240784] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Tue Mar 16 11:35:37.079160 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 11:37:05.563860 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 16 11:37:07.712934 2021] [authz_host:error] [pid 18895:tid 547307839888] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Mar 16 11:37:07.716599 2021] [authz_host:error] [pid 18895:tid 547316240784] [client 192.168.76.230:60337] AH01753: access check of 'localhost' to /img/green-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.76.6:4443/css/ncp.css
[Tue Mar 16 12:48:02.151811 2021] [authz_host:error] [pid 18895:tid 547400233360] [client 192.168.76.230:61398] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Tue Mar 16 13:10:11.306385 2021] [authz_host:error] [pid 18895:tid 547400233360] [client 192.168.76.230:61689] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Tue Mar 16 13:25:24.549268 2021] [authz_host:error] [pid 18895:tid 547400233360] [client 192.168.76.230:61999] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name

Database logs


Nextcloud logs

{"reqId":"YFDWZAKwqck1bzptphTG1wAAAEE","level":2,"time":"2021-03-16T16:01:41+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWa29y1ST80JtAsSFsygAAAIU","level":2,"time":"2021-03-16T16:01:48+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWa29y1ST80JtAsSFsygAAAIU","level":2,"time":"2021-03-16T16:01:48+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWa29y1ST80JtAsSFsygAAAIU","level":2,"time":"2021-03-16T16:01:48+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWc29y1ST80JtAsSFsywAAAIo","level":2,"time":"2021-03-16T16:01:55+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFDWc29y1ST80JtAsSFsywAAAIo","level":2,"time":"2021-03-16T16:01:55+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFDWc29y1ST80JtAsSFsywAAAIo","level":2,"time":"2021-03-16T16:01:55+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFDWhG9y1ST80JtAsSFszAAAAJI","level":2,"time":"2021-03-16T16:02:13+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWhG9y1ST80JtAsSFszAAAAJI","level":2,"time":"2021-03-16T16:02:13+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWhG9y1ST80JtAsSFszAAAAJI","level":2,"time":"2021-03-16T16:02:13+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWiW9y1ST80JtAsSFszQAAAJY","level":2,"time":"2021-03-16T16:02:18+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWiW9y1ST80JtAsSFszQAAAJY","level":2,"time":"2021-03-16T16:02:18+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWiW9y1ST80JtAsSFszQAAAJY","level":2,"time":"2021-03-16T16:02:18+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.8.1"}
{"reqId":"YFDWkQKwqck1bzptphTG2AAAAEk","level":2,"time":"2021-03-16T16:02:25+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFDWkQKwqck1bzptphTG2AAAAEk","level":2,"time":"2021-03-16T16:02:25+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFDWkQKwqck1bzptphTG2AAAAEk","level":2,"time":"2021-03-16T16:02:25+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"zTRW2Gov6GvDUdiRMmak","level":2,"time":"2021-03-16T16:02:39+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"--","version":"20.0.8.1"}
{"reqId":"zTRW2Gov6GvDUdiRMmak","level":2,"time":"2021-03-16T16:02:39+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"--","version":"20.0.8.1"}
{"reqId":"w1rZuDrBdxY7FRwAgZv4","level":2,"time":"2021-03-16T16:02:43+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"--","version":"20.0.8.1"}
{"reqId":"w1rZuDrBdxY7FRwAgZv4","level":2,"time":"2021-03-16T16:02:43+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"--","version":"20.0.8.1"}

My installation has been running fine for a few months; yesterday, I decided to update using the UI update options.
Once I logged in and began the update items, I started to see these errors in the logs:

{"reqId":"[email protected]","level":2,"time":"2021-03-15T18:35:35+00:00","remoteAddr":"192.168.76.230","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.4.0"}
{"reqId":"[email protected]","level":2,"time":"2021-03-15T18:35:35+00:00","remoteAddr":"192.168.76.230","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.4.0"}
{"reqId":"[email protected]","level":2,"time":"2021-03-15T18:35:35+00:00","remoteAddr":"192.168.76.230","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/jake/","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.2git (build 4615) (Nextcloud)","version":"20.0.4.0"}

{"reqId":"EhnKS10CtdWFSuzpxpyS","level":0,"time":"2021-03-15T18:35:58+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 20.0.4.0 to 20.0.8.1","userAgent":"--","version":"20.0.4.0"}
{"reqId":"EhnKS10CtdWFSuzpxpyS","level":1,"time":"2021-03-15T18:35:58+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.4.0"}
{"reqId":"EhnKS10CtdWFSuzpxpyS","level":1,"time":"2021-03-15T18:35:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair MySQL collation","userAgent":"--","version":"20.0.4.0"}

ever since, phone contacts backup fail (were previously working):

{"reqId":"YFBCTAKwqck1bzptphS9BAAAAFg","level":2,"time":"2021-03-16T05:29:48+00:00","remoteAddr":"192.168.76.141","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/.Contacts-Backup/2021-01-27_18-58-47.vcf","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.1","version":"20.0.8.1"}
{"reqId":"YFBCTAKwqck1bzptphS9BAAAAFg","level":2,"time":"2021-03-16T05:29:48+00:00","remoteAddr":"192.168.76.141","user":"jake","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/.Contacts-Backup/2021-01-27_18-58-47.vcf","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.1","version":"20.0.8.1"}

Also gives errors when laptop connects:

{"reqId":"YFCVoAKwqck1bzptphS-3gAAAEk","level":2,"time":"2021-03-16T11:25:20+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFCVoAKwqck1bzptphS-3gAAAEk","level":2,"time":"2021-03-16T11:25:20+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFCVoAKwqck1bzptphS-3gAAAEk","level":2,"time":"2021-03-16T11:25:20+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFCVpG9y1ST80JtAsSFo7AAAAIg","level":2,"time":"2021-03-16T11:25:24+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PUT","url":"/apps/user_status/heartbeat","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YFCVpG9y1ST80JtAsSFo7AAAAIg","level":2,"time":"2021-03-16T11:25:24+00:00","remoteAddr":"192.168.76.230","user":"jake","app":"no app in context","method":"PUT","url":"/apps/user_status/heartbeat","message":"Temporary directory /var/www/nextcloud/data/tmp is not present or writable","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36","version":"20.0.8.1"}

Poking around I can see that the config references this tmp directory:
in /var/www/nextcloud/config/config.php:
'tempdirectory' => '/var/www/nextcloud/data/tmp',

Assuming the path expands to /var/www, then I see the dir in my backup I took when I first installed NC:

In the backup I took some time back, I can see the dir listed in the archive:

tar tzf nextcloud-bkp_20210125_1611606622.tar.gz | grep tmp

nextcloud/data/tmp/
nextcloud/data/tmp/news/
nextcloud/data/tmp/news/cache/

The error obviously revolves around /var/www/nextcloud/data/tmp which does not exist. I do not see any indication of the errors for this directory prior to starting the update process but I cannot say for sure if the directory existed or not prior to the upgrade. I really only noticed because my phone's contact's backup started to fail.
I've run the nc-fix-persmissions option, but this did not help.
Is there any harm in creating this dir? Have others noticed this during upgrades?

ovpc wrote this answer on 2021-03-16

you seemed to have moved your datadir:
datadir /mnt/nextCloud/data
so the tmp_dir will be in /mnt/nextCloud/data/tmp
Both config.php and php.ini should reflect that.
Please use forum if need assistance, I will close this now, but can reopen if it turns out to be a bug.

More Details About Repo
Owner Name nextcloud
Repo Name nextcloudpi
Full Name nextcloud/nextcloudpi
Language Shell
Created Date 2017-02-12
Updated Date 2022-11-28
Star Count 1841
Watcher Count 78
Fork Count 269
Issue Count 123

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date