What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.0.11 How are you able to access your server: SSH
Describe your issue
Hello,
a friend helped me to install the newest YH on a VPS. Diagnostics is telling me that ‘Service fail2ban is failed’, but when I go to Services and open the fail2ban details, the page never loads.
When I try to install apps, they fail and give an error message claiming it’s due the fail2ban not working.
I’m not sure if it’s related to another issue, so I post it here:
You are running inconsistent versions of the YunoHost packages… most probably because of a failed or partial upgrade.
I’m very new to YH and this is my first support ticket. Pls let me know if you need more details. The documentation is amazing and I read through it as well as looked for forum questions like this, but didn’t find anything recent on the topic. Have a good day!
I was also thinking to reinstall YH, since there is no content that would get lost this way, but I wasn’t able to find relevant information about how to do it safely. If you thought that should be the first step, please let me know what is the best way. Some older posts here mentioned reinstalling created issues for them, but those posts are about older versions of YH. Thank you!
In that case please share that message (or even better, the full log)
You can also dump information regarding why fail2ban is “failed” using something like sudo journalctl -u fail2ban --no-hostname --no-pager -n 50 from the command line
That sounds unrelated to the other issue but yeah, yunohost-portal is missing somehow … You should be able to solve this just by running sudo apt install yunohost-portal
Zmlerf alright so the issue is about fail2ban having not found any file related to postfix …
Not sure why neither yunohost-portal was installed and now this suggests that postfix ain’t installed too ? Or that it wasnt started for some reason idk … Sounds like there’s something funky in the way yunohost was installed in the first place
Does running sudo apt install postfix installs postfix somehow ?
What about systemctl status postfix --no-pager --no-hostname ?
I ran the disgnostics again, and fail2ban still has the same issue. When I click to go to the Services menu to restart it, its details page never finishes loading.
martins@martins:~$ systemctl status postfix --no-pager
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; enabled; preset: enabled)
Active: active (exited) since Sat 2025-02-15 22:21:23 UTC; 3 days ago
Docs: man:postfix(1)
Process: 48297 ExecReload=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1597 (code=exited, status=0/SUCCESS)
CPU: 990us
Warning: some journal files were not opened due to insufficient permissions.
If anyone had tips on what issues with fail2ban I should look into documentation elsewhere, please let me know. I’m happy to learn new stuff to find a solution for this, but I don’t even know where to exactly start rn.
Try to create these files with the correct permissions and ownership (using commands : touch, chown and chmod) and restart fail2ban.
That’s strange that you don’t have issues with mail.
@jarod5001 : Debian 12 don’t use this files now, you have this files because you do a migration from Yunohost 11.
You’re /var/log/mail.log is active, you can see the date but the other files are obsoletes.
Debian 12 switched to Journalctl instead of rsyslog, so i don’t know if mail.log exists on a fresh install with Yunohost 12.
@jarod5001 : Could you confirm if rsyslog is installed (or not) on your Yunohost 12? @martins : if martins is the admin account, you have insufficient permissions, there is a problem on your installation. You can verify if you are admin with :
grep -q admins <(groups) && echo "martins is admin" || echo "martin is not admin"
If you are really admin (i have the same message with a non admin user, so i thought that you weren’t admin) your permissions are not corrects.
If @jarod5001 confirm that rsyslog is installed on a fresh Yunohost 12, you must installed it too.
But with so many problems, it can be more simple to reinstall if you have nothing on it. There’s something wrong on your installation
it replies ‘martins is admin’. if you have the patience, could you guide me for fixing the permissions, or is there perhaps a documentation where this has been already documented? thank you!