Hi,
When I try to install a new Discourse instance on a VPS / ProxMox VM, I always install some plugins. As far as everything is new on this instance, images can be uploaded and are displayed as expected. However, as soon as I perform a backup restoration, everything is restored with categories, layout, posts... but images / thumbnails are also restored but displayed as white cards, like they are missing.
I have found two things that explain why this issue is happening:
In /var/www/discourse/public/uploads/default ownership is changed during restoration from discourse:www-data to discourse:discourse
In /var/www/discourse/public/uploads/default/original UNIX rights are changed from 755 to 750.
When I checked nginx-access logs I could see rightaway that nginx couldn't access pictures.
As soon as I run chmod 750 /var/www/discourse/public/uploads/default/original pictures were displayed successfully.
As a conclusion, I don't really know if this issue is Discourse-related or Yunohost-related.
Context
Hardware: *VPS bought online + ProxMox VM.
YunoHost version: 4.3.6.2
I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes*
If yes, please explain: I am the main developer of this Ansible-role which installs Yunohost w/ Ansible. I also use some bash scripting to perform a post-install of Yunohost and install themes + plugins.
Using, or trying to install package version/branch: Latest-stable (2.7.6).
Logs
A little part of /var/log/nginx/*****.fr-error.log
Describe the bug
Hi, When I try to install a new Discourse instance on a VPS / ProxMox VM, I always install some plugins. As far as everything is new on this instance, images can be uploaded and are displayed as expected. However, as soon as I perform a backup restoration, everything is restored with categories, layout, posts... but images / thumbnails are also restored but displayed as white cards, like they are missing. I have found two things that explain why this issue is happening:
/var/www/discourse/public/uploads/default
ownership is changed during restoration fromdiscourse:www-data
todiscourse:discourse
/var/www/discourse/public/uploads/default/original
UNIX rights are changed from 755 to 750.When I checked nginx-access logs I could see rightaway that nginx couldn't access pictures. As soon as I run
chmod 750 /var/www/discourse/public/uploads/default/original
pictures were displayed successfully. As a conclusion, I don't really know if this issue is Discourse-related or Yunohost-related.Context
Logs
A little part of
/var/log/nginx/*****.fr-error.log
If applicable and useful, add screenshots to help explain your problem.