I’m trying to connect my iPhone App with Passbolt. The QR scan works but after that, when I try to login with my passphrase, the following error is occurs: HTTP status code unexpected
My operating system is: Oracle Linux Server release 7.9
That’s the output from /var/log/nginx/error.log
2022/06/28 14:56:09 [error] 31209#31209: *1525 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant yes - assumed 'yes' (this will throw an Error in a future version of PHP) in /var/www/passbolt/config/passbolt.php on line 86" while reading response header from upstream, client: XX.XX.XX.XX, server: passbolt.xxxx, request: "GET /mobile/transfers/6be8dc41-fd80-42f4-82b0-e5a0f0e41e36.json?api-version=v2 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "passbolt.xxxx"
2022/06/28 14:56:33 [error] 31209#31209: *1565 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant yes - assumed 'yes' (this will throw an Error in a future version of PHP) in /var/www/passbolt/config/passbolt.php on line 86" while reading response header from upstream, client: XX.XX.XX.XX, server: passbolt.xxxx, request: "GET /auth/verify.json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "passbolt.xxxx"
2022/06/28 14:56:33 [error] 31209#31209: *1564 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant yes - assumed 'yes' (this will throw an Error in a future version of PHP) in /var/www/passbolt/config/passbolt.php on line 86" while reading response header from upstream, client: XX.XX.XX.XX, server: passbolt.xxxx, request: "GET /auth/jwt/rsa.json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "passbolt.xxxx"
/var/log/php-fpm/error.log
is empty
/var/www/passbolt/logs/error.log
2022-06-28 13:00:50 alert: The key pair for JWT Authentication is not complete.
2022-06-28 13:00:50 error: The following file could not be read: /var/www/passbolt/config/jwt/jwt.pem.
2022-06-28 13:00:50 error: [Passbolt\JwtAuthentication\Error\Exception\AccessToken\InvalidJwtKeyPairException] The key pair for JWT Authentication is not complete. in /var/www/passbolt/plugins/Passbolt/JwtAuthentication/src/Service/AccessToken/JwtAbstractService.php on line 58
Request URL: /auth/jwt/rsa.json
As you are running passbolt from sources, take care to this: Replace /usr/share/php by /var/www and /etc/passbolt by /var/www/passbolt/config if you have installed passbolt from sources.
No this has to do with the user system clock being “in the future” compare to the server. This means the OpenPGP for that user is created in the future and Gnupg doesn’t like this. Check your user system clock and server clock.
This is the error that I’m getting, I already did suggestions, but it keeps detecting that /etc/passbolt/jwt is still writeable. Any ideas?
[PASS] The JWT Authentication plugin is enabled
[FAIL] The /etc/passbolt/jwt/ directory should not be writable.
[HELP] You can try:
[HELP] sudo chown -Rf root:nginx /etc/passbolt/jwt/
[HELP] sudo chmod 750 /etc/passbolt/jwt/
[HELP] sudo chmod 640 /etc/passbolt/jwt/jwt.key
[HELP] sudo chmod 640 /etc/passbolt/jwt/jwt.pem
[PASS] A valid JWT key pair was found