When I try to update my avatar picture in my profile, I get a message saying “Error: An iInternal error has occurred.”, and the avatar picture won’t be updated.
Healthcheck is all green, there is no error shown in it.
my log file stated
[Burzum\FileStorage\Storage\StorageException] The directory ‘/var/www/passbolt/webroot/img/public/Avatar/14/65/f1/aff7a443d0844291a440c9df4673fc70’ could not be created.
Caused by: [RuntimeException] The directory ‘/var/www/passbolt/webroot/img/public/Avatar/14/65/f1/aff7a443d0844291a440c9df4673fc70’ could not be created.
Request URL: /users/b84179bd-67e3-4526-9bdc-6702313e4e48.json?api-version=v2
Referer URL: https://passbolt.local/app/settings/profile
The strange thing is that this path does not exists.
I have tried to create this path every time I tried to upload a picture ( it changes every time if I try to upload)
I did this also
ll /var/www/passbolt/webroot/img/public/
total 0
drwxr-xr-x. 2 nginx nginx 6 Apr 25 10:02 Avatar
-rw-rw-r–. 1 nginx nginx 0 May 3 2018 empty
drwxrwxr-x. 3 nginx nginx 20 Oct 17 2018 images
But I get also a notice on my health-check site
The temporary directory and its content are not writable.
The public image directory and its content are not writable.
Did you run the healthcheck with your webserver user ? su -s /bin/bash -c "./bin/cake passbolt healthcheck" nginx
Are you sure your webserver user is nginx and not www-data ?
[PASS] PHP version 7.2.17.
[PASS] PCRE compiled with unicode support.
[PASS] The temporary directory and its content are writable.
[PASS] The public image directory and its content are writable.
[PASS] The logs directory and its content are writable.
[PASS] GD or Imagick extension is installed.
[PASS] Intl extension is installed.
[PASS] Mbstring extension is installed.
Config files
[PASS] The application config file is present
[PASS] The passbolt config file is present
Core config
[PASS] Debug mode is off.
[PASS] Cache is working.
[PASS] Unique value set for security.salt
Can you tell me more about your environment and how you installed passbolt ?
Did you use our material ? docker container or install scripts ?
Or you installed passbolt on an configured environment of your own ? If you are in this case, are you using php-fpm ? If yes, are you sure the process are running with the same user nginx as your webserver ?
I am using a VM running on a Xenserver pool using CentOS Linux release 7.6.1810 (Core)
I used v2.0.4 - Something we all adore to start with having to use nginx as webserver and running the installer from your site instructions using the script
I have checked for the user running process php-fpm: pool www = user nginx