Page 1 of 1
Problem in 3151
Posted: Sat 23 Oct 2021 12:38 am
by f4phlyer
I have 3151 running on two different rPi's, one updates my website, the other is just local. The one for the live website encounters this problem the other isn't.
I've updated and upgraded the rPi, 3149 runs flawlessly.
I've attached log, I may have encountered this before:
2021-10-22 17:22:00.385 Writing today.ini, LastUpdateTime = 10/22/2021 5:22:00 PM raindaystart = 48.56 rain counter = 48.56
!!! Unhandled Exception !!!
System.ObjectDisposedException: Safe handle has been closed
at System.Runtime.InteropServices.SafeHandle.DangerousAddRef (System.Boolean& success) [0x0001c] in <533173d24dae460899d2b10975534$ at System.Threading.NativeEventCalls.SetEvent (Microsoft.Win32.SafeHandles.SafeWaitHandle handle) [0x00002] in <533173d24dae460899$ at System.Threading.EventWaitHandle.Set () [0x00000] in <533173d24dae460899d2b10975534bb0>:0
at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle.Set()
2021-10-22_170413_MXDiags.zip
Re: Problem in 3151
Posted: Sat 23 Oct 2021 3:33 am
by pete_c
Having a similar issue here in Linux.
sudo mono CumulusMX.exe
Cumulus MX v.3.13.5 build 3151
Working Dir: /home/pete/CumulusMX/
...
Diags show:
2021-10-22 22:25:28.533 Command line: /home/pete/CumulusMX/CumulusMX.exe
2021-10-22 22:25:28.533 Cumulus MX v.3.13.5 build 3151
2021-10-22 22:25:28.539 Platform: Unix
2021-10-22 22:25:28.540 OS version: Unix 5.4.0.89
2021-10-22 22:25:28.540 Current culture: English (United States) [en-US]
2021-10-22 22:25:28.540 Mono version: 6.12.0.122 (tarball Mon Feb 22 17:33:28 UTC 2021)
2021-10-22 22:25:28.540 Checking required folders
2021-10-22 22:25:28.558 Reading Cumulus.ini file
blah blah blah
2021-10-22 22:25:30.026 Console clock: Accurate to +/- 30 seconds, no need to set it (diff=-3s)
2021-10-22 22:25:30.026 Reading history data from log files
2021-10-22 22:25:30.027 Loading last N hour data from data logs: 10/22/2021 10:10:00 PM
2021-10-22 22:25:30.030 LoadRecent: Attempting to load 7 days of entries to recent data list
2021-10-22 22:25:30.121 LoadRecent: Loaded 1 new entries to recent database
2021-10-22 22:25:30.122 LoadLast3Hour: Attempting to load 3 hour data list
2021-10-22 22:25:30.132 LoadLast3Hour: Loaded 177 entries to last 3 hour data list
2021-10-22 22:25:30.138 Reading archive data from logger
2021-10-22 22:25:30.140 Creating extra sensors
2021-10-22 22:25:30.140 Lock: Station waiting for the lock
2021-10-22 22:25:30.174 843 web tags initialised
!!! Unhandled Exception !!!
System.TypeLoadException: Could not resolve type with token 01000121 from typeref (expected class 'FluentFTP.Helpers.FtpTrace' in assembly 'FluentFTP, Version=35.0.5.0, Culture=neutral, PublicKeyToken=f4af092b1d8df44f')
at CumulusMX.Cumulus..ctor (System.Int32 HTTPport, System.Boolean DebugEnabled, System.String startParms) [0x02e10] in <2c614c063e0c4938804aab6a70ee2aa3>:0
at CumulusMX.Program.RunAsAConsole (System.Int32 port, System.Boolean debug) [0x00048] in <2c614c063e0c4938804aab6a70ee2aa3>:0
at CumulusMX.Program.Main (System.String[] args) [0x0056a] in <2c614c063e0c4938804aab6a70ee2aa3>:0
then it stops running
Reinstalled Cumulus MX v.3.13.4 build 3149 and all is fine.
pete@ICS-HS4:~/CumulusMX$ sudo mono CumulusMX.exe
Cumulus MX v.3.13.4 build 3149
Working Dir: /home/pete/CumulusMX/
Open the admin interface by entering one of the above URLs into a web browser.
Today.ini = data/today.ini
Last update=2021-10-22T22:10:00
You are not running the latest version of Cumulus MX, build 3151 is available.
Connected to station
10/22/2021 10:39:25 PM
Type Ctrl-C to terminate
Downloading Archive Data
- processed 100 %
Downloading Archive Data
- No Archive data available
Connecting real time FTP
Normal running
Re: Problem in 3151
Posted: Sat 23 Oct 2021 4:29 am
by krash
Hi!!!!..
Similar crash on here at seconds of start with new version 3151..return to 3149... attach log mxdiag..
THX
Re: Problem in 3151
Posted: Sat 23 Oct 2021 7:03 am
by rogerthn
Did see several
Code: Select all
050;1RSystem.ObjectDisposedException: Safe handle has been closed
at System.Runtime.InteropServices.SafeHandle.DangerousAddRef (System.Boolean& success) [0x00025] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
at System.Threading.NativeEventCalls.SetEvent (Microsoft.Win32.SafeHandles.SafeWaitHandle handle) [0x00002] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
at System.Threading.EventWaitHandle.Set () [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle.Set()
at System.IOAsyncResult.set_IsCompleted (System.Boolean value) [0x00024] in <a9a08e39ba304bd0a84c49bd158dfc02>:0
at System.Net.Sockets.SocketAsyncResult.Complete () [0x00037] in <a9a08e39ba304bd0a84c49bd158dfc02>:0
at System.Net.Sockets.SocketAsyncResult.Complete (System.Int32 total) [0x00007] in <a9a08e39ba304bd0a84c49bd158dfc02>:0
at System.Net.Sockets.Socket.<BeginReceiveCallback>m__C (System.IOAsyncResult ares) [0x0007b] in <a9a08e39ba304bd0a84c49bd158dfc02>:0
at System.IOSelectorJob.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <a9a08e39ba304bd0a84c49bd158dfc02>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate
050;1R
on "Cumulus screen"
Was started using
Code: Select all
screen -S Cumulus
cd /home/pi/CumulusMX
sudo mono CumulusMX.exe -debug
Enclosing mxdiag and ServiceConsoleLog.txt
Re: Problem in 3151
Posted: Sat 23 Oct 2021 7:20 am
by HansR
I did not update yet (and probably wait seeing this - but @pete_c has a different crash than the others.
@pete_c seems to have missed the update of the FluentFTP library so should redo his update (copy all files) and should then have the same crash as the others.
The common crash, as far as I can see and understand it, here has to do with the reuse of FTPS resource and apparently still has not been fixed so a return to the old lib probably should be advised. It is an issue related to FTPS and afaik can't be fixed just like that.
Re: Problem in 3151
Posted: Sat 23 Oct 2021 8:17 am
by water01
No problems with Build 3151 on Windows if that helps Mark.
Re: Problem in 3151
Posted: Sat 23 Oct 2021 8:58 am
by HansR
@water01: depends on what FTP you use. It is dependent on the FTP server, not on the operating system. If you use SFTP you should have no problem at all.
Re: Problem in 3151
Posted: Sat 23 Oct 2021 2:41 pm
by PaulMy
Build 3151 on Windows 10 works ok for me. Using
Select the FTP Protocol to use: 0 - FTP (plain old FTP)
Enjoy,
Paul
Re: Problem in 3151
Posted: Sat 23 Oct 2021 11:50 pm
by pete_c
Thank you @HansR
Re: Problem in 3151
Posted: Sun 24 Oct 2021 12:33 pm
by rogerthn
HansR wrote: ↑Sat 23 Oct 2021 8:58 am
... If you use SFTP you should have no problem at all.
Thanks HansR!
After
Code: Select all
cp -p /home/pi/.ssh/id_rsa /home/pi/CumulusMX
ssh-keygen -p -N "" -m pem -f /home/pi/CumulusMX/id_rsa
I could configure 3151 to use sftp and no more crashes
