Checklist
[yes] I have read intro post: About the Installation Issues category
[yes] I have read the tutorials, help and searched for similar issues
[yes] I provide relevant information about my server (component names and versions, etc.)
[yes] I provide a copy of my logs and healthcheck
[yes] I describe the steps I have taken to trouble shoot the problem
[yes] I describe the steps on how to reproduce the issue
Hi Passbolt Community
-Passbolt 3.8.0 CE
-Nginx
-PostgreSQL
-PHP 8.1.12
-Postfix
-3rd party install instructions
-noobie
After running Passbolt update i got the message below about php. Passbolt looks like it updated all the needed files but errors for a reason i cant figure out. 533 files changed, 15347 insertions(+), 3190 deletions(-)
1st i change the directory to /var/www/passbolt/ then i run the command: sudo su -s /bin/bash -c “/var/www/passbolt/bin/update” www-data
PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Symfony/Component/Console/Helper/HelperSet.php on line 104
Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Symfony/Component/Console/Helper/HelperSet.php on line 104
Composer could not find a composer.json file in /var/www/passbolt/bin
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
If i re-run install
command: sudo su -s /bin/bash -c “/var/www/passbolt/bin/update” www-data
From https://github.com/passbolt/passbolt_api
* branch master -> FETCH_HEAD
Already up to date.
PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Symfony/Component/Console/Helper/HelperSet.php on line 104
Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/php/Symfony/Component/Console/Helper/HelperSet.php on line 104
Composer could not find a composer.json file in /var/www/passbolt/bin
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
I tried switching to php8.0 and running update but no luck
command: sudo update-alternatives --config php
From https://github.com/passbolt/passbolt_api
* branch master -> FETCH_HEAD
Already up to date.
Composer could not find a composer.json file in /var/www/passbolt/bin
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Health Check shows:
command: cd /var/www/passbolt/ and then sudo su -s /bin/bash -c “/var/www/passbolt/bin/cake passbolt healthcheck --verbose” www-data
PHP Warning: include(/var/www/passbolt/vendor/composer/../../plugins/Passbolt/JwtAuthentication/src/Service/AccessToken/JwtAbstractService.php): Failed to open stream: No such file or directory in /var/www/passbolt/vendor/composer/ClassLoader.php on line 444
PHP Warning: include(): Failed opening '/var/www/passbolt/vendor/composer/../../plugins/Passbolt/JwtAuthentication/src/Service/AccessToken/JwtAbstractService.php' for inclusion (include_path='.:/usr/share/php') in /var/www/passbolt/vendor/composer/ClassLoader.php on line 444
PHP Fatal error: Uncaught Error: Class "Passbolt\JwtAuthentication\Service\AccessToken\JwtAbstractService" not found in /var/www/passbolt/config/default.php:63
Stack trace:
#0 /var/www/passbolt/vendor/cakephp/cakephp/src/Core/Configure/Engine/PhpConfig.php(89): include()
#1 /var/www/passbolt/vendor/cakephp/cakephp/src/Core/Configure.php(333): Cake\Core\Configure\Engine\PhpConfig->read()
#2 /var/www/passbolt/config/bootstrap.php(57): Cake\Core\Configure::load()
#3 /var/www/passbolt/vendor/cakephp/cakephp/src/Http/BaseApplication.php(172): require_once('...')
#4 /var/www/passbolt/src/Application.php(143): Cake\Http\BaseApplication->bootstrap()
#5 /var/www/passbolt/vendor/cakephp/cakephp/src/Console/CommandRunner.php(195): App\Application->bootstrap()
#6 /var/www/passbolt/vendor/cakephp/cakephp/src/Console/CommandRunner.php(133): Cake\Console\CommandRunner->bootstrap()
#7 /var/www/passbolt/bin/cake.php(12): Cake\Console\CommandRunner->run()
#8 {main}
thrown in /var/www/passbolt/config/default.php on line 63
The last error in the log file (/var/www/passbolt/logs/error.log) is from May 2022 and shows no new data.
Any ideas on how to fix my issue? I am really lost, I don’t know what happened…
my guess is a php error on my side…
Thank you