# Restoring Freshrss doesn't create directory for logs

**URL:** https://forum.yunohost.org/t/restoring-freshrss-doesnt-create-directory-for-logs/35287
**Category:** Support apps
**Tags:** log, freshrss, restore-backup, english
**Created:** [February 7, 2025, 9:39pm UTC](https://forum.yunohost.org/t/restoring-freshrss-doesnt-create-directory-for-logs/35287 "2025-02-07T21:39:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![iuveaene](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/9dc877/32.png) [@iuveaene](https://forum.yunohost.org/u/iuveaene)
#### Post date: [February 7, 2025, 9:39pm UTC](https://forum.yunohost.org/t/restoring-freshrss-doesnt-create-directory-for-logs/35287/1 "2025-02-07T21:39:47Z")

</div>

**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](https://github.com/YunoHost-Apps/freshrss_ynh/tree/master/scripts)) and realize that this directory is created in the install script (among other things):

```auto
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

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [February 22, 2025, 9:40pm UTC](https://forum.yunohost.org/t/restoring-freshrss-doesnt-create-directory-for-logs/35287/2 "2025-02-22T21:40:21Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
