Automatic diagnosis consistently reports internet and nftables errors, but everything seems fine when I run manually

I have searched the forum for similar issues

on

This category is for general issues(=something is broken) regarding YunoHost, NOT apps.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What type of hardware are you using

VPS bought online

What YunoHost version are you running

13.0.7.1

How are you able to access your server

The webadmin
SSH

Are you in a special context or did you perform specific tweaking on your YunoHost instance ?

Nope, it’s been reporting this way since install

Describe your issue

Twice a day, I get the automatic diagnosis email telling me two errors: no internet connectivity, and the nftables service is failed. The server is accessible by SSH and web browser, and all my services remain accessible. Also, nftables logs do not look amiss, the one-shot service runs cleanly as far as I can tell.

I’d like to solve the root cause for this email, rather than silence or filter it, since the other automatic checks are super useful. Happy to pull up specific logs or run troubleshooting, but I don’t know what logs to show ahead of time, since things are working as far as I can see. Cheers!

Share relevant logs or error messages

I haven’t found any logs to indicate the issues the automatic diagnosis reports multiple times a day. That email looks like this:

=================================
Internet connectivity (ip)
=================================

[ERROR] The server does not seem to be connected to the Internet at all!?



=================================
Services status check (services)
=================================

[ERROR] Service nftables is failed :(
  - You can try to restart the service, and if it doesn't work, have a look at the service logs in the webadmin (from the command line, you can do this with 'yunohost service restart nftables' and 'yunohost service log nftables').

-- YunoHost Diagnosis

Looks like a known trixie issue and see solution here: [Trixie] Fix yunohost-diagnosis.service security restrictions in LXC context by ewilly · Pull Request #2362 · YunoHost/yunohost · GitHub

Are you in a LXC context?

Can you test and let us know if that’s solve the issue for you too?

Thanks for the fast reply! My VPS hosting is built on libvirt and Ceph.

I changed my yunohost-diagnosis.service to what’s in that PR, and re-ran as instructions described. Looks like that did it!