I just upgraded my passbolt, and now I’m stuck in a login loop. The login screen shows as it should, but as its trying to log me in the page flashes a firefox error saying that I need an addon, then takes me back to the login page. I clearly have the addon, or I wouldn’t even be able to try to log in, and it is also the latest version. Health checks all pass too.
[PASS] PHP version 7.0.30-0+deb9u1.
[PASS] PCRE compiled with unicode support.
[PASS] The temporary directory and its content are writable.
[PASS] The public image directory and its content are writable.
[PASS] The logs directory and its content are writable.
[PASS] GD or Imagick extension is installed.
[PASS] Intl extension is installed.
[PASS] Mbstring extension is installed.
[PASS] The application config file is present
[PASS] The passbolt config file is present
[PASS] Debug mode is off.
[PASS] Cache is working.
[PASS] Unique value set for security.salt
[PASS] Full base url is set
[PASS] App.fullBaseUrl validation OK.
[PASS] /healthcheck/status is reachable.
[PASS] SSL peer certificate validates
[PASS] Hostname is matching in SSL certificate.
[WARN] Using a self-signed certificate
[PASS] The application is able to connect to the database
[PASS] 19 tables found
[PASS] Some default content is present
[PASS] The database schema up to date.
[PASS] PHP GPG Module is installed and loaded.
[PASS] The server gpg key is not the default one
[PASS] The environment variable GNUPGHOME is set to /home/www-data/.gnupg.
[PASS] The directory /home/www-data/.gnupg containing the keyring is writable by the webserver user.
[PASS] The public key file is defined in config/passbolt.php and readable.
[PASS] The private key file is defined in config/passbolt.php and readable.
[PASS] The server key fingerprint matches the one defined in config/passbolt.php.
[PASS] The server public key defined in the config/passbolt.php is in the keyring.
[PASS] There is a valid email id defined for the server key.
[PASS] The public key can be used to encrypt a message.
[PASS] The private key can be used to sign a message.
[PASS] The public and private keys can be used to encrypt and sign a message.
[PASS] The private key can be used to decrypt a message.
[PASS] The private key can be used to decrypt and verify a message.
[PASS] The public key can be used to verify a signature.
[PASS] Using latest passbolt version (2.1.0).
[PASS] Passbolt is configured to force SSL use.
[PASS] App.fullBaseUrl is set to HTTPS.
[PASS] Selenium API endpoints are disabled.
[PASS] Search engine robots are told not to index content.
[PASS] Registration is closed, only administrators can add users.
[PASS] All email notifications will be sent.
It looks like an issue with sessions, if it’s not the cookie i’m not sure what it could be.
Can you provide more information, like:
Which browser are you using?
Do you have the same behavior with another browser / another user?
Can you explain in detail the “loop” process you are seeing, e.g. does it redirect you first to https://yourdomain.com/ and then again on the login page? Or does it stay on the login page without reloading.
Can you check the network tab in your browser console and check for the responses.
Do you have any error in your browser console?
Do you have anything in your error log on your server?
Yes, the looping process is exactly as you described. After entering the password, the cog wheel spins as if it were logging me in. Then it tries to load the root page, and redirects back to the login.
The network tab reflects the process as described, I see a 302 redirecting to the login page
Console doesn’t show any errors, but there is a warning of “Strict-Transport-Security: The connection to the site is untrustworthy, so the specified header was ignored.”
There’s nothing in the error log. But if it helps to trace it down, here is a copy of the access log entries.
Then I’m pretty sure it’s an issue with the sessions. You can clear the session cache on the server side see if that solves it (by restarting apache ro nginx). Otherwise you can try with another session engine: Sessions - 3.10
What engine options are available? Will changing the engine mean I have to use a different model, and or cache option, if so what options do I have? And in this example the default is database. Do I need to change it to database, or are there other options?
@mayday010. As you’re upgrading your passbolt there is a small chance that it comes from the Firefox third party cookies settings, but better to be sure. Can you check that your Firefox “accept[s] third-party cookies and site data”.
Cedric, thanks much, it was a cookie issue. As someone who takes basic steps (such as blocking cookies) to prevent things like internet tracking, why is this application written to require a third party cookie? Do you know which site(s) are need to write cookies? I’d like to add them to the exceptions instead of blindly allowing cookies.