server icon indicating copy to clipboard operation
server copied to clipboard

Silent failure when logging in to web interface

Open KimTheFirst opened this issue 8 years ago • 1 comments

Steps to reproduce

  1. Migrate nextcloud installation from one server to another.
  2. PHP-FPM
  3. ?

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.

KimTheFirst avatar Jun 14 '18 18:06 KimTheFirst

I am a moron.

KimTheFirst avatar Jun 14 '18 23:06 KimTheFirst