When using Passbolt-CE image on AWS i’ve noticed that during a “status-report” an error appeared.
so when i ran the commandline manually → '/usr/share/php/passbolt/bin$ sudo ./versions
Passbolt CE 3.12.0
Cakephp 4.3.11
Linux ip-*******-cloud-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
PHP 7.4.33 (cli) (built: Feb 22 2023 20:07:47) ( NTS )
mysql Ver 15.1 Distrib 10.5.18-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
gpg (GnuPG) 2.2.27
libgcrypt 1.8.8
ERROR: /usr/share/php/passbolt/bin/utils.sh: line 64: composer: command not found
Composer is not part of any production artifacts as it is considered a development tool. If you want to use that specific script you would need to install it at the moment.
But why didn’t I have this same error when i was on 3.11.0
Is this related to the avatar in your passbolt profile?
Cause after uploading a new png file. “status-report” also reported this in the logs.
2023-03-22 10:45:01 warning: Could not save the avatar in the /usr/share/php/passbolt/webroot/img/avatar/user_medium.png file.
2023-03-22 10:45:03 warning: Warning (2): fopen(): data:// wrapper is disabled in the server configuration by allow_url_fopen=0 in [/usr/share/php/passbolt/vendor/cakephp/cakephp/src/Database/Type/BinaryType.php, line 59]
2023-03-22 10:45:03 warning: Warning (2): fopen(data:text/plain;base64, : failed to open stream: no suitable wrapper could be found in [/usr/share/php/passbolt/vendor/cakephp/cakephp/src/Database/Type/BinaryType.php, line 59]
versions script is meant for debugging purposes. We could get rid of the check regarding composer as no user should have composer installed anymore (it is a legacy check).
What I don’t know is what made you use that specific script. What is the error you see on the healthcheck?
my bad i meant status-report in my previous post.
using → sudo -H -u www-data bash -c “/usr/share/php/passbolt/bin/status-report”
I check the status report because my avatar isn’t changing.
I’m not sure why you were not getting this error before as these scripts haven’t changed in a while.
In any case you could comment line 18 on the versions file to get rid of the composer check
Yeah it was not meant to solve it. I just tried to solve the issue from the thread title. You can open a different thread with the problem you are having with avatars and mark this one as solved.