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

**URL:** https://community.passbolt.com/t/getting-a-502-error-on-nginx-after-upgrading-to-last-passbolt-version/11755
**Category:** Installation Issues
**Created:** [December 6, 2024, 6:58am UTC](https://community.passbolt.com/t/getting-a-502-error-on-nginx-after-upgrading-to-last-passbolt-version/11755 "2024-12-06T06:58:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Makelator](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/makelator/32/4676_2.png) [@Makelator](https://community.passbolt.com/u/Makelator)
#### Post date: [December 6, 2024, 6:58am UTC](https://community.passbolt.com/t/getting-a-502-error-on-nginx-after-upgrading-to-last-passbolt-version/11755/1 "2024-12-06T06:58:16Z")

</div>

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](http://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!

---

<div class="post-metadata">

### Author: ![max](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/max/32/1528_2.png) [@max](https://community.passbolt.com/u/max)
#### Post date: [December 6, 2024, 9:33am UTC](https://community.passbolt.com/t/getting-a-502-error-on-nginx-after-upgrading-to-last-passbolt-version/11755/2 "2024-12-06T09:33:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Makelator](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/makelator/32/4676_2.png) [@Makelator](https://community.passbolt.com/u/Makelator)
#### Post date: [December 8, 2024, 3:45am UTC](https://community.passbolt.com/t/getting-a-502-error-on-nginx-after-upgrading-to-last-passbolt-version/11755/3 "2024-12-08T03:45:03Z")

</div>

Thanks a lot Max. Right on the spot!
