White Page - no login screen

Nextcloud version 12.0.4.3:
Operating system and version Ubuntu 16.04.1:
Apache or nginx version Apache 2.4.18:
PHP version 7.0.22:

The issue you are facing:

When I accees nextcloud web site opens to a blank white screen.
Below are the relevant most recent portions of my logs, have not included the entire logs for nextcloud logs. The apache logs shown below include all lines from current error.log and the last 20 lines from yesterday’s logs.

Is this the first time you’ve seen this error? yes:

Steps to replicate it:

  1. Access nextcloud

The output of your Nextcloud log in Admin > Logging:

{"reqId":"11n1Jnfa7XKYpnhw6M4c","level":3,"time":"2018-01-27T13:26:10+00:00","remoteAddr":"192.168.2.46","user":"--","app":"core","method":"PROPFIND","url":"\/remote.php\/dav\/calendars\/Kathy\/personal_shared_by_Brian\/","message":"Exception: {\"Exception\":\"OC\\\\HintException\",\"Message\":\"Memcache \\\\OC\\\\Memcache\\\\APCu not available for local cache\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Server.php(467): OC\\\\Memcache\\\\Factory->__construct('601ac42d96df580...', Object(OC\\\\Log), '\\\\\\\\OC\\\\\\\\Memcache\\\\\\\\AP...', '\\\\\\\\OC\\\\\\\\Memcache\\\\\\\\AP...', NULL)\\n#1 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Server->OC\\\\{closure}(Object(OC\\\\Server))\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(115): Pimple\\\\Container->offsetGet('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(163): OC\\\\ServerContainer->query('OC\\\\\\\\Memcache\\\\\\\\Fac...')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->OC\\\\AppFramework\\\\Utility\\\\{closure}(Object(OC\\\\Server))\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(115): Pimple\\\\Container->offsetGet('MemCacheFactory')\\n#7 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('MemCacheFactory')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Server.php(1326): OC\\\\ServerContainer->query('MemCacheFactory')\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Server.php(425): OC\\\\Server->getMemCacheFactory()\\n#10 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Server->OC\\\\{closure}(Object(OC\\\\Server))\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(115): Pimple\\\\Container->offsetGet('OCP\\\\\\\\IURLGenerat...')\\n#12 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OCP\\\\\\\\IURLGenerat...')\\n#13 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(163): OC\\\\ServerContainer->query('OCP\\\\\\\\IURLGenerat...')\\n#14 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->OC\\\\AppFramework\\\\Utility\\\\{closure}(Object(OC\\\\Server))\\n#15 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(115): Pimple\\\\Container->offsetGet('URLGenerator')\\n#16 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('URLGenerator')\\n#17 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Server.php(1292): OC\\\\ServerContainer->query('URLGenerator')\\n#18 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(244): OC\\\\Server->getURLGenerator()\\n#19 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(132): OC\\\\TemplateLayout::findJavascriptFiles(Array)\\n#20 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(205): OC\\\\TemplateLayout->__construct('error', '')\\n#21 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(132): OC_Template->fetchPage()\\n#22 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(342): OC\\\\Template\\\\Base->printPage()\\n#23 \\\/var\\\/www\\\/nextcloud\\\/remote.php(83): OC_Template::printExceptionErrorPage(Object(OC\\\\HintException))\\n#24 \\\/var\\\/www\\\/nextcloud\\\/remote.php(165): handleException(Object(OC\\\\HintException))\\n#25 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Memcache\\\/Factory.php\",\"Line\":96}","userAgent":"DAVdroid\/1.10.1.1-gplay (1\/20\/18; dav4android; okhttp3) Android\/7.1.1","version":"12.0.4.3"}
<?php
$CONFIG = array (
  'instanceid' => 'someuser',
  'passwordsalt' => 'passwordsalt',
  'secret' => 'superlongstring',
  'trusted_domains' =>
  array (
    0 => 'mywebserver',
    1 => 'mynextcloudinstance.lan',
    2 => 'mynextcloudinstance.org',
  ),
  'datadirectory' => '/mnt/shares/nextcloud/data',
  'overwrite.cli.url' => 'http://my web server/nextcloud',
  'dbtype' => 'mysql',
  'version' => '12.0.4.3',
  'dbname' => 'db_nextcloud',
  'dbhost' => 'remote sql server',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'someuser',
  'dbpassword' => 'password',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'logtimezone' => 'UTC',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'me',
  'mail_domain' => 'outlook.com',
  'mail_smtpauthtype' => 'LOGIN',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp-mail.outlook.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'somebody@outlook.com',
  'mail_smtppassword' => 'password,
  'updater.release.channel' => 'stable',
);
PASTE HERE

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

[Sat Jan 27 06:25:24.867146 2018] [ssl:warn] [pid 2137] AH01909: vsWebServer.broughtonhome.lan:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jan 27 06:25:24.867418 2018] [wsgi:warn] [pid 2137] mod_wsgi: Compiled for Python/2.7.11.
[Sat Jan 27 06:25:24.867431 2018] [wsgi:warn] [pid 2137] mod_wsgi: Runtime using Python/2.7.12.
[Sat Jan 27 06:25:24.867543 2018] [mpm_prefork:notice] [pid 2137] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
[Sat Jan 27 06:25:24.867555 2018] [core:notice] [pid 2137] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jan 26 06:36:06.046126 2018] [wsgi:warn] [pid 6879] mod_wsgi: Compiled for Python/2.7.11.
[Fri Jan 26 06:36:06.046137 2018] [wsgi:warn] [pid 6879] mod_wsgi: Runtime using Python/2.7.12.
[Fri Jan 26 06:36:06.058357 2018] [mpm_prefork:notice] [pid 6879] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
[Fri Jan 26 06:36:06.058405 2018] [core:notice] [pid 6879] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jan 26 07:02:53.828329 2018] [mpm_prefork:notice] [pid 6879] AH00169: caught SIGTERM, shutting down
[Fri Jan 26 07:03:26.223125 2018] [ssl:warn] [pid 1571] AH01909: vsWebServer.broughtonhome.lan:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jan 26 07:03:27.262332 2018] [ssl:warn] [pid 1576] AH01909: vsWebServer.broughtonhome.lan:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jan 26 07:03:27.283265 2018] [wsgi:warn] [pid 1576] mod_wsgi: Compiled for Python/2.7.11.
[Fri Jan 26 07:03:27.283280 2018] [wsgi:warn] [pid 1576] mod_wsgi: Runtime using Python/2.7.12.
[Fri Jan 26 07:03:27.286933 2018] [mpm_prefork:notice] [pid 1576] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
[Fri Jan 26 07:03:27.286986 2018] [core:notice] [pid 1576] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jan 26 07:34:07.498192 2018] [mpm_prefork:notice] [pid 1576] AH00169: caught SIGTERM, shutting down
[Fri Jan 26 07:34:18.348249 2018] [ssl:warn] [pid 2136] AH01909: vsWebServer.broughtonhome.lan:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jan 26 07:34:18.414261 2018] [ssl:warn] [pid 2137] AH01909: vsWebServer.broughtonhome.lan:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jan 26 07:34:18.414510 2018] [wsgi:warn] [pid 2137] mod_wsgi: Compiled for Python/2.7.11.
[Fri Jan 26 07:34:18.414521 2018] [wsgi:warn] [pid 2137] mod_wsgi: Runtime using Python/2.7.12.
[Fri Jan 26 07:34:18.422814 2018] [mpm_prefork:notice] [pid 2137] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations
[Fri Jan 26 07:34:18.422880 2018] [core:notice] [pid 2137] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 27 06:25:24.557134 2018] [mpm_prefork:notice] [pid 2137] AH00171: Graceful restart requested, doing restart
[Sat Jan 27 06:25:24.804682 2018] [core:error] [pid 2137] (EAI 2)Name or service not known: AH00547: Could not resolve host name *.80 -- ignoring!

Little further digging found or suspected an issue with ldap, believe see below confirms the error.

sudo -u www-data php occ app:check-code user_ldap
Analysing /var/www/nextcloud/apps/user_ldap/ajax/getConfiguration.php
 4 errors
    line   28: OCP\JSON - Static method of deprecated class must not be called
    line   29: OCP\JSON - Static method of deprecated class must not be called
    line   30: OCP\JSON - Static method of deprecated class must not be called
    line   40: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/ajax/deleteConfiguration.php
 5 errors
    line   30: OCP\JSON - Static method of deprecated class must not be called
    line   31: OCP\JSON - Static method of deprecated class must not be called
    line   32: OCP\JSON - Static method of deprecated class must not be called
    line   37: OCP\JSON - Static method of deprecated class must not be called
    line   40: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/ajax/wizard.php
 15 errors
    line   29: OCP\JSON - Static method of deprecated class must not be called
    line   30: OCP\JSON - Static method of deprecated class must not be called
    line   31: OCP\JSON - Static method of deprecated class must not be called
    line   36: OCP\JSON - Static method of deprecated class must not be called
    line   42: OCP\JSON - Static method of deprecated class must not be called
    line   90: OCP\JSON - Static method of deprecated class must not be called
    line   94: OCP\JSON - Static method of deprecated class must not be called
    line   97: OCP\JSON - Static method of deprecated class must not be called
    line  106: OCP\JSON - Static method of deprecated class must not be called
    line  110: OCP\JSON - Static method of deprecated class must not be called
    line  113: OCP\JSON - Static method of deprecated class must not be called
    line  122: OCP\JSON - Static method of deprecated class must not be called
    line  129: OCP\JSON - Static method of deprecated class must not be called
    line  137: OCP\JSON - Static method of deprecated class must not be called
    line  140: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/ajax/getNewServerConfigPrefix.php
 4 errors
    line   26: OCP\JSON - Static method of deprecated class must not be called
    line   27: OCP\JSON - Static method of deprecated class must not be called
    line   28: OCP\JSON - Static method of deprecated class must not be called
    line   50: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/ajax/clearMappings.php
 5 errors
    line   30: OCP\JSON - Static method of deprecated class must not be called
    line   31: OCP\JSON - Static method of deprecated class must not be called
    line   32: OCP\JSON - Static method of deprecated class must not be called
    line   46: OCP\JSON - Static method of deprecated class must not be called
    line   48: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/ajax/setConfiguration.php
 4 errors
    line   29: OCP\JSON - Static method of deprecated class must not be called
    line   30: OCP\JSON - Static method of deprecated class must not be called
    line   31: OCP\JSON - Static method of deprecated class must not be called
    line   50: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/ajax/testConfiguration.php
 8 errors
    line   29: OCP\JSON - Static method of deprecated class must not be called
    line   30: OCP\JSON - Static method of deprecated class must not be called
    line   31: OCP\JSON - Static method of deprecated class must not be called
    line   70: OCP\JSON - Static method of deprecated class must not be called
    line   74: OCP\JSON - Static method of deprecated class must not be called
    line   77: OCP\JSON - Static method of deprecated class must not be called
    line   81: OCP\JSON - Static method of deprecated class must not be called
    line   85: OCP\JSON - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/templates/renewpassword.php
 2 errors
    line   10: OC_Util - Static method of private class must not be called
    line   11: OC_Util - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/appinfo/app.php
 1 errors
    line   54: OC_User - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/appinfo/install.php
 2 errors
    line   24: OCP\Config - Static method of deprecated class must not be called
    line   26: OCP\Config - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/lib/Helper.php
 2 errors
    line  156: OCP\DB - Static method of deprecated class must not be called
    line  166: OCP\DB - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/lib/Access.php
 3 errors
    line  573: OCP\User::userExists - Method of deprecated class must not be called
    line  704: OCP\User::userExists - Method of deprecated class must not be called
    line  962: == - is discouraged
Analysing /var/www/nextcloud/apps/user_ldap/lib/Wizard.php
 1 errors
    line  908: == - is discouraged
Analysing /var/www/nextcloud/apps/user_ldap/lib/User/User.php
 1 errors
    line  539: OC_Helper - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/lib/FilesystemHelper.php
 1 errors
    line   45: OC_Util - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/lib/Controller/RenewPasswordController.php
 2 errors
    line   27: OC_Util - private class must not be imported with a use statement
    line  145: OC_User - Static method of private class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/lib/Jobs/UpdateGroups.php
 5 errors
    line   84: OCP\Config - Static method of deprecated class must not be called
    line   92: OCP\DB - Static method of deprecated class must not be called
    line  130: OCP\DB - Static method of deprecated class must not be called
    line  152: OCP\DB - Static method of deprecated class must not be called
    line  211: OCP\DB - Static method of deprecated class must not be called
Analysing /var/www/nextcloud/apps/user_ldap/lib/Configuration.php
 2 errors
    line  352: OCP\Config - Static method of deprecated class must not be called
    line  364: OCP\Config - Static method of deprecated class must not be called
Deprecated file found: /var/www/nextcloud/apps/user_ldap/appinfo/update.php - please use repair steps
App is not compliant

What are “repair steps”? I have not found anything on the internet about how to use repair steps.

For me this sounds like the root cause.
Could you check your Memcache settings?

Do you use ldap to login? I just checked the ldap app on my server as well and received the exact same error that you did. I’m not using ldap though and my server works fine.

Can you also try holding CTRL and pressing R on your keyboard to fully reload your NC web page (which is currently white)?

Commented out the Memcache settings on my config.php, restarted apache now loading properly. Looking at the Nextcloud 12 Server Administration Manual states to use apt-get install php5-apcu/trusty-backports to enable Memcache? Seems odd to me as all the other php modules have been updated to php7.0. Just looking for validation this is correct.

Yes I use ldap for login, interesting getting those errors but it works.

Thanks!

1 Like