Problems with writting log with nextcloudPI

Hello
I just switch my nextcloud in the last versions of raspbian, nextcloudPI and nextcloud

The update was OK, but I notice a problem in the log system
In the admin/logging sytem of nextcloud, I have every second 2 entries which seem linked:
the fisrt is at the level “warning”. It is:
[no app in context] Warning: Temporary directory {"/media/USBdrive/ncdata/tmp":""} is not present or writable

GET /index.php/apps/logreader/get?offset=0&count=50&levels=00100

from 192.168.0.13 by ncp at 2019-08-16T08:40:25+00:100:

The second is at the level “error”. It is:
[PHP] Error: is_writable() expects parameter 1 to be a valid path, array given at /var/www/nextcloud/lib/private/TempManager.php#260

GET /index.php/apps/logreader/poll?lastReqId=XVZrtLC5UqeW3NF2xel%40zAAAFBE
from 192.168.0.13 by ncp at 2019-08-16T08:39:16+00:00

The adress 192.168.0.13 is the adress of my browser machine.

So I look at the rights of the /media/USBdrive/ncdata/tmp directory. First I noticed that only the group www-data can write, so I add the right for the user www-data also. But after a reboot, the 2 problem are always present.
At the moment the rights are:
drwxrwxr-x 1 www-data www-data 0 mars 2 11:27 tmp

Is someone would have an idea to correct this problem, because the log file become biger permanently and the ressources of the CPU are used permanently also.
Thanks.
Cyril

Can you post output of ncp-report via pastebin or similar?

Please find the ncp-report as asked. I ve just mask 2 ip adress
The server is at 192.168.0.14 and the client 192.168.0.13.
Thanks for your help.

NextCloudPi diagnostics

NextCloudPi version  v1.15.3
NextCloudPi image    NextCloudPi_11-22-18
distribution         Raspbian GNU/Linux 10 \n \l
automount            yes
USB devices          sda
datadir              /media/USBdrive/ncdata
data in SD           no
data filesystem      btrfs
data disk usage      112G/233G
rootfs usage         2,7G/15G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    16.0.4.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               1:54

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "1": "192.168.0.14",
            "2": "77.153.190.162",
            "3": "fr83.ddns.net",
            "4": "fr83.ddns.net",
            "11": "77.153.188.225"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "16.0.4.1",
        "overwrite.cli.url": "https:\/\/fr83.ddns.net\/",
        "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***"
        },
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "maintenance": false,
        "tempdirectory": {
            "\/media\/USBdrive\/ncdata\/tmp": ""
        },
        "logfile": "\/media\/USBdrive\/ncdata\/nextcloud.log",
        "loglevel": "2",
        "log_type": "file",
        "theme": "",
        "updater.release.channel": "stable",
        "jpeg_quality": "60",
        "app_install_overwrite": [
            "spreed",
            "groupfolders"
        ]
    }
}

HTTPd logs

[Fri Aug 16 10:44:24.164618 2019] [authz_host:error] [pid 906:tid 1824244768] [c                                                                                                                                                             lient 192.168.0.13:29291] AH01753: access check of 'localhost' to /img/info-whit                                                                                                                                                             e.svg failed, reason: unable to get the remote host name
[Fri Aug 16 10:44:24.225129 2019] [authz_host:error] [pid 906:tid 1824244768] [c                                                                                                                                                             lient 192.168.0.13:29291] AH01753: access check of 'localhost' to /ncp-output.ph                                                                                                                                                             p failed, reason: unable to get the remote host name
[Fri Aug 16 10:44:24.232772 2019] [authz_host:error] [pid 906:tid 1807459360] [c                                                                                                                                                             lient 192.168.0.13:29291] AH01753: access check of 'localhost' to /ncp-launcher.                                                                                                                                                             php failed, reason: unable to get the remote host name
[Fri Aug 16 10:44:29.482891 2019] [authz_host:error] [pid 906:tid 1807459360] [c                                                                                                                                                             lient 192.168.0.13:29291] AH01753: access check of 'localhost' to /ncp-launcher.                                                                                                                                                             php failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:50.236555 2019] [authz_host:error] [pid 907:tid 1891386400] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to / failed, reas                                                                                                                                                             on: unable to get the remote host name
[Fri Aug 16 12:22:50.480630 2019] [authz_host:error] [pid 907:tid 1891386400] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to / failed, reas                                                                                                                                                             on: unable to get the remote host name
[Fri Aug 16 12:22:50.481101 2019] [authz_host:error] [pid 907:tid 1891386400] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /index.php fai                                                                                                                                                             led, reason: unable to get the remote host name
[Fri Aug 16 12:22:50.657027 2019] [authz_host:error] [pid 907:tid 1891386400] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /index.php fai                                                                                                                                                             led, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.258871 2019] [proxy_fcgi:error] [pid 907:tid 1891386400] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01071: Got error 'PHP message: PHP Notice:  Undefine                                                                                                                                                             d index: app in /var/www/ncp-web/index.php on line 238PHP message: PHP Notice:                                                                                                                                                               Undefined index: app in /var/www/ncp-web/index.php on line 244'
[Fri Aug 16 12:22:51.292019 2019] [authz_host:error] [pid 907:tid 1882993696] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /js/minified.j                                                                                                                                                             s failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.294107 2019] [authz_host:error] [pid 907:tid 1874600992] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /js/ncp.js fai                                                                                                                                                             led, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.296264 2019] [authz_host:error] [pid 907:tid 1824244768] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /css/ncp.css f                                                                                                                                                             ailed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.296264 2019] [authz_host:error] [pid 907:tid 1916564512] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /img/ncp-logo.                                                                                                                                                             svg failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.297941 2019] [authz_host:error] [pid 907:tid 1891386400] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /img/loading-s                                                                                                                                                             mall.gif failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.353239 2019] [authz_host:error] [pid 907:tid 1874600992] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /img/poweroff.                                                                                                                                                             svg failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.353239 2019] [authz_host:error] [pid 907:tid 1824244768] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /img/defaults.                                                                                                                                                             svg failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.353745 2019] [authz_host:error] [pid 907:tid 1882993696] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /img/reboot.sv                                                                                                                                                             g failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.689939 2019] [authz_host:error] [pid 907:tid 1882993696] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /ncp-output.ph                                                                                                                                                             p failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:51.732864 2019] [authz_host:error] [pid 907:tid 1824244768] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /ncp-launcher.                                                                                                                                                             php failed, reason: unable to get the remote host name
[Fri Aug 16 12:22:57.712065 2019] [authz_host:error] [pid 907:tid 1824244768] [c                                                                                                                                                             lient 192.168.0.13:30079] AH01753: access check of 'localhost' to /ncp-launcher.                                                                                                                                                             php failed, reason: unable to get the remote host name

Database logs

2019-08-16 10:37:23 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-16 10:37:23 0 [Note] InnoDB: Number of pools: 1
2019-08-16 10:37:23 0 [Note] InnoDB: Using generic crc32 instructions
2019-08-16 10:37:23 0 [Note] InnoDB: Initializing buffer pool, total size = 384M                                                                                                                                                             , instances = 1, chunk size = 128M
2019-08-16 10:37:23 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-16 10:37:23 0 [Note] InnoDB: If the mysqld execution user is authorized,                                                                                                                                                              page cleaner thread priority can be changed. See the man page of setpriority().
2019-08-16 10:37:25 0 [Note] InnoDB: 128 out of 128 rollback segments are active                                                                                                                                                             .
2019-08-16 10:37:25 0 [Note] InnoDB: Creating shared tablespace for temporary ta                                                                                                                                                             bles
2019-08-16 10:37:25 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Phys                                                                                                                                                             ically writing the file full; Please wait ...
2019-08-16 10:37:25 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-08-16 10:37:25 0 [Note] InnoDB: Waiting for purge to start
2019-08-16 10:37:25 0 [Note] InnoDB: 10.3.15 started; log sequence number 156814                                                                                                                                                             5081; transaction id 14389811
2019-08-16 10:37:25 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/                                                                                                                                                             ib_buffer_pool
2019-08-16 10:37:25 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-16 10:37:25 0 [Note] Server socket created on IP: '127.0.0.1'.
2019-08-16 10:37:25 0 [Note] Reading of all Master_info entries succeded
2019-08-16 10:37:25 0 [Note] Added new Master_info '' to hash table
2019-08-16 10:37:25 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.15-MariaDB-1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306                                                                                                                                                               Raspbian testing-staging
2019-08-16 10:37:27 0 [Note] InnoDB: Buffer pool(s) load completed at 190816 10:                                                                                                                                                             37:27

And the following ncp report

Nextcloud logs

{"reqId":"XVaFNwtUfxKwVMMdo0LLuAAAAEc","level":3,"time":"2019-08-16T10:28:07+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"PHP","method":"PROPFIND","ur                                                                                                                                                             l":"\/remote.php\/dav\/files\/ncp\/","message":"is_writable() expects parameter                                                                                                                                                              1 to be a valid path, array given at \/var\/www\/nextcloud\/lib\/private\/TempMa                                                                                                                                                             nager.php#260","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Next                                                                                                                                                             cloud)","version":"16.0.4.1"}
{"reqId":"XVaFNwtUfxKwVMMdo0LLuAAAAEc","level":2,"time":"2019-08-16T10:28:07+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"no app in context","method":                                                                                                                                                             "PROPFIND","url":"\/remote.php\/dav\/files\/ncp\/","message":"Temporary director                                                                                                                                                             y {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not present or writable","userAge                                                                                                                                                             nt":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"16.0                                                                                                                                                             .4.1"}
{"reqId":"XVaFVQtUfxKwVMMdo0LLuQAAAEY","level":3,"time":"2019-08-16T10:28:37+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"PHP","method":"PROPFIND","ur                                                                                                                                                             l":"\/remote.php\/dav\/files\/ncp\/","message":"is_writable() expects parameter                                                                                                                                                              1 to be a valid path, array given at \/var\/www\/nextcloud\/lib\/private\/TempMa                                                                                                                                                             nager.php#260","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Next                                                                                                                                                             cloud)","version":"16.0.4.1"}
{"reqId":"XVaFVQtUfxKwVMMdo0LLuQAAAEY","level":2,"time":"2019-08-16T10:28:37+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"no app in context","method":                                                                                                                                                             "PROPFIND","url":"\/remote.php\/dav\/files\/ncp\/","message":"Temporary director                                                                                                                                                             y {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not present or writable","userAge                                                                                                                                                             nt":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"16.0                                                                                                                                                             .4.1"}
{"reqId":"XVaFcwtUfxKwVMMdo0LLugAAAEQ","level":3,"time":"2019-08-16T10:29:07+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"PHP","method":"PROPFIND","ur                                                                                                                                                             l":"\/remote.php\/dav\/files\/ncp\/","message":"is_writable() expects parameter                                                                                                                                                              1 to be a valid path, array given at \/var\/www\/nextcloud\/lib\/private\/TempMa                                                                                                                                                             nager.php#260","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Next                                                                                                                                                             cloud)","version":"16.0.4.1"}
{"reqId":"XVaFcwtUfxKwVMMdo0LLugAAAEQ","level":2,"time":"2019-08-16T10:29:07+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"no app in context","method":                                                                                                                                                             "PROPFIND","url":"\/remote.php\/dav\/files\/ncp\/","message":"Temporary director                                                                                                                                                             y {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not present or writable","userAge                                                                                                                                                             nt":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"16.0                                                                                                                                                             .4.1"}
{"reqId":"XVaFkQtUfxKwVMMdo0LLuwAAAE4","level":3,"time":"2019-08-16T10:29:37+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"PHP","method":"PROPFIND","ur                                                                                                                                                             l":"\/remote.php\/dav\/files\/ncp\/","message":"is_writable() expects parameter                                                                                                                                                              1 to be a valid path, array given at \/var\/www\/nextcloud\/lib\/private\/TempMa                                                                                                                                                             nager.php#260","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Next                                                                                                                                                             cloud)","version":"16.0.4.1"}
{"reqId":"XVaFkQtUfxKwVMMdo0LLuwAAAE4","level":2,"time":"2019-08-16T10:29:37+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"no app in context","method":                                                                                                                                                             "PROPFIND","url":"\/remote.php\/dav\/files\/ncp\/","message":"Temporary director                                                                                                                                                             y {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not present or writable","userAge                                                                                                                                                             nt":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"16.0                                                                                                                                                             .4.1"}
{"reqId":"hxMe6KzqeUzGhtdrUern","level":3,"time":"2019-08-16T10:30:03+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"is_writab                                                                                                                                                             le() expects parameter 1 to be a valid path, array given at \/var\/www\/nextclou                                                                                                                                                             d\/lib\/private\/TempManager.php#260","userAgent":"--","version":"16.0.4.1"}
{"reqId":"hxMe6KzqeUzGhtdrUern","level":2,"time":"2019-08-16T10:30:03+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"no app in context","method":"","url":"--","messa                                                                                                                                                             ge":"Temporary directory {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not presen                                                                                                                                                             t or writable","userAgent":"--","version":"16.0.4.1"}
{"reqId":"fMY36PYOGCs3lERYBHuq","level":3,"time":"2019-08-16T10:30:03+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"is_writab                                                                                                                                                             le() expects parameter 1 to be a valid path, array given at \/var\/www\/nextclou                                                                                                                                                             d\/lib\/private\/TempManager.php#260","userAgent":"--","version":"16.0.4.1"}
{"reqId":"fMY36PYOGCs3lERYBHuq","level":2,"time":"2019-08-16T10:30:03+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"no app in context","method":"","url":"--","messa                                                                                                                                                             ge":"Temporary directory {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not presen                                                                                                                                                             t or writable","userAgent":"--","version":"16.0.4.1"}
{"reqId":"XVaFrwtUfxKwVMMdo0LLvAAAAFA","level":3,"time":"2019-08-16T10:30:07+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"PHP","method":"PROPFIND","ur                                                                                                                                                             l":"\/remote.php\/dav\/files\/ncp\/","message":"is_writable() expects parameter                                                                                                                                                              1 to be a valid path, array given at \/var\/www\/nextcloud\/lib\/private\/TempMa                                                                                                                                                             nager.php#260","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Next                                                                                                                                                             cloud)","version":"16.0.4.1"}
{"reqId":"XVaFrwtUfxKwVMMdo0LLvAAAAFA","level":2,"time":"2019-08-16T10:30:07+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"no app in context","method":                                                                                                                                                             "PROPFIND","url":"\/remote.php\/dav\/files\/ncp\/","message":"Temporary director                                                                                                                                                             y {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not present or writable","userAge                                                                                                                                                             nt":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"16.0                                                                                                                                                             .4.1"}
{"reqId":"bydvYPeN1ETvUxProkEC","level":3,"time":"2019-08-16T10:30:34+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"is_writab                                                                                                                                                             le() expects parameter 1 to be a valid path, array given at \/var\/www\/nextclou                                                                                                                                                             d\/lib\/private\/TempManager.php#260","userAgent":"--","version":"16.0.4.1"}
{"reqId":"bydvYPeN1ETvUxProkEC","level":2,"time":"2019-08-16T10:30:34+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"no app in context","method":"","url":"--","messa                                                                                                                                                             ge":"Temporary directory {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not presen                                                                                                                                                             t or writable","userAgent":"--","version":"16.0.4.1"}
{"reqId":"XVaFzQtUfxKwVMMdo0LLvQAAAEA","level":3,"time":"2019-08-16T10:30:37+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"PHP","method":"PROPFIND","ur                                                                                                                                                             l":"\/remote.php\/dav\/files\/ncp\/","message":"is_writable() expects parameter                                                                                                                                                              1 to be a valid path, array given at \/var\/www\/nextcloud\/lib\/private\/TempMa                                                                                                                                                             nager.php#260","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Next                                                                                                                                                             cloud)","version":"16.0.4.1"}
{"reqId":"XVaFzQtUfxKwVMMdo0LLvQAAAEA","level":2,"time":"2019-08-16T10:30:37+00:                                                                                                                                                             00","remoteAddr":"192.168.0.13","user":"ncp","app":"no app in context","method":                                                                                                                                                             "PROPFIND","url":"\/remote.php\/dav\/files\/ncp\/","message":"Temporary director                                                                                                                                                             y {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not present or writable","userAge                                                                                                                                                             nt":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"16.0                                                                                                                                                             .4.1"}
{"reqId":"j4Agpa64ZAZ8pC4YnEXq","level":3,"time":"2019-08-16T10:30:39+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"is_writab                                                                                                                                                             le() expects parameter 1 to be a valid path, array given at \/var\/www\/nextclou                                                                                                                                                             d\/lib\/private\/TempManager.php#260","userAgent":"--","version":"16.0.4.1"}
{"reqId":"j4Agpa64ZAZ8pC4YnEXq","level":2,"time":"2019-08-16T10:30:39+00:00","re                                                                                                                                                             moteAddr":"","user":"--","app":"no app in context","method":"","url":"--","messa                                                                                                                                                             ge":"Temporary directory {\"\/media\/USBdrive\/ncdata\/tmp\":\"\"} is not presen                                                                                                                                                             t or writable","userAgent":"--","version":"16.0.4.1"}

NCP v1.15.3 latest supported Nextcloud version is 16.0.3.0

How come you are already on 16.0.4.1 ?

Did you update using NC’s updater? NCP users are advised to use nc-autoupdate-nc

You are using an old image.
Latest is here

Someone posted same issue and solution before here

Whats your output for:

df -h

1 Like

Oliver thank you for you answer and help.

I 'm going to modify the php.ini and give ou a return after.

I upgrade nextcloud en 16.0.3.0 when I upgrade NCP in V 1.15.3.
After this upgrade I upgrade nextcloud in 16.0.4.1 directly with nextcloud

NCP 1.15.3 is th last image . Why do you say I used an old image ?

Results for df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/root 15G 2,7G 12G 19% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 48M 416M 11% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p1 44M 40M 4,2M 91% /boot
/dev/sda1 233G 112G 120G 49% /media/myCloudDrive
tmpfs 93M 0 93M 0% /run/user/1000

I’ve looked at the /etc/php/7.3/fpm/php.ini for the entry upload_tmp_dir
In the file there are:

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =

So I understand that the /media/USBdrive/ncdata/tmp is the sytem default. So how to correct my initial problem of logs ?

From your ncp-report, image used is

Latest image is NextCloudPi_07-20-19

Is the latest version currently

Effectively, I initialy install my RPI en 2018, and after I put the different update available. So I’m up to date at the moment with the last version of RASPBIAN, RPI and nextcloud.

Try to un-comment and change that line into

upload_tmp_dir = /media/USBdrive/ncdata/tmp

and reload php7.3-fpm.service

In NCP we also set sys_temp_dir in php.ini and tempdirectory in config.php

I modified the php.ini as you told to me, but it doesn’t change anything ?