Running the automatic diagnosis failed miserably

My YunoHost server
Hardware: VPS OVH 2G/20G
YunoHost version: 11.2.10.3 (stable).
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: errors happened after the vps run out of space, but after resolving the low space issue they persist

Issue :
I’m receiving a failed automatic diagnosis from my server since it ran out of space.
The mail body :

Running the automatic diagnosis failed miserably

I ran this command :

yunohost diagnosis run --email --debug

as suggested here

and the output is :

Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 206, in diagnosis_run
    _email_diagnosis_issues()
  File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 704, in _email_diagnosis_issues
    smtp.sendmail(from_, [to_], message.encode("utf-8"))
  File "/usr/lib/python3.9/smtplib.py", line 885, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'root': (451, b'4.3.0 <diagnosis@mydomain.ovh>: Temporary lookup failure')}

SMTPRecipientsRefused

Note that I am also having this issue but I don’t think it is related (may be it is since both happened at the same time)

Thanks for the help

I tried sending an email from my account and it failed (using pep on my phone). I checked postfix status and it was active (exited). I run a regenaration for postfix with dry-run and with-diff, it didn’t show anything. I forced the regeneration and I received the test email but I got this error on the cli :

No such file or directory: '/etc/postfix/app_senders_login_maps.db'

Now yunohost diagnosis run --email --debug gives

Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 110, in cli
    Cli(
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 206, in diagnosis_run
    _email_diagnosis_issues()
  File "/usr/lib/python3/dist-packages/yunohost/diagnosis.py", line 704, in _email_diagnosis_issues
    smtp.sendmail(from_, [to_], message.encode("utf-8"))
  File "/usr/lib/python3.9/smtplib.py", line 885, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'root': (451, b'4.3.0 <diagnosis@mydomain.ovh>: Temporary lookup failure')}

That was quiet difficult, but I made it.
Here is how got it fixed :

cd /etc/postfix

sudo postmap -v /etc/postfix/app_senders_login_maps

Now I get the correct emails from diagnosis as usual.
Houuuuuura

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