Fresh Install - Internal Server Error for users, but not admin

Hi there, I have a fresh install of Nextcloud 11.0.1.2 running on Ubuntu 16.04 (on an AWS EC2 instance). it is using PHP 7.0.13-0ubuntu0.16.04.1 on Apache/2.4.18 (Ubuntu). I have gone through and ensured all the required modules are installed (and that seems fine).

Now I can log in with my admin user without any issue. I then added a new user and attempted to log in to the web interface. It appears to log in fine, but once Iā€™m at the `https://my.domain.com/apps/files/.ā€™ I get an error stating:

Internal Server Error

The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.

More details can be found in the server log.

I then as the admin look into the log file, and I can see:

{"reqId":"LBT4AO5thxihYPGZ3Q\/\/","remoteAddr":"xxx.xxx.xxx.xxx","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(136): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(199): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 [internal function]: OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, false)\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(160): call_user_func_array(Array, Array)\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(90): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(114): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#7 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(299): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(1010): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#10 \\\/var\\\/www\\\/nextcloud\\\/index.php(40): OC::handleRequest()\\n#11 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":543}","level":3,"time":"2017-02-01T19:44:19+00:00","method":"GET","url":"\/apps\/files\/","user":"USERNAME","version":"11.0.1.2"}

I have been googling around for quite some time, but I have had no luck.

Thank you.

Can you output your apache log in /var/log/apache2/error.log after trying to login?

I think Iā€™m getting the same error as OP, what level of error logging do you need to see? If I have it set to warn then no error shows and if I set it to debug then the log is 800+ lines after 1 request.

Thanks in advance

An internal error should be present in the Apache (maybe nextcloud also) logs.

Where are you setting the verbosity?

It looks like there are 2 errors in the nextcloud log. One of them is the same as OP and the other is different

{"reqId":"I\/9xB5ihc9o0MikE4h2p","remoteAddr":"192.168.1.169","app":"PHP","message":"opendir(\/mnt\/XXXX\/cache): failed to open dir: No such file or directory at \/usr\/share\/webapps\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#117","level":3,"time":"2017-02-08T12:02:06+00:00","method":"POST","url":"\/nextcloud\/index.php\/login","user":"XXXXX","version":"11.0.1.2"}
        {"reqId":"fQrnbHWOCi7zvy9pboGv","remoteAddr":"192.168.1.169","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(223): OC\\\\Files\\\\Node\\\\Node->getFileInfo()\\n#1 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(106): OC\\\\Files\\\\Node\\\\Node->getPermissions()\\n#2 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(144): OC\\\\Files\\\\Node\\\\Node->checkPermissions(4)\\n#3 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/AppData\\\/AppData.php(112): OC\\\\Files\\\\Node\\\\Folder->newFolder('XXXX')\\n#4 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/AvatarManager.php(100): OC\\\\Files\\\\AppData\\\\AppData->newFolder('XXXX')\\n#5 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(115): OC\\\\AvatarManager->getAvatar('XXXX')\\n#6 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(232): OC\\\\TemplateLayout->__construct('user', 'files')\\n#7 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/public\\\/AppFramework\\\/Http\\\/TemplateResponse.php(157): OC_Template->fetchPage()\\n#8 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(113): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#9 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(114): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#10 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#11 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#12 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(299): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#13 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/base.php(1010): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#14 \\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/index.php(40): OC::handleRequest()\\n#15 {main}\",\"File\":\"\\\/usr\\\/share\\\/webapps\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php\",\"Line\":86}","level":3,"time":"2017-02-08T12:02:06+00:00","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/","user":"XXXX","version":"11.0.1.2"}

This is my apache log. I was setting the verbosity in httpd.conf, it was set at info for these logs.

[Wed Feb 08 20:01:46.793334 2017] [ssl:info] [pid 8262] [client 192.168.1.169:54693] AH01964: Connection to child 0 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:01:53.414148 2017] [ssl:info] [pid 8263] [client 192.168.1.169:54694] AH01964: Connection to child 1 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:01:54.321264 2017] [ssl:info] [pid 8264] [client 192.168.1.169:54695] AH01964: Connection to child 2 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:01:54.321546 2017] [ssl:info] [pid 8265] [client 192.168.1.169:54696] AH01964: Connection to child 3 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:01:54.325465 2017] [ssl:info] [pid 8266] [client 192.168.1.169:54699] AH01964: Connection to child 4 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:01:54.325715 2017] [ssl:info] [pid 8262] [client 192.168.1.169:54697] AH01964: Connection to child 0 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:01:54.326132 2017] [ssl:info] [pid 8274] [client 192.168.1.169:54698] AH01964: Connection to child 5 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:00.551907 2017] [ssl:info] [pid 8278] [client ::1:33688] AH01964: Connection to child 6 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:00.553184 2017] [ssl:info] [pid 8278] [client ::1:33688] AH01998: Connection closed to child 6 with abortive shutdown (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:01.553623 2017] [ssl:info] [pid 8279] [client ::1:33689] AH01964: Connection to child 7 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:01.554803 2017] [ssl:info] [pid 8279] [client ::1:33689] AH01998: Connection closed to child 7 with abortive shutdown (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:05.089568 2017] [ssl:info] [pid 8282] [client 192.168.1.169:54700] AH01964: Connection to child 8 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:05.102891 2017] [ssl:info] [pid 8283] [client 192.168.1.169:54701] AH01964: Connection to child 9 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:06.909305 2017] [ssl:info] [pid 8284] [client 192.168.1.169:54703] AH01964: Connection to child 10 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:06.914865 2017] [ssl:info] [pid 8285] [client 192.168.1.169:54702] AH01964: Connection to child 11 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:06.915545 2017] [ssl:info] [pid 8266] [client 192.168.1.169:54706] AH01964: Connection to child 4 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:06.915649 2017] [ssl:info] [pid 8262] [client 192.168.1.169:54705] AH01964: Connection to child 0 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:06.915543 2017] [ssl:info] [pid 8263] [client 192.168.1.169:54704] AH01964: Connection to child 1 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:17.575448 2017] [ssl:info] [pid 8274] [client ::1:33690] AH01964: Connection to child 5 established (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:17.576028 2017] [ssl:info] [pid 8274] [client ::1:33690] AH01998: Connection closed to child 5 with abortive shutdown (server nextcloud.archserverxu4:443)
    [Wed Feb 08 20:02:37.165982 2017] [ssl:info] [pid 8265] [client 192.168.1.169:54709] AH01964: Connection to child 3 established (server nextcloud.archserverxu4:443)

This is my first time trying to host a web server so Iā€™m still trying to get my head around it all but it seems to me that the error is with nextcloud or maybe something to do with my SSL setup?

Thanks in advance

Luke