What type of hardware are you using: Other ARM board
What YunoHost version are you running: 11.3.0.2
What app is this about: Freshrss
Describe your issue
My server crashed so I had to install YH from scratch and restore all the applications.
After restoring all the apps I found some problems with Freshrss so I start to look around for some log files, but I couldn’t find any. It turns out that the directory /var/log/freshrss
didn’t exists.
I checked the scripts in the github repository (freshrss_ynh/scripts at master · YunoHost-Apps/freshrss_ynh · GitHub) and realize that this directory is created in the install script (among other things):
log_path="/var/log/$app"
mkdir -p "$log_path"
chown "$app":www-data "$log_path"
ynh_config_add_logrotate
touch "/var/log/${domain}-access.log"
ynh_config_add_fail2ban --logpath="/var/log/nginx/${domain}-access.log" --failregex="<HOST> .* \"GET /api/.*\" 401"
This directory doesn’t seem to be created in the restore script (or I cannot find where it is created), so I’ve created manually.
However, I have some doubts about the /var/log/${domain}-access.log
. The install script creates the file, but then uses a different path in the ynh_config_add_fail2ban
command (note the /nginx/
directory).
Should I create the /var/log/${domain}-access.log
as well ? Is there anything more left to do?
Share relevant logs or error messages
No relevant logs