Getting a 502 error on Nginx after upgrading to last Passbolt version

Hello everyone, I was on Ubuntu 20.4 and Passbolt 3.4 version. So I first upgrade Ubuntu to ver 22 and later to 24. Then I tried to upgrade Passbolt to the last version, but it was already updated. The problem now is that I don’t manage to make passbolt run on Nginx. This is my current setup for /etc/passbolt/sites-enabled/nginx-passbolt.conf:

server {

Managed by Passbolt

server_name password.oz-solutions.com;

client_body_buffer_size 100K;
client_header_buffer_size 1K;
client_max_body_size 5M;

client_body_timeout 10;
client_header_timeout 10;
keepalive_timeout 5 5;
send_timeout 10;

root /usr/share/php/passbolt/webroot;
index index.php;
error_log /var/log/nginx/passbolt-error.log info;
access_log /var/log/nginx/passbolt-access.log;

Managed by Passbolt

include PASSBOLT_SSL

location / {
try_files $uri $uri/ /index.php?$args;
}

location ~ .php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+.php)(.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $http_host;
fastcgi_param PHP_VALUE “upload_max_filesize=5M \n post_max_size=5M”;
}

listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/password.oz-solutions.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/password.oz-solutions.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

}

Also getting the fail on Could not reach the /healthcheck/status with the url specified in App.fullBaseUrl.

Would appreciate your help!

Hi, can you check in /run/php/ I am quite sure that you are now on php 8 so you will have to change the nginx configuration to point to the correct version

Thanks a lot Max. Right on the spot!

1 Like