Repository: nextcloud/nextcloudpi

Issue #11: Admin actions keep prompting for password again and again
Created: 2017-05-18T20:08:38Z
It is not possible to save the personal infos after edit.
NextCloudPi 11.0.3 & Raspberry Pi 3

Duplicate issue #267: Can't create new users
Created: 2017-10-23T18:42:12Z
What version of NextCloudPi are you using? ( eg: v0.17.2 )
NextCloudPi v0.31.15
What is the base image that you installed on the SD card? ( eg: NextCloudPi_07-21-17 )
NextCloudPi_10-03-17
Expected behavior
Create a new user or change settings (password, group,...)
Actual behaviour
If I hit create, a frame appears "Authentication required"
I type my admin password to confirm and nothing happens and the frame appears again.
Steps to reproduce, from a freshly installed image
Create a new user
Include logs

Nextcloud logs
{"reqId":"We4jwH8AAQEAAANGgdAAAFIT","level":2,"time":"2017-10-23T17:15:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4j3n8AAQEAAANFoYEAABMN","level":2,"time":"2017-10-23T17:16:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4j-H8AAQEAAANGgdEAAEsB","level":2,"time":"2017-10-23T17:16:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kA38AAQEAAANGgdIAAEQU","level":2,"time":"2017-10-23T17:16:51+00:00","remoteAddr":"192.168.111.205","user":"--","app":"no app in context","method":"POST","url":"\/index.php\/heartbeat","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kGn8AAQEAAANFoYIAABQF","level":2,"time":"2017-10-23T17:17:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kOH8AAQEAAANGgdMAAEgR","level":2,"time":"2017-10-23T17:17:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kVn8AAQEAAANFoYMAABUJ","level":2,"time":"2017-10-23T17:18:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kdH8AAQEAAANGgdQAAEcI","level":2,"time":"2017-10-23T17:18:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kkn8AAQEAAANGgdUAAFMX","level":2,"time":"2017-10-23T17:19:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4ksH8AAQEAAANFoYQAABYP","level":2,"time":"2017-10-23T17:19:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4kz38AAQEAAANGgdYAAEYO","level":2,"time":"2017-10-23T17:20:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4k7H8AAQEAAANGgdcAAFQA","level":2,"time":"2017-10-23T17:20:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4lCn8AAQEAAANGgdgAAEUF","level":2,"time":"2017-10-23T17:21:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4lKX8AAQEAAANGgdkAAFUK","level":2,"time":"2017-10-23T17:21:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4lR38AAQEAAANFoYUAABcQ","level":2,"time":"2017-10-23T17:22:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4lZX8AAQEAAANFoYYAABgI","level":2,"time":"2017-10-23T17:22:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4lgn8AAQEAAANGgdoAAFYP","level":2,"time":"2017-10-23T17:23:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4loH8AAQEAAANFoYcAAAAH","level":2,"time":"2017-10-23T17:23:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4lvn8AAQEAAANFoYgAAAIM","level":2,"time":"2017-10-23T17:24:15+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4l3H8AAQEAAANGgdsAAFcM","level":2,"time":"2017-10-23T17:24:45+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Temporary directory \/media\/USBdrive\/ncdata\/tmp is not present or writable","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We4vAH8AAQEAAAMiSlsAAAQC","level":2,"time":"2017-10-23T18:03:44+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"core","method":"POST","url":"\/index.php\/login\/confirm","message":"Login failed: 'admin' (Remote IP: '192.168.111.205')","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}
{"reqId":"We400X8AAQEAAAMjSgcAAEwY","level":2,"time":"2017-10-23T18:28:33+00:00","remoteAddr":"192.168.111.205","user":"admin","app":"core","method":"POST","url":"\/index.php\/login\/confirm","message":"Login failed: 'admin' (Remote IP: '192.168.111.205')","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:45.0) Gecko\/20100101 Firefox\/45.0","version":"12.0.3.3"}



Apache logs
Paste the output of `systemctl status apache2`
root@nextcloudpi:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2017-10-23 17:27:59 UTC; 1h 8min ago
  Process: 567 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 766 (apache2)
   CGroup: /system.slice/apache2.service
           ├─766 /usr/sbin/apache2 -k start
           ├─802 /usr/sbin/apache2 -k start
           └─803 /usr/sbin/apache2 -k start

Oct 23 17:27:57 nextcloudpi systemd[1]: Starting The Apache HTTP Server...
Oct 23 17:27:59 nextcloudpi systemd[1]: Started The Apache HTTP Server.


Paste the output of `tail -n 100 /var/log/apache2/*.log`


root@nextcloudpi:~# tail -n 100 /var/log/apache2/*.log
==> /var/log/apache2/access.log <==

==> /var/log/apache2/error.log <==
[Mon Oct 02 15:47:13.889026 2017] [mpm_event:notice] [pid 1210:tid 3069410400] AH00489: Apache/2.4.25 (Raspbian) configured -- resuming normal operations
[Mon Oct 02 15:47:13.960034 2017] [core:notice] [pid 1210:tid 3069410400] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 02 16:15:25.304132 2017] [mpm_event:notice] [pid 1210:tid 3069410400] AH00491: caught SIGTERM, shutting down
[Mon Oct 02 16:18:51.655640 2017] [mpm_event:notice] [pid 485:tid 3069798416] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 02 16:18:51.845838 2017] [core:notice] [pid 485:tid 3069798416] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 02 16:23:22.633781 2017] [mpm_event:notice] [pid 485:tid 3069798416] AH00491: caught SIGTERM, shutting down
[Mon Oct 02 16:27:19.034306 2017] [mpm_event:notice] [pid 480:tid 3069930592] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 02 16:27:19.254092 2017] [core:notice] [pid 480:tid 3069930592] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 02 16:31:43.638907 2017] [mpm_event:notice] [pid 480:tid 3069930592] AH00491: caught SIGTERM, shutting down
[Tue Oct 03 18:10:14.257089 2017] [mpm_event:notice] [pid 586:tid 3069897824] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Tue Oct 03 18:10:14.436561 2017] [core:notice] [pid 586:tid 3069897824] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 03 18:14:35.946167 2017] [mpm_event:notice] [pid 586:tid 3069897824] AH00491: caught SIGTERM, shutting down
[Tue Oct 03 18:14:40.252944 2017] [mpm_event:notice] [pid 1295:tid 3069831184] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Tue Oct 03 18:14:40.271816 2017] [core:notice] [pid 1295:tid 3069831184] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 03 19:32:20.853582 2017] [mpm_event:notice] [pid 1295:tid 3069831184] AH00491: caught SIGTERM, shutting down
[Tue Oct 03 19:32:26.822832 2017] [ssl:warn] [pid 4736:tid 3069765648] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 03 19:32:26.968792 2017] [unique_id:alert] [pid 4736:tid 3069765648] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "raspberrypi"
AH00016: Configuration Failed
[Tue Oct 03 19:39:02.215830 2017] [ssl:warn] [pid 5667:tid 3069470736] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 03 19:39:02.739932 2017] [unique_id:alert] [pid 5667:tid 3069470736] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "raspberrypi"
AH00016: Configuration Failed
[Tue Oct 03 19:40:07.070259 2017] [ssl:warn] [pid 5841:tid 3069865056] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 03 19:40:07.359356 2017] [unique_id:alert] [pid 5841:tid 3069865056] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "raspberrypi"
AH00016: Configuration Failed
[Tue Oct 03 20:14:35.623813 2017] [ssl:warn] [pid 612:tid 1992622080] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 03 20:14:36.095072 2017] [ssl:warn] [pid 793:tid 1992622080] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 03 20:14:37.005668 2017] [mpm_event:notice] [pid 793:tid 1992622080] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Tue Oct 03 20:14:37.005942 2017] [core:notice] [pid 793:tid 1992622080] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 23 15:08:19.744648 2017] [mpm_event:notice] [pid 793:tid 1992622080] AH00491: caught SIGTERM, shutting down
[Mon Oct 23 15:08:43.206258 2017] [ssl:warn] [pid 540:tid 1992462336] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 15:08:44.101039 2017] [ssl:warn] [pid 735:tid 1992462336] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 15:08:45.005452 2017] [mpm_event:notice] [pid 735:tid 1992462336] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 23 15:08:45.005732 2017] [core:notice] [pid 735:tid 1992462336] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 23 15:11:15.569245 2017] [mpm_event:notice] [pid 735:tid 1992462336] AH00491: caught SIGTERM, shutting down
[Mon Oct 23 15:11:29.049536 2017] [ssl:warn] [pid 539:tid 1992724480] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 15:11:30.088241 2017] [ssl:warn] [pid 739:tid 1992724480] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 15:11:31.002619 2017] [mpm_event:notice] [pid 739:tid 1992724480] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 23 15:11:31.002798 2017] [core:notice] [pid 739:tid 1992724480] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 23 15:31:01.727849 2017] [mpm_event:notice] [pid 739:tid 1992724480] AH00491: caught SIGTERM, shutting down
[Mon Oct 23 15:31:16.380569 2017] [ssl:warn] [pid 595:tid 1992253440] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 15:31:17.112018 2017] [ssl:warn] [pid 812:tid 1992253440] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 15:31:18.005967 2017] [mpm_event:notice] [pid 812:tid 1992253440] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 23 15:31:18.006293 2017] [core:notice] [pid 812:tid 1992253440] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 23 16:16:58.275149 2017] [mpm_event:notice] [pid 812:tid 1992253440] AH00491: caught SIGTERM, shutting down
[Mon Oct 23 16:17:10.732421 2017] [ssl:warn] [pid 589:tid 1992339456] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 16:17:11.094268 2017] [ssl:warn] [pid 766:tid 1992339456] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 16:17:12.005343 2017] [mpm_event:notice] [pid 766:tid 1992339456] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 23 16:17:12.005561 2017] [core:notice] [pid 766:tid 1992339456] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 23 16:48:02.324574 2017] [mpm_event:notice] [pid 766:tid 1992339456] AH00491: caught SIGTERM, shutting down
[Mon Oct 23 16:48:16.451017 2017] [ssl:warn] [pid 604:tid 1992871936] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 16:48:17.091409 2017] [ssl:warn] [pid 797:tid 1992871936] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 16:48:18.005707 2017] [mpm_event:notice] [pid 797:tid 1992871936] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 23 16:48:18.006015 2017] [core:notice] [pid 797:tid 1992871936] AH00094: Command line: '/usr/sbin/apache2'
[Mon Oct 23 17:27:44.563681 2017] [mpm_event:notice] [pid 797:tid 1992871936] AH00491: caught SIGTERM, shutting down
[Mon Oct 23 17:27:58.881730 2017] [ssl:warn] [pid 593:tid 1992339456] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 17:27:59.094672 2017] [ssl:warn] [pid 766:tid 1992339456] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 23 17:28:00.005548 2017] [mpm_event:notice] [pid 766:tid 1992339456] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Oct 23 17:28:00.005774 2017] [core:notice] [pid 766:tid 1992339456] AH00094: Command line: '/usr/sbin/apache2'

==> /var/log/apache2/other_vhosts_access.log <==
localhost:80 192.168.111.205 - - [23/Oct/2017:16:14:45 +0000] "GET / HTTP/1.1" 302 612 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
localhost:80 192.168.111.205 - - [23/Oct/2017:16:52:51 +0000] "GET / HTTP/1.1" 302 612 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
localhost:4443 192.168.111.205 - - [23/Oct/2017:17:02:27 +0000] "GET / HTTP/1.0" 400 0 "-" "-"
localhost:4443 192.168.111.205 - - [23/Oct/2017:17:02:27 +0000] "GET / HTTP/1.0" 400 0 "-" "-"
localhost:4443 192.168.111.205 - - [23/Oct/2017:17:02:27 +0000] "GET / HTTP/1.0" 400 0 "-" "-"
localhost:80 192.168.111.205 - - [23/Oct/2017:17:04:50 +0000] "GET / HTTP/1.1" 302 612 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"



mariaDB logs
Paste the output of `systemctl status mysqld`

root@nextcloudpi:~# systemctl status mysqld
● mariadb.service - MariaDB database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2017-10-23 17:28:12 UTC; 1h 12min ago
  Process: 1014 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 1011 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
  Process: 737 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
  Process: 600 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSI
  Process: 597 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 566 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
 Main PID: 981 (mysqld)
   Status: "Taking your SQL requests now..."
   CGroup: /system.slice/mariadb.service
           └─981 /usr/sbin/mysqld

Oct 23 17:27:57 nextcloudpi systemd[1]: Starting MariaDB database server...
Oct 23 17:28:09 nextcloudpi mysqld[981]: 2017-10-23 17:28:09 1988677632 [Note] /usr/sbin/mysqld (mysqld 10.1.23-MariaDB-9+deb9u1) starting as process 981 ...
Oct 23 17:28:12 nextcloudpi systemd[1]: Started MariaDB database server.


Paste the output of `tail -n 100 /var/log/mysql/*.log`

root@nextcloudpi:~# tail -n 100 /var/log/mysql/*.log

2017-10-23 15:35:10 1988714496 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-10-23 15:35:10 1988714496 [Note] InnoDB: The InnoDB memory heap is disabled
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-10-23 15:35:10 1988714496 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Using Linux native AIO
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Using generic crc32 instructions
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Completed initialization of buffer pool
2017-10-23 15:35:10 1988714496 [Note] InnoDB: Highest supported file format is Barracuda.
2017-10-23 15:35:11 1988714496 [Note] InnoDB: 128 rollback segment(s) are active.
2017-10-23 15:35:11 1988714496 [Note] InnoDB: Waiting for purge to start
2017-10-23 15:35:11 1988714496 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 2868084
2017-10-23 15:35:12 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-10-23 15:35:12 1988714496 [Note] Plugin 'FEEDBACK' is disabled.
2017-10-23 15:35:12 1988714496 [Note] Server socket created on IP: '127.0.0.1'.
2017-10-23 15:35:12 1988714496 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 9.0
2017-10-23 16:16:57 1638748992 [Note] /usr/sbin/mysqld: Normal shutdown

2017-10-23 16:16:57 1638748992 [Note] Event Scheduler: Purging the queue. 0 events
2017-10-23 16:16:57 1430254400 [Note] InnoDB: FTS optimize thread exiting.
2017-10-23 16:16:57 1638748992 [Note] InnoDB: Starting shutdown...
2017-10-23 16:16:58 1638748992 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2017-10-23 16:16:59 1638748992 [Note] InnoDB: Shutdown completed; log sequence number 3462585
2017-10-23 16:16:59 1638748992 [Note] /usr/sbin/mysqld: Shutdown complete

2017-10-23 16:17:21 1988718592 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-10-23 16:17:21 1988718592 [Note] InnoDB: The InnoDB memory heap is disabled
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-10-23 16:17:21 1988718592 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Using Linux native AIO
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Using generic crc32 instructions
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Completed initialization of buffer pool
2017-10-23 16:17:21 1988718592 [Note] InnoDB: Highest supported file format is Barracuda.
2017-10-23 16:17:22 1988718592 [Note] InnoDB: 128 rollback segment(s) are active.
2017-10-23 16:17:22 1988718592 [Note] InnoDB: Waiting for purge to start
2017-10-23 16:17:22 1988718592 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 3462585
2017-10-23 16:17:22 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-10-23 16:17:22 1988718592 [Note] Plugin 'FEEDBACK' is disabled.
2017-10-23 16:17:22 1988718592 [Note] Server socket created on IP: '127.0.0.1'.
2017-10-23 16:17:22 1988718592 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 9.0
2017-10-23 16:48:01 1638748992 [Note] /usr/sbin/mysqld: Normal shutdown

2017-10-23 16:48:01 1638748992 [Note] Event Scheduler: Purging the queue. 0 events
2017-10-23 16:48:01 1426060096 [Note] InnoDB: FTS optimize thread exiting.
2017-10-23 16:48:01 1638748992 [Note] InnoDB: Starting shutdown...
2017-10-23 16:48:02 1638748992 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2017-10-23 16:48:03 1638748992 [Note] InnoDB: Shutdown completed; log sequence number 9953724
2017-10-23 16:48:03 1638748992 [Note] /usr/sbin/mysqld: Shutdown complete

2017-10-23 16:48:27 1988718592 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-10-23 16:48:27 1988718592 [Note] InnoDB: The InnoDB memory heap is disabled
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-10-23 16:48:27 1988718592 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Using Linux native AIO
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Using generic crc32 instructions
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Completed initialization of buffer pool
2017-10-23 16:48:27 1988718592 [Note] InnoDB: Highest supported file format is Barracuda.
2017-10-23 16:48:28 1988718592 [Note] InnoDB: 128 rollback segment(s) are active.
2017-10-23 16:48:28 1988718592 [Note] InnoDB: Waiting for purge to start
2017-10-23 16:48:28 1988718592 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 9953724
2017-10-23 16:48:28 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-10-23 16:48:28 1988718592 [Note] Plugin 'FEEDBACK' is disabled.
2017-10-23 16:48:28 1988718592 [Note] Server socket created on IP: '127.0.0.1'.
2017-10-23 16:48:28 1988718592 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 9.0
2017-10-23 17:27:44 1638748992 [Note] /usr/sbin/mysqld: Normal shutdown

2017-10-23 17:27:44 1638748992 [Note] Event Scheduler: Purging the queue. 0 events
2017-10-23 17:27:44 1426060096 [Note] InnoDB: FTS optimize thread exiting.
2017-10-23 17:27:44 1638748992 [Note] InnoDB: Starting shutdown...
2017-10-23 17:27:44 1638748992 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2017-10-23 17:27:46 1638748992 [Note] InnoDB: Shutdown completed; log sequence number 11748903
2017-10-23 17:27:46 1638748992 [Note] /usr/sbin/mysqld: Shutdown complete

2017-10-23 17:28:09 1988677632 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2017-10-23 17:28:09 1988677632 [Note] InnoDB: The InnoDB memory heap is disabled
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-10-23 17:28:09 1988677632 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Using Linux native AIO
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Using generic crc32 instructions
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Completed initialization of buffer pool
2017-10-23 17:28:09 1988677632 [Note] InnoDB: Highest supported file format is Barracuda.
2017-10-23 17:28:10 1988677632 [Note] InnoDB: 128 rollback segment(s) are active.
2017-10-23 17:28:10 1988677632 [Note] InnoDB: Waiting for purge to start
2017-10-23 17:28:10 1988677632 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 11748903
2017-10-23 17:28:11 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started
2017-10-23 17:28:11 1988677632 [Note] Plugin 'FEEDBACK' is disabled.
2017-10-23 17:28:11 1988677632 [Note] Server socket created on IP: '127.0.0.1'.
2017-10-23 17:28:11 1988677632 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.23-MariaDB-9+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 9.0

Closing comment (2017-10-25T10:02:38Z): Duplicate of #11