Fresh Install of 11.0.1 login loop

I’m new to NextCloud, and have been trying to get it installed (11.0.1) on my RHEL6U8x64 system and after installing php56 I got the initial page to come up and ask for admin/password and I filled in the fields for mysql database and confirmed it wrote to the database but nothing on the page after login worked and opening a new browser and trying to login causes the login page to come back and ask for login again, over and over… What did I miss???

Thanks, Mike

Apache needs write access to your files

1 Like

what directories? all of them? I changed config apps and web root to be writeable by apache

I just did “chown -R apache.apache cloud” and it made no difference

Wasn’t aware of the nextcloud.log file in the data directory, it had an error trying to write to /var/lib/php/session, so I had to change ownership to apache

hi everyone,
i’ve the same problem,
fresh install of nextcloud. 11.0.1 on centos 7 + php7.1+ mariadb
first login + database connection ok
but after that 've a login bootloop and i can’t login.

any solution?

Folks do you see anything in the webserver logs?

This is my nextcloud log. Permissions are nginx:nginx on the /var/www folder and under. Also, the files exist, so I have no clue. (BTW, this is NextCloud 12, fresh install with NginX and MySQL)

{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/vendor\/core.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: js\/core\/merged-template-prepend.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/search\/js\/search.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/js\/backgroundjobs.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: js\/core\/merged-share-backend.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/js\/jquery-ui-fixes.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/js\/files\/fileinfo.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/js\/files\/client.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/js\/contactsmenu.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/vendor\/jsTimezoneDetect\/jstz.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: js\/core\/merged-login.js, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/vendor\/select2\/select2.css, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/vendor\/jquery-ui\/themes\/base\/jquery-ui.css, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/css\/jquery.ocdialog.css, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}
{"reqId":"GfB8pPbR9nhp4eCo2eCN","level":3,"time":"2017-09-19T13:30:40+00:00","remoteAddr":"10.0.0.21","user":"--","app":"lib","method":"GET","url":"\/login?redirect_url=\/apps\/files\/","message":"ResourceLocator can not find a web root (root: \/var\/www\/hu.mycompany.cloud, file: core\/css\/guest.css, webRoot: , throw: false)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/59.0.3071.109 Safari\/537.36","version":"13.0.0.3"}

File permissions in /var/lib/php/ are all wrong if you are using NginX.

chown nginx:nginx /var/lib/php/session/
chown root:nginx /var/lib/php/wsdlcache/
chown root:nginx /var/lib/php/opcache/

Please @system , write this in the installation manual regarding to NginX because I’ve literally teared out all my hair until I’ve found this.

nginx isn’t officially supported, so you can only raise it as an issue:

I second this. I have also been at my wits end trying to solve this until I finally came across this today. Supported or not. I did my upgrade from an OwnCloud installation to NextCloud. The OwnCloud was a boxed setup on vultr.com. After upgrade I couldn’t log in to the webui at all with any account even though the client was still working, at least until following these changes:

chown nginx:nginx /var/lib/php/session/
chown root:nginx /var/lib/php/wsdlcache/
chown root:nginx /var/lib/php/opcache/

It should be easier to find this solution.