Page 1 of 1

Send Email

Posted: Tue 07 Dec 2021 1:04 pm
by Mapantz
I have CMX set to send an email if a high gust is recorded. CMX locked up not long ago, and then crashed:

Code: Select all

2021-12-07 12:59:11.282 SendEmail: Error - System.IO.IOException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MailKit.Net.NetworkStream.<ReadAsync>d__34.MoveNext()
   --- End of inner exception stack trace ---
   at MailKit.Net.NetworkStream.<ReadAsync>d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MailKit.Net.Smtp.SmtpStream.<ReadAheadAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MailKit.Net.Smtp.SmtpStream.<ReadResponseAsync>d__46.MoveNext()

Re: Send Email

Posted: Tue 07 Dec 2021 4:29 pm
by mcrossley
Hmm, it shouldn't have crashed, that is a caught error.

I take it the Send Test Email also fails?

Re: Send Email

Posted: Tue 07 Dec 2021 7:27 pm
by rogerthn
Send Test Mail is failing as seen in the attached file.
SendTestMail.txt
PS
https://rogerthn.se/cumulusutils_2021/s ... oTable.txt

Re: Send Email

Posted: Tue 07 Dec 2021 8:21 pm
by Phil23
Just tried test emails on both my Win10 & rPi installs & both Ok.

Re: Send Email

Posted: Tue 07 Dec 2021 9:02 pm
by freddie
rogerthn wrote: Tue 07 Dec 2021 7:27 pm Send Test Mail is failing as seen in the attached file.SendTestMail.txt
PS
https://rogerthn.se/cumulusutils_2021/s ... oTable.txt
I would try removing mono-complete in its entirety, and then reinstall mono-complete.

Re: Send Email

Posted: Wed 08 Dec 2021 5:05 pm
by rogerthn
freddie wrote: Tue 07 Dec 2021 9:02 pm I would try removing mono-complete in its entirety, and then reinstall mono-complete.
OK, might consider this even if it will interrupt my weather monitoring for several minutes ;) ;)

Re: Send Email

Posted: Thu 09 Dec 2021 7:58 pm
by rogerthn
rogerthn wrote: Wed 08 Dec 2021 5:05 pm
freddie wrote: Tue 07 Dec 2021 9:02 pm I would try removing mono-complete in its entirety, and then reinstall mono-complete.
OK, might consider this even if it will interrupt my weather monitoring for several minutes ;) ;)

Code: Select all

sudo apt-get purge --auto-remove mono-complete
sudo init 6
sudo apt update
sudo apt upgrade
sudo init 6
sudo apt-get install mono-complete
Identical crash on Send Test Mail :(

Re: Send Email

Posted: Thu 09 Dec 2021 8:09 pm
by mcrossley
I'm no mono expert, and the trace doesn't really give me much of clue what is causing the crash. But it is in Mono rather than Cumulus.

You did definitely copy the all the dlls from distribution zip?

Re: Send Email

Posted: Thu 09 Dec 2021 8:16 pm
by mcrossley
And which version of mono have you got installed?

Re: Send Email

Posted: Fri 10 Dec 2021 4:42 pm
by rogerthn
I did use my standard Cumulus MX upgrade steps
Get the zip file to the raspberry
Backup current CMX

Code: Select all

sudo rsync -av --delete CumulusMX/ CumulusMX_3154/
Ctrl-C to terminate CMX

Code: Select all

sudo rsync -av --delete CumulusMX/ CumulusMX_3154/

Code: Select all

unzip -o CumulusMXDist3159.zip
mono -V
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.2 Mon Jul 12 07:04:24 UTC 2021)
i.e. raspbian bullseye version.

Re: Send Email

Posted: Sun 12 Dec 2021 7:53 pm
by mcrossley
Did this work ok on the previous release?

Could you upgrade to the latest version of mono?
I am running 6.12.0 and do not see any problems

Re: Send Email

Posted: Sun 12 Dec 2021 9:02 pm
by freddie
@mcrossley I'm on Mono 6.8 and don't have this happening.

Re: Send Email

Posted: Mon 13 Dec 2021 5:10 pm
by rogerthn
I do think that I did verify Email Server Settings some time back.
Give me some time and I'll spin up an other server, VM or RPI.
There is one big advantage with Ecowitt GW1000, more than one can listen :D

Re: Send Email

Posted: Sat 18 Dec 2021 7:59 am
by rogerthn
Something is "corrupted" on the old RPI.
Send Test Email OK on virtual bullseye using mono 6.8.0.105

Re: Send Email

Posted: Sat 18 Dec 2021 9:54 am
by mcrossley
Thanks for letting us know.