No web login after some days

Nextcloud version: 17.0.2
Operating system and version: SMP Debian 3.16.51-3 (2017-12-13) (uname -a)
Apache or nginx version: Apache 2.4.38
PHP version: 7.2.24

The issue you are facing:

When ever I install NC (on a hosted web space), everything’s quite well, but after one or two days, no web-login is shown in my browser (just a completely blank page is shown, no error message). I can still access NC by my mobile phone.

The installation always was fine, I could login, install apps, upload files, access from my mobile phone, etc. I was also able to run a NC update.

The first time I installed NC, I used a pre-defined installation of the hosting company. After the issue occurred several times, I installed NC also manually (last time I used the php-script: “setup-nextcloud.php”).
I try to run only the initial installation (NC 16), but also updated to 17.0.2

I guess, it is no problem with the actual NC installation, but more with the hosting system. Unfortunately the provider is no giving any support for installed software. From the logs I can not find anything.

Does anybody have any idea, what the problem might be?

Thank you in advance,

Carsten

The output of your Nextcloud log in Admin > Logging:

{"reqId":"XgcgCw-Vr7J865V5IJsdmQAAAAQ","level":2,"time":"2019-12-28T09:28:05+00:00","remoteAddr":"2.202.172.207","user":"--","app":"core","method":"GET","url":"\/nextcloud\/ocs\/v1.php\/cloud\/capabilities?fomat=json","message":"Login failed: 'chf' (Remote IP: '2.202.172.207')","userAgent":"Mozilla\/5.0 (iOS) Nextcloud-Talk v7.1.1","version":"17.0.2.1"}
{"reqId":"Xgi79PyaWyWWHRrX1a5tCQAAAAA","level":3,"time":"2019-12-29T14:45:09+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/","message":"unserialize(): Error at offset 0 of 96 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/79.0.3945.88 Safari\/537.36","version":"17.0.2.1"}
{"reqId":"Xgi9S6u5rdR-wTfz-RZIHQAAAAE","level":3,"time":"2019-12-29T14:50:52+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9YfyaWyWWHRrX1a5tEAAAAAA","level":3,"time":"2019-12-29T14:51:13+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9bau5rdR-wTfz-RZIIgAAAAE","level":3,"time":"2019-12-29T14:51:26+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9b6u5rdR-wTfz-RZIIwAAAAE","level":3,"time":"2019-12-29T14:51:27+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9vqu5rdR-wTfz-RZINQAAAAE","level":3,"time":"2019-12-29T14:52:46+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9xidE4P0Ld-a-nLwReAAAAAE","level":3,"time":"2019-12-29T14:52:55+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9xrvylHn6qyNwD@VitQAAAAI","level":3,"time":"2019-12-29T14:52:55+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9yH6HYgGRd0CrkoxnKAAAAAM","level":3,"time":"2019-12-29T14:52:56+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9yn6HYgGRd0CrkoxnKQAAAAM","level":3,"time":"2019-12-29T14:52:58+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"Xgi9xIh-lu6uOzlNbqhGTAAAAAA","level":3,"time":"2019-12-29T14:52:59+00:00","remoteAddr":"2.202.172.207","user":"chf","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"XgkDwsioH7uVYSeBYJx3pQAAAAA","level":3,"time":"2019-12-29T19:51:30+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"XgkDxMioH7uVYSeBYJx3pgAAAAA","level":3,"time":"2019-12-29T19:51:32+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"XgkDxcioH7uVYSeBYJx3pwAAAAA","level":3,"time":"2019-12-29T19:51:33+00:00","remoteAddr":"2.202.172.207","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"unserialize(): Error at offset 0 of 3 bytes at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico(2) : runtime-created function#4","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}
{"reqId":"XglhDmROrlFTSZHWW0y8XQAAAAA","level":3,"time":"2019-12-30T02:29:39+00:00","remoteAddr":"162.144.18.183","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/apps\/files_versions\/appinfo\/aedlxlix.php","message":"Function create_function() is deprecated at \/home\/www\/vendor\/guzzlehttp\/guzzle\/.8f9c9684.ico#2","userAgent":"Mozilla\/5.0 (Windows NT 6.1; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/27.0.1453.110 Safari\/537.36","version":"17.0.2.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'cleared',
  'passwordsalt' => 'cleared',
  'secret' => 'cleared',
  'trusted_domains' => 
  array (
    0 => 'cloud.stmartin-kelsterbach.de',
  ),
  'datadirectory' => '/home/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.2.1',
  'overwrite.cli.url' => 'https://cloud.stmartin-kelsterbach.de/nextcloud',
  'dbname' => 'xb721_db3',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'cleared',
  'dbpassword' => 'cleared',
  'installed' => true,
  'maintenance' => false,
  'mail_from_address' => 'cloudmaster',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'stmartin-kelsterbach.de ',
  'mail_smtphost' => 'xb7.serverdomain.org',
  'mail_smtpsecure' => 'tls',
  'mail_smtpport' => '587',
  'mail_smtpauthtype' => 'cleared',
  'mail_smtpauth' => cleared,
  'mail_smtpname' => 'cleared',
  'mail_smtppassword' => 'cleared',
  'updater.secret' => 'cleared',
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:

I have no access to /var/log/apache2.

Update:
I just created a second clean installation to compare to my broken NC. I found, that the index.html file has been renamed to index.html.bak.bak and a new index.php has been created in the core directory. By removing the later index.php the login page is shown again as it should be.

Any ideas, why this happened?