Upgrade from 2.7.1 to 2.12.0 nginx - gpg issue

Checklist
[x] I have read intro post: https://help.passbolt.com/hosting/update
[x] I have read the tutorials, help and searched for similar issues : Cannot install Passbolt, PHP Fatal error: You must enable the gnupg extension to use Passbolt
[x] I provide relevant information about my server (component names and versions, etc.)
[x] I provide a copy of my logs and healthcheck
[x] I describe the steps I have taken to trouble shoot the problem
[x] I describe the steps on how to reproduce the issue

Hello

nginx :
=>nginx -V
nginx version: nginx/1.14.2
built with OpenSSL 1.1.1c 28 May 2019 (running with OpenSSL 1.1.1d 10 Sep 2019)
TLS SNI support enabled
configure arguments: --with-cc-opt=’-g -O2 -fdebug-prefix-map=/build/nginx-tBUzFN/nginx-1.14.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2’ --with-ld-opt=’-Wl,-z,relro -Wl,-z,now -fPIC’ --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-tBUzFN/nginx-1.14.2/debian/modules/http-auth-pam --add-dynamic-module=/build/nginx-tBUzFN/nginx-1.14.2/debian/modules/http-dav-ext --add-dynamic-module=/build/nginx-tBUzFN/nginx-1.14.2/debian/modules/http-echo --add-dynamic-module=/build/nginx-tBUzFN/nginx-1.14.2/debian/modules/http-upstream-fair --add-dynamic-module=/build/nginx-tBUzFN/nginx-1.14.2/debian/modules/http-subs-filter

=>php -i | grep gnupg
/etc/php/7.3/cli/conf.d/20-gnupg.ini,
gnupg
gnupg support => enabled

i have an issue with web browsing , i have an 500 error :
2019/12/22 15:48:24 [error] 7005#7005: *17 FastCGI sent in stderr: “PHP message: PHP Fatal error: You must enable the gnupg extension to use Passbolt. in /var/www/passbolt/config/requirements.php on line 31” while reading response header from upstream, client: 2a01:e0a:1ef:7591::900, server: vault.pra.rip, request: “GET / HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “vault.pra.rip”

result of the upgrade :
=>su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt migrate --backup” www-data
Warning Error: SplFileInfo::openFile(/var/www/passbolt/tmp/cache/persistent/myapp_cake_core_translations_cake_console_en__u_s): failed to open stream: Permission denied in [/var/www/passbolt/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 405]

Warning Error: SplFileInfo::openFile(/var/www/passbolt/tmp/cache/persistent/myapp_cake_core_translations_cake_console_en__u_s): failed to open stream: Permission denied in [/var/www/passbolt/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 405]


     ____                  __          ____  
    / __ \____  _____ ____/ /_  ____  / / /_ 
   / /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/ 
  / ____/ /_/ (__  |__  ) /_/ / /_/ / / /    
 /_/    \__,_/____/____/_.___/\____/_/\__/   

 Open source password manager for teams
---------------------------------------------------------------
Saving backup file: /var/www/passbolt/tmp/cache/database/backup_1577029584.sql
Success: the database was saved on file!
---------------------------------------------------------------
 Running migration scripts.
---------------------------------------------------------------
using migration paths 
 - /var/www/passbolt/config/Migrations
using seed paths 
 - /var/www/passbolt/config/Seeds
using environment default
using adapter mysql
using database vault

 == 20190106170300 V280AdditionalEmailMigration: migrating
 == 20190106170300 V280AdditionalEmailMigration: migrated 3.2138s

 == 20190106170301 V280AdditionalFileStorageMigration: migrating
 == 20190106170301 V280AdditionalFileStorageMigration: migrated 2.5684s

 == 20190106170302 V280FileDirectoryPathsMigrations: migrating
 == 20190106170302 V280FileDirectoryPathsMigrations: migrated 0.4691s

 == 20190112124290 V270AddActionsTable: migrating
 == 20190112124290 V270AddActionsTable: migrated 1.8453s

 == 20190112124300 V270AddActionLogsTable: migrating
 == 20190112124300 V270AddActionLogsTable: migrated 0.9442s

 == 20190121111100 V270AddEntitiesHistoryTable: migrating
 == 20190121111100 V270AddEntitiesHistoryTable: migrated 1.6050s

 == 20190121121100 V270AddPermissionsHistoryTable: migrating
 == 20190121121100 V270AddPermissionsHistoryTable: migrated 3.3824s

 == 20190211124300 V270AddSecretsHistoryTable: migrating
 == 20190211124300 V270AddSecretsHistoryTable: migrated 1.1299s

 == 20190221124300 V270AddSecretAccessesTable: migrating
 == 20190221124300 V270AddSecretAccessesTable: migrated 1.6935s

 == 20190512115400 V2100AddOrganizationSettingsTable: migrating
 == 20190512115400 V2100AddOrganizationSettingsTable: migrated 0.6108s

 == 20190623143400 V2110ExtendKeyIdSizeField: migrating
 == 20190623143400 V2110ExtendKeyIdSizeField: migrated 0.7521s

 == 20190923103000 V2120UpdateEmailQueue: migrating
 == 20190923103000 V2120UpdateEmailQueue: migrated 13.1531s

 == 20191119160000 V2120DropUnusedTables: migrating
 == 20191119160000 V2120DropUnusedTables: migrated 0.5689s

All Done. Took 31.9541s
Cleared default cache
Cleared _cake_core_ cache
Cleared _cake_model_ cache
< [15:46:56] - root@vault:/var/www/passbolt >
 =>su -s /bin/bash -c "/var/www/passbolt/bin/cake cache clear_all" www-data
Cleared default cache
Cleared _cake_core_ cache
Cleared _cake_model_ cache

=> how to integrate gnupg in nginx

thank you for your help

regards

pra

Auto reply …

issue between php7.0-fpm and php7.3-fpm
nginx still trying loaded 7.0 (port still open)
php7.3-fpm => using default config thus socket

=> removing all php7.0
=> changing config for php7.3-fpm

restart service

=> all good

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.