Page 1 of 1

Build 3083 - SFTP error then crash

Posted: Tue 09 Jun 2020 9:31 pm
by Vegit8
Hi Mark
Still no joy - sorry

Running 3083 from this morning, crashed this evening.
I am sure there was another upload to YouTube going on, as remote connection to the laptop was very slow.

Have enabled debug mode.
Diags attached

Code: Select all

2020-06-09 20:50:00.239 SFTP: Error uploading /home/geoff/CumulusMX/web/gauges-ssT.htmtmp to public_html/weather/gauges-ss.htm : Cannot access a disposed object.
Object name: 'System.Threading.AutoResetEvent'.
!!! Unhandled Exception !!!

Re: Build 3083 - SFTP error then crash

Posted: Wed 10 Jun 2020 9:07 am
by mcrossley
Grr, SFTP is proving a bit of mare!

Its a bit hard to see the problem without debug logging on. I see FTP logging was on though.

The crash occurred in the interval SFTP upload, I'll check that all code catches errors as well as opening files in read-only mode.

I see you are still uploading "gauges-ssT.htm" at the real time interval. As I said before, that file only needs to be processed and uploaded ONCE. Then forget about it.

Re: Build 3083 - SFTP error then crash

Posted: Wed 10 Jun 2020 8:49 pm
by Vegit8
Hi
Now have stop - usual reason.
Uploading - gauges-ssT.htm - stopped, I got confused by the filename, I was looking at the resultant file on the remote site, missed the T attribute - duh!

Debug log attached.

What confuses me is that the other files all get uploaded with no issues - they use SFTP as well. What is different about the realtime upload (apart from frequency)?

An interesting aside.
When restarting MX - the realtime upload still fails.
To get it running I have to open realtime.txt (it has zero bytes), and close it.
It then gets populated properly afterwards.
It seems the file gets locked (like a table lock in a database).