The oddest login problem

nc13

#1

Nextcloud version 13.0.1
Operating system and version Debian 9.4
Apache or nginx version Apache/2.4.25 (Debian)
PHP version 7.0.27-0+deb9u1
Database version mariadb Ver 15.1 Distrib 10.1.26-MariaDB

The issue you are facing:

Unable to login to Nextcloud web interface via laptop but I can from my desktop PC. The login button does not respond.

Is this the first time you’ve seen this error? Yes.

Working PC

Not working laptop

Steps taken

  1. Cleared cache on laptop browser
  2. Cleared hidden .mozilla cache
  3. Tried different browsers
  4. Reformatted laptop (same result)
  5. Connected the laptop to the network via wi-fi, wired ethernet and tried both over a VPN and not over a VPN.

Desktop and laptop OS in Mint 18.3

Main browser used is Firefox 59.0.2 which is the same on both devices.

I have resolved the issues in the logs below. No new error logged since 12:39 today

The output of your Nextcloud log in Admin > Logging:

"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:17+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"file_get_contents(\/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js\/core\/merged-template-prepend.js.deps): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#214","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:17+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"stat(): stat failed for \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js\/core\/merged-template-prepend.js.deps at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#140","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:17+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"stat(): stat failed for \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js\/core at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#140","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:18+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"stat(): stat failed for \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#140","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:18+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"stat(): stat failed for \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4 at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#140","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:18+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"touch(): Unable to create file \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js\/core\/merged-template-prepend.js because No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#204","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:18+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"touch(): Unable to create file \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js\/core\/merged-template-prepend.js.deps because No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#204","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:18+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"PHP","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"touch(): Unable to create file \/mnt\/FreeNAS\/nextcloud\/data\/appdata_ocamqr445cu4\/js\/core\/merged-template-prepend.js.gzip because No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#204","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
{"reqId":"i2UPSwHkjJ08DdeciaHd","level":3,"time":"2018-04-15T11:39:18+00:00","remoteAddr":"192.168.0.25","user":"user@domain.com","app":"index","method":"GET","url":"\/index.php\/login\/challenge\/totp?redirect_url=\/index.php\/settings\/user\/security","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(217): OC\\\\Files\\\\Node\\\\Node->getFileInfo()\\n#1 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(117): OC\\\\Files\\\\Node\\\\Node->getPermissions()\\n#2 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/File.php(62): OC\\\\Files\\\\Node\\\\Node->checkPermissions(2)\\n#3 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/SimpleFS\\\/SimpleFile.php(104): OC\\\\Files\\\\Node\\\\File->putContent('(function($) {\\\\n...')\\n#4 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSCombiner.php(194): OC\\\\Files\\\\SimpleFS\\\\SimpleFile->putContent('(function($) {\\\\n...')\\n#5 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSCombiner.php(103): OC\\\\Template\\\\JSCombiner->cache('\\\/var\\\/www\\\/html\\\/n...', 'merged-template...', Object(OC\\\\Files\\\\SimpleFS\\\\SimpleFolder))\\n#6 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSResourceLocator.php(113): OC\\\\Template\\\\JSCombiner->process('\\\/var\\\/www\\\/html\\\/n...', 'core\\\/js\\\/merged-...', 'core')\\n#7 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSResourceLocator.php(69): OC\\\\Template\\\\JSResourceLocator->cacheAndAppendCombineJsonIfExist('\\\/var\\\/www\\\/html\\\/n...', 'core\\\/js\\\/merged-...')\\n#8 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/ResourceLocator.php(78): OC\\\\Template\\\\JSResourceLocator->doFind('js\\\/merged-templ...')\\n#9 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(306): OC\\\\Template\\\\ResourceLocator->find(Array)\\n#10 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(146): OC\\\\TemplateLayout::findJavascriptFiles(Array)\\n#11 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(207): OC\\\\TemplateLayout->__construct('guest', 'core')\\n#12 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/public\\\/AppFramework\\\/Http\\\/TemplateResponse.php(157): OC_Template->fetchPage()\\n#13 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(114): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#14 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(115): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OC\\\\Core\\\\Controller\\\\TwoFactorChallengeController), 'showChallenge')\\n#15 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('OC\\\\\\\\Core\\\\\\\\Control...', 'showChallenge', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#16 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#17 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(297): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#18 \\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/base.php(998): OC\\\\Route\\\\Router->match('\\\/login\\\/challeng...')\\n#19 \\\/var\\\/www\\\/html\\\/nextcloud\\\/index.php(37): OC::handleRequest()\\n#20 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php\",\"Line\":97}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko\/20100101 Firefox\/59.0","version":"13.0.1.1"}
<?php
$CONFIG = array (
  'passwordsalt' => 'mdjTN7M+bJB+3tebS6j6i9gCJ3mwUx',
  'secret' => '2NTj21gf4a3DQbWOMbLzmXX0DD6zKi6eAcI+9H+p67jX+JSF',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.domain.net',
  ),
  'datadirectory' => '/mnt/FreeNAS/nextcloud/data',
  'overwrite.cli.url' => 'https://nextcloud.domain.net',
  'dbtype' => 'mysql',
  'version' => '13.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'foo',
  'installed' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'nextcould',
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'domain.net',
  'instanceid' => 'ocamqr445cu4',
);

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

[Sun Apr 15 00:07:19.191852 2018] [mpm_prefork:notice] [pid 633] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Apr 15 00:07:19.191925 2018] [core:notice] [pid 633] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 15 12:27:30.976285 2018] [mpm_prefork:notice] [pid 633] AH00169: caught SIGTERM, shutting down
[Sun Apr 15 12:27:31.334463 2018] [mpm_prefork:notice] [pid 29541] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Apr 15 12:27:31.334623 2018] [core:notice] [pid 29541] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 15 12:37:11.147562 2018] [mpm_prefork:notice] [pid 29541] AH00169: caught SIGTERM, shutting down
[Sun Apr 15 12:37:11.507444 2018] [mpm_prefork:notice] [pid 29606] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Apr 15 12:37:11.507609 2018] [core:notice] [pid 29606] AH00094: Command line: '/usr/sbin/apache2'
[Sun Apr 15 18:30:44.056131 2018] [core:notice] [pid 29606] AH00052: child pid 30941 exit signal Segmentation fault (11)
[Sun Apr 15 18:30:44.102546 2018] [mpm_prefork:notice] [pid 29606] AH00169: caught SIGTERM, shutting down
[Sun Apr 15 18:31:07.999484 2018] [mpm_prefork:notice] [pid 590] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Apr 15 18:31:08.001109 2018] [core:notice] [pid 590] AH00094: Command line: '/usr/sbin/apache2'

#2

Could it be a browser issue?


#3

Steps taken

Cleared cache on laptop browser
Cleared hidden .mozilla cache
Tried different browsers
Reformatted laptop (same result)

Open to other suggestions.


#4

It’s only after you make the post that you figure it out…

I am still not sure why it is breaking in this scenario but it is related to DNS. I have the laptop logging in now.

Once I have figured out exactly where the issue is I will update with a better explanation.