So just to be sure : you did this after the system became unresponsive again, right ?
Hm so iâm starting to understand that it probably hangs when trying to send the email with the summary ⌠interesting âŚ
I think you should be able to reproduce the issue manually by running
yunohost diagnosis run --email
(which should run the diagnosis steps, then hang forever while trying to send the email âŚ)
Do you know if something in particular happened to postfix (the smtp/mail server) ? Could it be that you disabled it for some reason ? Or dovecot maybe ?
Hi Aleks, Yes I ran the cat tail while system was unresponsive. Later I ran yunohost killall so I could fix the wetty problem by uninstalling the new version and bringing back the previous version from backup. The killall gives me some time to do things from the web admin beforeâŚ
Hi Aleks, Guilty as charged. I did try to setup an smtp relay with Mailjet since my ISP is Charter Spectrum and port 25 is blocked. I did stop and restart postfix in an attempt to get the smtp relay working. I know youâve mentioned smtp relay coming and I think I would need specific instructions on how to get an smtp relay. I remember back in the Yunohost 3 days when mail would come from postfix to my Roundcube email despite port 25 being blocked. But that mail stopped after some upgrades. The yunohost diagnosis is hanging, so I canât give you any results.
Sooo is postfix still disable now ? (If you run systemctl status postfix
?)
I think you should be able to share the diagnosis with:
yunohost diagnosis show --share
Hi Aleks, I did a yunohost killall so I could run the diagnosis --email. I then ran the other two commands you have sent and here are their results. The share is out there!
yunohost diagnosis run --email
Success! Everything looks good for Base system!
Warning: Found 1 item(s) that could be improved for Internet connectivity.
Success! Everything looks good for DNS records!
Error: Found 4 significant issue(s) related to Ports exposure! (+ 1 ignored issue(s))
Success! Everything looks good for Web!
Error: Found 5 significant issue(s) related to Email!
Error: Failed to get status information via dbus for service mongod, systemctl didnât recognize this service (âNoSuchUnitâ).
Error: Failed to get status information via dbus for service mongodb, systemctl didnât recognize this service (âNoSuchUnitâ).
Error: Found 1 significant issue(s) (and 2 warning(s)) related to Services status check!
Warning: Found 1 item(s) that could be improved for System resources.
Warning: Found 6 item(s) that could be improved for System configurations.
systemctl status postfix
â postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor pre
Active: active (exited) since Tue 2021-01-19 19:57:15 CST; 3 days ago
Main PID: 1204 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CGroup: /system.slice/postfix.service
Warning: Journal has been rotated since unit was started. Log output is inc
lines 1-9/9 (END)
yunohost diagnosis show --share
Info: This log is now available via https://paste.yunohost.org/raw/towavayato
Hmokay postfix is running but I see you did some changes in main.cf and master.cf, which may be related to Yunohost being unable to deliver the emailâŚ
Anyway, clearly Yunohost should not hang forever trying to deliver the email and should instead timeout or detect itâs unable to send the email âŚ
Yes, when trying to get an smtp relay going I did some changes to main.cf and master.cf. But I was unable to get smtp relay going with Mailjet. I did something wrong. Not sure how to do this.
You mean how to âundoâ ?
If you look at the diagnosis result, it tells:
[WARNING] Configuration file /etc/postfix/master.cf appears to have been manually modified.
- This is probably OK if you know what youâre doing! YunoHost will stop updating this file automatically⌠But beware that YunoHost upgrades could contain important recommended changes. If you want to, you can inspect the differences with âyunohost tools regen-conf postfix --dry-run --with-diffâ and force the reset to the recommended configuration with âyunohost tools regen-conf postfix --forceâ
[WARNING] Configuration file /etc/postfix/main.cf appears to have been manually modified.
- This is probably OK if you know what youâre doing! YunoHost will stop updating this file automatically⌠But beware that YunoHost upgrades could contain important recommended changes. If you want to, you can inspect the differences with âyunohost tools regen-conf postfix --dry-run --with-diffâ and force the reset to the recommended configuration with âyunohost tools regen-conf postfix --forceâ
Aleks, Yes undo! I have done the âforceâ on the postfix and it said Success! How do I check and see if this has stopped the continuous running?
Okay. To summarize. I tried to set up smtp relay in order to use the new Yunohost Webtrees 2.0. When you install Webtrees 2.0, the documentation at Github says they email you the password to your Yunohost email. Well, I cannot get the email due to port 25 being blocked. So I cannot login to start using Webtrees 2.0. I am using Webtrees 1.14 with the custom web app. But I am unable to upgrade it, getting errors about not being able to unzip the new version. So I am stuck with the old Webtrees. This issue is best not discussed here, I will go to Github and ask the Webtrees 2.0 app creators for help.
Run manually yunohost diagnosis run --email
and see if it hangs forever at the end, or if it completes
Hi Aleks, the command did finish. Here is the result:
yunohost diagnosis run --email
Success! Everything looks good for Base system!
Warning: Found 1 item(s) that could be improved for Internet connectivity.
Success! Everything looks good for DNS records!
Error: Found 4 significant issue(s) related to Ports exposure! (+ 1 ignored issue(s))
Success! Everything looks good for Web!
Error: Found 5 significant issue(s) related to Email!
Error: Failed to get status information via dbus for service mongod, systemctl didnât recognize this service (âNoSuchUnitâ).
Error: Failed to get status information via dbus for service mongodb, systemctl didnât recognize this service (âNoSuchUnitâ).
Warning: Found 2 item(s) that could be improved for Services status check.
Warning: Found 1 item(s) that could be improved for System resources.
Warning: Found 4 item(s) that could be improved for System configurations.
Traceback (most recent call last):
File â/usr/bin/yunohostâ, line 72, in
parser=parser
File â/usr/lib/moulinette/yunohost/init.pyâ, line 29, in cli
top_parser=parser
File â/usr/lib/python2.7/dist-packages/moulinette/init.pyâ, line 120, in cli
args, output_as=output_as, timeout=timeout
File â/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.pyâ, line 477, in run
ret = self.actionsmap.process(args, timeout=timeout)
File â/usr/lib/python2.7/dist-packages/moulinette/actionsmap.pyâ, line 592, in process
return func(**arguments)
File â/usr/lib/moulinette/yunohost/diagnosis.pyâ, line 186, in diagnosis_run
email_diagnosis_issues()
File â/usr/lib/moulinette/yunohost/diagnosis.pyâ, line 588, in email_diagnosis_issues
smtp.sendmail(from, [to], message)
File â/usr/lib/python2.7/smtplib.pyâ, line 748, in sendmail
raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {ârootâ: (451, â4.3.0 diagnosis@shinevar.nohost.me: Temporary lookup failureâ)}
I guess I am not completely stupid. I googled how to read postfix email from the command line and found these commands:
mailq
postcat -vq AA11E1B80712
I was able to read the email from webtrees 2.0 and I am in!
I had the same problem after upgrading to Yunohost 4.1.7 today. I donât know which process was causing the issue. What I did was following the steps here and it worked: apt - E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) - Ask Ubuntu
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.