NextCloud Endless Redirect on login

Hi Adam,

I had the same problem. Also running with CentOS 7, nginx, but php 5.6. (Does php-fpm have a separate version from php?) The odd thing was that everything was working fine five days ago. There was a big system update 7/7 which among other things included php 5.6.30 to 5.6.31 IIRC. My guess is that this screwed something up, but rolling back the update did not fix it.

So I was hoping someone would have answered because I was in the me-too camp. Anyway, eventually I read how to configure logging in config/config.php and an error in this log indicated there was a problem with the php session data:

Failed to write session data (files). Please verify that the current setting of session.save_path is correct

An easy fix for this was to “chmod -R 777 /var/lib/php/session”. Mind you, there are probably reasons why this is not the BEST fix. But maybe it will help you get a little further.

A few other points:

  • there were some php updates today and maybe this contributed to it working.
  • I thought nextcloud does not work with php 7 (or am i conflating php with php-fpm?)
  • the occ command has an integrity check which may highlight some problems.
  • if you don’t get any further, try adding logfile in the config.php.

I wish I knew how something can just break like this. I am not blaming anyone, I am just curious.

I hope this was helpful. Please write back if you figure out anything.