NextCloud 13 Login Page Redirect Loop - How to fix it How to address a common issue of NextCloud Server, a great open-source file sync and share solution

NextCloud 13 Login Page Redirect Loop - How to fix it

If you've never heard of NextCloud, do yourself a favor and fill that huge gap by taking a look here: in very short words, we're talking about an open-source File Sync and Share solution that basically allows any Enterprise to build their very own Dropbox-like (or Google-Driveish) space to securely keep their data under control.

Once installed, it will works just like a standard cloud-storage SaaS solutions like the one mentioned above... except it's not a SaaS! Meaning that you'll be able to install it on your own servers and handle everything on your own, without having to include a third-party host acting as a data processor in your ISO27001 or GDPR compliance papers.

If you want to know more about NextCloud (or other similar open-source projects like Pydio), take a look on their website and/or visit the project's official GitHub repo.

In this post we'll talk about a minor issue which can affect a NextCloud installation on a typical Linux server, such as CentOS, Fedora, Debian, Ubuntu, RHEL and the likes. The problem is a nasty Login Page Redirect Loop, which basically means that you are unable to log-in.

NextCloud 13 Login Page Redirect Loop - How to fix it

This issue can happen regardless of what you're using: PHP 5 or PHP7, Apache or Nginx, and so on.

Luckily enough, the fix is most likely around the corner: you just have to fix the access permissions on some of your folders, such as the following:

These console commands are good if you've installed NextCloud on the /var/www/nextcloud/ folder and if you're using Nginx with its default nginx  user. If you're using a different folder and/or web server (such as Apache) and/or user, replace the values accordingly before running these commands!

As soon as you do that, remember to clear your browser's cookies and try again: hopefully, you'll be able to see the following...

NextCloud 13 Login Page Redirect Loop - How to fix it

... Meaning that you're good to go!

That's it: I sincerely hope that this small guide will help those who're struggling with this nasty issue!

 

About Ryan

IT Project Manager, Web Interface Architect and Lead Developer for many high-traffic web sites & services hosted in Italy and Europe. Since 2010 it's also a lead designer for many App and games for Android, iOS and Windows Phone mobile devices for a number of italian companies. Microsoft MVP for Development Technologies since 2018.

View all posts by Ryan

2 Comments on “NextCloud 13 Login Page Redirect Loop - How to fix it How to address a common issue of NextCloud Server, a great open-source file sync and share solution

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.