MX on GNU/Linux connecting to Davis VP2 via Virtual VP.
Did a restart at 0906 UTC - log file was getting rather large after nearly 2 weeks of uptime!
Tailing the new log file, it looks as if MX is "stuck" flushing the input stream. MX not responsive to "CTRL-C" quit command. Diags file attached.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
MX "stuck" flushing input stream
Moderator: mcrossley
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
MX "stuck" flushing input stream
You do not have the required permissions to view the files attached to this post.
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: MX "stuck" flushing input stream
I've just checked Virtual VP for errors - and it appears that MX didn't connect to the station on restart. I'm not sure where it was getting the inputstream data from - but it appears there was an abundance of it, looking at the MXDiags log.
Virtual VP displayed further errors about buffer sizes being incorrect when I re-started MX the second time. At this point, Cumulus 1 (listening to VVP on a different port) lost its connection and restarted. So I think VVP had entered a confused state.
Virtual VP and MX now restarted and running okay. Note I had to forcibly stop MX using "kill" as the console was not responding to Ctrl-C. I guess it doesn't listen to the keyboard until the program has finished it's start-up tasks?
Virtual VP displayed further errors about buffer sizes being incorrect when I re-started MX the second time. At this point, Cumulus 1 (listening to VVP on a different port) lost its connection and restarted. So I think VVP had entered a confused state.
Virtual VP and MX now restarted and running okay. Note I had to forcibly stop MX using "kill" as the console was not responding to Ctrl-C. I guess it doesn't listen to the keyboard until the program has finished it's start-up tasks?
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: MX "stuck" flushing input stream
It thinks it was connected successfully, and it was receiving (unrequested) LOOP packets. It continues to read and discard data at start up until the connection goes quiet, to make sure it's in a clean state when it starts issuing commands.freddie wrote:I've just checked Virtual VP for errors - and it appears that MX didn't connect to the station on restart. I'm not sure where it was getting the inputstream data from - but it appears there was an abundance of it, looking at the MXDiags log.
It sets up the signal handler thread as the very first thing it does, and while it's flushing the input stream it sleeps for 200ms between each character, so I don't know why that didn't allow the CTRL-C signal to be processed.Note I had to forcibly stop MX using "kill" as the console was not responding to Ctrl-C. I guess it doesn't listen to the keyboard until the program has finished it's start-up tasks?
Steve
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: MX "stuck" flushing input stream
Yes, I noticed on the VVP display something like "receiving 1045 out of 50 loop packets" - so was in a right old pickle!!steve wrote:It thinks it was connected successfully, and it was receiving (unrequested) LOOP packets. It continues to read and discard data at start up until the connection goes quiet, to make sure it's in a clean state when it starts issuing commands.freddie wrote:I've just checked Virtual VP for errors - and it appears that MX didn't connect to the station on restart. I'm not sure where it was getting the inputstream data from - but it appears there was an abundance of it, looking at the MXDiags log.
Yes, I thought you would've set up a listener as one of the first tasks - hence my puzzlement at the behaviour. When trying to terminate MX I made several (tens of) CTRL-C attempts before using "kill".steve wrote:It sets up the signal handler thread as the very first thing it does, and while it's flushing the input stream it sleeps for 200ms between each character, so I don't know why that didn't allow the CTRL-C signal to be processed.freddie wrote:Note I had to forcibly stop MX using "kill" as the console was not responding to Ctrl-C. I guess it doesn't listen to the keyboard until the program has finished it's start-up tasks?
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: MX "stuck" flushing input stream
I was going to suggest that it would have possibly sorted itself out eventually once VVP stopped sending the loop packets, but from that it looks like you would still be waitingfreddie wrote:Yes, I noticed on the VVP display something like "receiving 1045 out of 50 loop packets" - so was in a right old pickle!!
Steve