Checklist
[ * ] I have read intro post: About the Installation Issues category
[* ] I have read the tutorials, help and searched for similar issues
[* ] I provide relevant information about my server (component names and versions, etc.)
[* ] I provide a copy of my logs and healthcheck
I describe the steps I have taken to trouble shoot the problem
I describe the steps on how to reproduce the issue
Hi there. After proceed with this tutorial step by step to install passbolt until open installation web page, then I get nginx page instead. I searched in community for people who had the same of my issue, then there are some people who had my issue with same case, most of them deleted default nginx config file then their issue been solved. But I’m getting 502 bad gateway error. And even passbolt.php does not exist so there are many errors in healthcheck related to not-complete setup and non-exist passbolt.php. I have ubuntu LTS 22.04 OS and manual configuration for SSL because I’m working in private network. I also have checked nginx-passbolt.conf but I can’t see any issue in.
This is output of healthcheck:
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///./_//__/
Open source password manager for teams
Healthcheck shell…2024-03-07 06:32:31 warning: file_get_contents(/etc/passbolt/gpg/serverkey.asc): Failed to open stream: No such file or directory
warning: 2 :: file_get_contents(/etc/passbolt/gpg/serverkey.asc): Failed to open stream: No such file or directory on line 456 of /usr/share/php/passbolt/src/Utility/Healthchecks/GpgHealthchecks.php
2024-03-07 06:32:31 warning: file_get_contents(/etc/passbolt/gpg/serverkey_private.asc): Failed to open stream: No such file or directory
warning: 2 :: file_get_contents(/etc/passbolt/gpg/serverkey_private.asc): Failed to open stream: No such file or directory on line 458 of /usr/share/php/passbolt/src/Utility/Healthchecks/GpgHealthchecks.php
.2024-03-07 06:32:31 error: [TypeError] strpos(): Argument #1 ($haystack) must be of type string, bool given in /usr/share/php/passbolt/src/Utility/Healthchecks.php on line 104
An Internal Error Has Occurred
An Internal Error Has Occurred.
And this is nginx-passbolt.conf:
Passbolt.conf - Nginx configuration file to run the Passbolt software.
server {
listen 443 ssl http2;
listen [::]:80;
Managed by Passbolt
server_name passbolt.cloudvests.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 /etc/passbolt/nginx-ssl.conf;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/run/php/php8.1-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”;
}
}
And this is /etc/passbolt/nginx-ssl.conf:
nginx-passbolt.conf
Passbolt provided file to be included from nginx main virtual hosts file.
It allows to pull common SSL settings from a central place.
Use the nginx include directive to pull this information in.
Managed by Passbolt
listen [::]:443 ssl http2;
ssl_certificate /etc/ssl/certs/1709731019-cert.pem;
ssl_certificate_key /etc/ssl/private/1709731019-key.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128->
ssl_prefer_server_ciphers off;
Please help me to solve this issue. Please tell me if you need any info to help me. Thank you.