Can't log in nextcloud

Hello everyone,

I have installer NextcloudPi on my raspberryPi and I am stuck at the login page. I’m entering the login “ncp” and the second password from the activation page but can’t access…

Here’s what I did:

1- flash NextCloudPi_RPi_06-27-18.img on SD card
2- log on pi with raspberry
3- go to sudo raspi-config for setting up the WiFi and the SSH
4- do the NextCloudPi 0.59.8 update
5- activate the nc-webui
6- go to “https://192.168.0.16:4443” with ncpand ownyourbits (exception accepted on Firefox)
7- copy the two passwords given in the activation page
8- do the NextCloudPi wizard page
9- go to “https://192.168.0.16” leading me to “https://192.168.0.16/index.php/login”
10- login ncpand paste the second password copied
11 - back to “https://192.168.0.16/index.php/login”

I’m stuck there… I don’t know where i’m wrong and what to do - motsly because I’m kinda new to all these things.

Can anyone help me ? That would be very kind !

This is the “ncp-report”:

<–! Paste this in GitHub report -->

NextCloudPi diagnostics

NextCloudPi version  v0.59.8
NextCloudPi image    NextCloudPi_06-27-18
distribution         Raspbian GNU/Linux 9 \n \l
automount            no
USB devices          none
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      1,8G/15G
rootfs usage         1,8G/15G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    13.0.4.0
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                   192.168.0.16
gateway              192.168.0.254
interface            wlan0
certificates         XXX.zapto.org
NAT loopback         yes
uptime               1:06

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "1": "192.168.0.16",
            "3": "XXX.zapto.org",
            "2": "XXX.zapto.org",
            "4": "XXX.zapto.org"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/XXX.zapto.org",
        "dbtype": "mysql",
        "version": "13.0.4.0",
        "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": "php",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "loglevel": "2",
        "log_type": "file"
    }
}

HTTPd logs

[Sun Sep 16 17:01:01.998459 2018] [authz_host:error] [pid 5714:tid 1832895536] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name
[Sun Sep 16 17:03:07.916708 2018] [authz_host:error] [pid 5714:tid 1824506928] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:03:08.521613 2018] [proxy_fcgi:error] [pid 5714:tid 1824506928] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:03:10.156029 2018] [authz_host:error] [pid 5714:tid 1816118320] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:03:11.159836 2018] [proxy_fcgi:error] [pid 5714:tid 1816118320] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:03:11.173091 2018] [authz_host:error] [pid 5714:tid 1807729712] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:03:11.179213 2018] [authz_host:error] [pid 5714:tid 1799341104] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /img/green-circle.svg failed, reason: unable to get the remote host name
[Sun Sep 16 17:03:13.241083 2018] [proxy_fcgi:error] [pid 5714:tid 1807729712] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:03:30.957508 2018] [authz_host:error] [pid 5714:tid 1983890480] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:03:30.962716 2018] [proxy_fcgi:error] [pid 5714:tid 1983890480] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:07:55.884897 2018] [authz_host:error] [pid 5714:tid 1891615792] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:07:55.889400 2018] [proxy_fcgi:error] [pid 5714:tid 1891615792] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:09:45.407730 2018] [authz_host:error] [pid 5714:tid 1874838576] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:09:49.895741 2018] [proxy_fcgi:error] [pid 5714:tid 1874838576] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:09:49.908989 2018] [authz_host:error] [pid 5714:tid 1858061360] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:09:51.544746 2018] [proxy_fcgi:error] [pid 5714:tid 1858061360] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:12:23.055818 2018] [authz_host:error] [pid 5714:tid 1832895536] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:12:23.060535 2018] [proxy_fcgi:error] [pid 5714:tid 1832895536] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'
[Sun Sep 16 17:12:24.091451 2018] [authz_host:error] [pid 5714:tid 1849672752] [client 192.168.0.31:54917] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 16 17:12:24.096547 2018] [proxy_fcgi:error] [pid 5714:tid 1849672752] [client 192.168.0.31:54917] AH01071: Got error 'PHP message: PHP Warning:  fclose(): supplied resource is not a valid stream resource in /var/www/ncp-web/L10N.php on line 166\n'

Database logs

2018-09-16 14:07:27 1639236416 [Note] /usr/sbin/mysqld: Shutdown complete

2018-09-16 16:08:11 1988587520 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2018-09-16 16:08:11 1988587520 [Note] InnoDB: The InnoDB memory heap is disabled
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-09-16 16:08:11 1988587520 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Compressed tables use zlib 1.2.8
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Using Linux native AIO
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Using generic crc32 instructions
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Completed initialization of buffer pool
2018-09-16 16:08:11 1988587520 [Note] InnoDB: Highest supported file format is Barracuda.
2018-09-16 16:08:13 1988587520 [Note] InnoDB: 128 rollback segment(s) are active.
2018-09-16 16:08:13 1988587520 [Note] InnoDB: Waiting for purge to start
2018-09-16 16:08:13 1988587520 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 3502453
2018-09-16 16:08:14 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started
2018-09-16 16:08:14 1988587520 [Note] Plugin 'FEEDBACK' is disabled.
2018-09-16 16:08:14 1988587520 [Note] Server socket created on IP: '127.0.0.1'.
2018-09-16 16:08:14 1988587520 [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

Nextcloud logs

{"reqId":"bpYm1Ev5AoLvccpUaE5U","level":4,"time":"2018-06-27T17:15:38+00:00","remoteAddr":"","user":"--","app":"cron","method":"--","url":"--","message":"Not installed","userAgent":"--","version":""}
{"reqId":"cfunU1mr5VOqqfVEZfry","level":4,"time":"2018-06-27T17:30:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"--","url":"--","message":"Not installed","userAgent":"--","version":"13.0.4.0"}
{"reqId":"W55wBn8AAQEAABaH9TcAAIAY","level":2,"time":"2018-09-16T15:00:23+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wCH8AAQEAABaH9TgAAIAA","level":2,"time":"2018-09-16T15:00:25+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/login","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wDX8AAQEAABaH9TkAAIAB","level":2,"time":"2018-09-16T15:00:33+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wEX8AAQEAABaH9ToAAIAC","level":2,"time":"2018-09-16T15:00:34+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/login","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wMH8AAQEAABaH9UAAAIAI","level":2,"time":"2018-09-16T15:01:06+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/apps\/theming\/styles?v=0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wMH8AAQEAABaH9UMAAIAM","level":2,"time":"2018-09-16T15:01:08+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/js\/core\/merged-template-prepend.js?v=da743983-0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wMH8AAQEAABaH9UEAAIAJ","level":2,"time":"2018-09-16T15:01:09+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/apps\/theming\/logo?v=0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wMH8AAQEAABaH9UYAAIAP","level":2,"time":"2018-09-16T15:01:31+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/js\/core\/merged-share-backend.js?v=da743983-0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wMH8AAQEAABaH9U4AAIAX","level":2,"time":"2018-09-16T15:01:52+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/js\/core\/merged-login.js?v=da743983-0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55wMH8AAQEAABaH9U8AAIAY","level":2,"time":"2018-09-16T15:02:19+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/apps\/theming\/js\/theming?v=0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55y0X8AAQEAABZSEUMAAFMX","level":2,"time":"2018-09-16T15:12:48+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55y8H8AAQEAABZSEUYAAFMY","level":2,"time":"2018-09-16T15:13:18+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/login","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55zEH8AAQEAABZSEU0AAFMF","level":2,"time":"2018-09-16T15:13:52+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/apps\/theming\/logo?v=0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55zEH8AAQEAABZSEUwAAFMM","level":2,"time":"2018-09-16T15:14:22+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/apps\/theming\/styles?v=0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}
{"reqId":"W55zEH8AAQEAABZSEVIAAFMP","level":2,"time":"2018-09-16T15:14:22+00:00","remoteAddr":"192.168.0.31","user":"--","app":"core","method":"GET","url":"\/index.php\/js\/core\/merged-share-backend.js?v=da743983-0","message":"Login failed: 'ncp' (Remote IP: '192.168.0.31')","userAgent":"Mozilla\/5.0 (Windows NT 6.3; Win64; x64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.4.0"}

1 Like