# Nextcloud 16.0.1 Login Loop on Install

**URL:** <https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959>\
**Category:** ℹ️ Support\
**Created:** [May 26, 2019, 2:40pm UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959 "2019-05-26T14:40:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ytghazal](https://help.nextcloud.com/letter_avatar/ytghazal/32/5_5575768a8748004e209b776fc1b2916d.png) [@ytghazal](https://help.nextcloud.com/u/ytghazal)\
**Post date:** [May 26, 2019, 2:40pm UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959/1 "2019-05-26T14:40:37Z")

</div>

### Steps to reproduce

1. Downloaded Next Cloud Server Package, 16.0.1
2. Installed with nginx, php-fpm 7.3
3. Able to see initial setup page
4. Configure admin password and set to use mariadb
5. Greeted by login page
6. Attempt to Login, get redirected to .com/login?redirect\_url=/apps/files/ and get another login page

### Expected behaviour

To login as the admin account that was just created, and be greeted by the main dashboard

### Actual behaviour

redirects to .com/login?redirect\_url=/apps/files/. nextcloud.log shows no activity during login process even when set to info. Debug shows some information.

### Server configuration

**Operating system** :  
CentOS Linux release 7.6.1810 (Core)

**Web server:**  
nginx version: nginx/1.12.2

**Database:**  
mysql Ver 15.1 Distrib 5.5.60-MariaDB, for Linux (x86\_64) using readline 5.1

**PHP version:**  
PHP 7.3.5

**Nextcloud version:** (see Nextcloud admin page)  
Cannot see the admin page but i downloaded 16.0.1

**Updated from an older Nextcloud/ownCloud or fresh install:**  
Fresh Install

**Where did you install Nextcloud from:**

> **[Download and install Nextcloud](https://nextcloud.com/install/#instructions-server)**
>
> Stay in control of your data! Choose a hosting provider or download the Nextcloud server software for hosting on your own server or in your private cloud. | Discover how to install Nextcloud for desktop or mobile. Choose a hosting provider, host on...

**Signing status:**  
Cannot Log in

**List of activated apps:**  
Enabled:

- accessibility: 1.2.0
- activity: 2.9.1
- bruteforcesettings: 1.3.0
- cloud\_federation\_api: 0.2.0
- comments: 1.6.0
- dav: 1.9.2
- federatedfilesharing: 1.6.0
- federation: 1.6.0
- files: 1.11.0
- files\_pdfviewer: 1.5.0
- files\_rightclick: 0.13.0
- files\_sharing: 1.8.0
- files\_texteditor: 2.8.0
- files\_trashbin: 1.6.0
- files\_versions: 1.9.0
- files\_videoplayer: 1.5.0
- firstrunwizard: 2.5.0
- gallery: 18.3.0
- logreader: 2.1.0
- lookup\_server\_connector: 1.4.0
- nextcloud\_announcements: 1.5.0
- notifications: 2.4.1
- oauth2: 1.4.2
- password\_policy: 1.6.0
- privacy: 1.0.0
- provisioning\_api: 1.6.0
- recommendations: 0.4.0
- serverinfo: 1.6.0
- sharebymail: 1.6.0
- support: 1.0.0
- survey\_client: 1.4.0
- systemtags: 1.6.0
- theming: 1.7.0
- twofactor\_backupcodes: 1.5.0
- updatenotification: 1.6.0
- viewer: 1.0.0
- workflowengine: 1.6.0  
Disabled:
- admin\_audit
- encryption
- files\_external
- user\_ldap

**Nextcloud configuration:**  
{  
“system”: {  
“instanceid”: “_ **REMOVED SENSITIVE VALUE** _”,  
“passwordsalt”: “_ **REMOVED SENSITIVE VALUE** _”,  
“secret”: “_ **REMOVED SENSITIVE VALUE** _”,  
“trusted\_domains”: [  
“[cloud.domain1.com](http://cloud.domain1.com)”  
],  
“datadirectory”: “_ **REMOVED SENSITIVE VALUE** _”,  
“dbtype”: “mysql”,  
“version”: “16.0.1.1”,  
“overwrite.cli.url”: “https://cloud.domain1.com”,  
“dbname”: “_ **REMOVED SENSITIVE VALUE** _”,  
“dbhost”: “_ **REMOVED SENSITIVE VALUE** _”,  
“dbport”: “”,  
“dbtableprefix”: “oc\_”,  
“dbuser”: “_ **REMOVED SENSITIVE VALUE** _”,  
“dbpassword”: “_ **REMOVED SENSITIVE VALUE** _”,  
“installed”: true,  
“tempdirectory”: “/var/www/nextcloud/data/tmp”  
}  
}

**Are you using external storage, if yes which one:** local/smb/sftp/…  
It is mounted drive, so local

**Are you using encryption:** yes/no  
have not set it up, i assume no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/…  
No

### Client configuration

**Browser:**  
Firefox 67.0 && Chromium Version 74.0.3729.157

**Operating system:**  
Arch Linux

### Logs

#### Web server error log

Empty

#### Nextcloud log (data/nextcloud.log)

loglevel = Debug or 0  
did `tail -fn0 /var/www/nextcloud/data/nextcloud.log` and attempted to login

{“reqId”:“I9zLlyRDSFIdm8FJHQKq”,“level”:0,“time”:“2019-05-26T07:58:55+00:00”,“remoteAddr”:“37.120.130.4”,“user”:“–”,“app”:“cron”,“method”:“GET”,“url”:“/cron.php”,“message”:“Run OCA\Survey\_Client\BackgroundJobs\AdminNotification job with ID 12”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.1.1”}  
{“reqId”:“I9zLlyRDSFIdm8FJHQKq”,“level”:0,“time”:“2019-05-26T07:58:55+00:00”,“remoteAddr”:“37.120.130.4”,“user”:“–”,“app”:“cron”,“method”:“GET”,“url”:“/cron.php”,“message”:“Finished OCA\Survey\_Client\BackgroundJobs\AdminNotification job with ID 12 in 0 seconds”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.1.1”}  
{“reqId”:“ApAe0efuNkxBVnUeZLfh”,“level”:0,“time”:“2019-05-26T07:59:28+00:00”,“remoteAddr”:“37.120.130.4”,“user”:“–”,“app”:“core”,“method”:“GET”,“url”:“/apps/files/”,“message”:{“Exception”:“OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException”,“Message”:“Current user is not logged in”,“Code”:401,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php”,“line”:95,“function”:“beforeController”,“class”:“OC\AppFramework\Middleware\Security\SecurityMiddleware”,“type”:“-\>”,“args”:[{“ **class** ”:“OCA\Files\Controller\ViewController”},“index”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:97,“function”:“beforeController”,“class”:“OC\AppFramework\Middleware\MiddlewareDispatcher”,“type”:“-\>”,“args”:[{“ **class** ”:“OCA\Files\Controller\ViewController”},“index”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:126,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“-\>”,“args”:[{“ **class** ”:“OCA\Files\Controller\ViewController”},“index”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“ViewController”,“index”,{“ **class** ”:“OC\AppFramework\DependencyInjection\DIContainer”},{“\_route”:“files.view.index”}]},{“function”:“\_\_invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“-\>”,“args”:[{“\_route”:“files.view.index”}]},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:297,“function”:“call\_user\_func”,“args”:[{“ **class** ”:“OC\AppFramework\Routing\RouteActionHandler”},{“\_route”:“files.view.index”}]},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:975,“function”:“match”,“class”:“OC\Route\Router”,“type”:“-\>”,“args”:[“/apps/files/”]},{“file”:“/var/www/nextcloud/index.php”,“line”:42,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/nextcloud/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php”,“Line”:143,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.1.1”}  
{“reqId”:“lvwyXCJThP2mxqlOu55v”,“level”:0,“time”:“2019-05-26T07:59:29+00:00”,“remoteAddr”:“37.120.130.4”,“user”:“–”,“app”:“cron”,“method”:“GET”,“url”:“/cron.php”,“message”:“Run OCA\Files\BackgroundJob\ScanFiles job with ID 13”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.1.1”}  
{“reqId”:“lvwyXCJThP2mxqlOu55v”,“level”:0,“time”:“2019-05-26T07:59:29+00:00”,“remoteAddr”:“37.120.130.4”,“user”:“–”,“app”:“cron”,“method”:“GET”,“url”:“/cron.php”,“message”:“Finished OCA\Files\BackgroundJob\ScanFiles job with ID 13 in 0 seconds”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0”,“version”:“16.0.1.1”}

#### Browser log

JQMIGRATE: Migrate is installed, version 1.4.1 main.js:278:531  
Source map error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data  
Resource URL: [https://cloud.harmonygardencafe.com/core/js/dist/main.js?v=90f2442c-0](https://cloud.harmonygardencafe.com/core/js/dist/main.js?v=90f2442c-0)  
Source Map URL: main.js.map

Thank you for your help

---

<div class="post-metadata">

**Author:** ![iurii](https://help.nextcloud.com/letter_avatar/iurii/32/5_5575768a8748004e209b776fc1b2916d.png) [@iurii](https://help.nextcloud.com/u/iurii)\
**Post date:** [June 24, 2019, 3:11pm UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959/2 "2019-06-24T15:11:39Z")

</div>

Hi,

I have the same problem after update some packets in my Centos 7 server.

Did you find the solution or reason for this error?

---

<div class="post-metadata">

**Author:** ![iurii](https://help.nextcloud.com/letter_avatar/iurii/32/5_5575768a8748004e209b776fc1b2916d.png) [@iurii](https://help.nextcloud.com/u/iurii)\
**Post date:** [June 24, 2019, 8:04pm UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959/3 "2019-06-24T20:04:39Z")

</div>

I my case after packets update, owner and group changed for php-fpm sessions folder (for Centos 7 it will be /var/lib/php/session)

I changed owner and group back, made restart php-fpm, nginx and finally I could login…

---

<div class="post-metadata">

**Author:** ![ytghazal](https://help.nextcloud.com/letter_avatar/ytghazal/32/5_5575768a8748004e209b776fc1b2916d.png) [@ytghazal](https://help.nextcloud.com/u/ytghazal)\
**Post date:** [July 8, 2019, 1:58am UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959/4 "2019-07-08T01:58:16Z")

</div>

Thank you so much, this was the fix.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 23, 2024, 5:10pm UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959/5 "2024-09-23T17:10:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 3:01pm UTC](https://help.nextcloud.com/t/nextcloud-16-0-1-login-loop-on-install/53959/6 "2024-12-11T15:01:58Z")

</div>


