Hello,
i kind of inherited a passbolt installation, which was recently upgraded. the firefox plugin cannot be used for account recovery because of:
“Could not retrieve server key. Please contact administrator.”
the apache logfile tells:
“GET /auth/verify.json?api-version=v1 HTTP/1.1” 500 720 “-”
what bothers me is that healthcheck does not return anything
su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt healthcheck --verbose” www-data
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///.__/__//_/
Open source password manager for teams
Healthcheck shell…root@passbolt
migrate works, but install does not seem to ?
su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt migrate --backup” www-data
____ __ ____
/ __ \____ _____ ____/ /_ ____ / / /_
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///.__/__//_/
Open source password manager for teams
Saving backup file: /var/www/passbolt/tmp/cache/database/backup_1528786078.sql
mysqldump: [Warning] Using a password on the command line interface can be insecure.
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 passbolt
All Done. Took 0.0618s
using migration paths
-
/var/www/passbolt/config/Migrations
using seed paths -
/var/www/passbolt/config/Seeds
Writing dump file/var/www/passbolt/config/Migrations/schema-dump-default.lock
…
Dump file/var/www/passbolt/config/Migrations/schema-dump-default.lock
was successfully written
root@passbolt:/var/log/apache2# su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt install --verbose” www-data
/ __ ____ _____ / / ____ / / /
/ // / __ `/ / / __ / __ / / _/
/ / // ( | ) // / // / / /
// _,///.__/__//_/
Open source password manager for teams
Running baseline checks, please wait…
root@passbolt
i also had this in my syslog:
passbolt kernel: [1646405.578019] php[14206]: segfault at 12 ip 00007f303c8c97dc sp 00007ffc9ff4ffb0 error 4 in gnupg.so[7f303c8c2000+a000]
so, on my system is some gnupgp process:
gpg-agent --homedir /var/www/.gnupg --use-standard-socket --daemon
why wouldnt it use this ?
i configured within default.php and passbolt.php:
‘keyring’ => ‘/home/www-data/.gnupg’,
this is where the key resides, owned by user www-data of the webserver process.
strace only shows the apache2 wants to read
access("/var/www/passbolt/config/gpg", F_OK) = 0 stat("/var/www/passbolt/config/gpg", {st_mode=S_IFDIR|0775, st_size=4096, …}) = 0 stat("/var/www/passbolt/config/gpg/serverkey.asc", 0x7ffe60c49a30) = -1 ENOENT (No such file or directory) access("/var/www/passbolt/config/gpg/serverkey.asc", F_OK) = -1 ENOENT (No such file or directory)
not a single call to that .gnupg keyring, i am a bit lost
thanks for your time