Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating PHP-Version in nginx-passbolt.conf #3

Open
b-me1 opened this issue Jan 5, 2024 · 0 comments
Open

Updating PHP-Version in nginx-passbolt.conf #3

b-me1 opened this issue Jan 5, 2024 · 0 comments

Comments

@b-me1
Copy link

b-me1 commented Jan 5, 2024

I just did an do-release-upgrade to upgrade Ubuntu 20.04 to Ubuntu 22.04.
After that the Passbolt-server was giving me a 502 Gateway-Error message.

First thought was that i need to change the apt-repository from focal to jammy - but that wasn't the case since a jammy repository doesn't exist.
The healthcheck sudo -H -u www-data bash -c "/usr/share/php/passbolt/bin/cake passbolt healthcheck" said that it couldn't reach the service but wasn't pointing me in the right direction.

[FAIL] Could not reach the /healthcheck/status with the url specified in App.fullBaseUrl

Then i tried to reconfigure the instance via sudo dpkg-reconfigure passbolt-ce-server - that didn't do it either.

It took some time to figure out that in nginx-passbolt.conf there was a hard reference to php7.4 that needed to be changed to php8.1:

    fastcgi_pass             unix:/run/php/php7.4-fpm.sock;

It seems that nginx-passbolt.conf will never be rewritten even on a complete reinstall, once it exists:

if [ -d "$NGINX_SITES_AVAILABLE" ] && [ -d "$NGINX_SITES_ENABLED" ] && [ ! -f "$NGINX_CONF" ]; then
                                                                         ^--

I think it might be useful to regenerate nginx-passbolt.conf during dpkg-reconfigure.
Or to use the link to the currently installed version /run/php/php-fpm.sock (That's what i did now - but I'm not sure if it exists in all distributions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant