Silent failure when logging in to web interface
Steps to reproduce
- Migrate nextcloud installation from one server to another.
- PHP-FPM
- ?
Expected behaviour
Log in via web interface
Actual behaviour
No log in, reload login page
Server configuration
Operating system: Debian stretch
Web server: nginx
Database: maria
PHP version: 7.25
Nextcloud version: 13.1
It is not immediately evident what the login workflow is and how and where it is prone to fail. No errors are logged, and if it fails there is no clue as to the cause. Log level 3 shows nothing interesting at all in regards to where the process fails, and there is nothing in the syslog or web log either.
For historical reasons, the nextcloud login seems to be doing something very strange with PHP_AUTH_PW and PHP_AUTH_USER. By adding a filthy hack, the username and password make it to the login routine. But it still fails. The backend in Manager.php ->get returns a user. It just doesn't log in.
I am a moron.