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

w32error-unix.c: unknown error (61) "No data available"

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

I am seeing this error message repeat often while running MX for the first time. I decided to download today and try it out. It is accessing my GW1100 to obtain the data and I have AQI and 2 extra temp sensors together with lightning. The data seems to display OK locally on my dashboard. Just wondered what this might be.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

Hi Stuart,

I've not see that error before, could you switch on debug and data logging (Program Settings -> Logging Options), then once you have had the error happen again, please zip up and attach the latest log file from the /MXdiags folder.

Thanks
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

Mark

As requested the log file.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

The error is when trying to read the CPU temperature. On Linux (what version are you running?), it reads the file /sys/class/thermal/thermal_zone0/temp

It looks like that file exists as the code checks before it reads it. But it may not contain what I am expecting. Can you have a look at that file and post the contents please?
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

mcrossley wrote: Wed 29 Dec 2021 7:32 pm The error is when trying to read the CPU temperature. On Linux (what version are you running?), it reads the file /sys/class/thermal/thermal_zone0/temp

It looks like that file exists as the code checks before it reads it. But it may not contain what I am expecting. Can you have a look at that file and post the contents please?
Mark that is an empty file owned by root, since I'm not running CumulusMX as root I'm not surprised it wont open. All the files there are associated with hardware monitoring so I don't understand why you even go there why do you need CPU temp? I am running openSUSE Tumbleweed which is a very leading edge distro.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

The file should have read permissions for all users though?
Reading that file seems to be a fairly standard way of obtaining the CPU temperature.

Your problem is also that the file is also empty. I'll add a checks for both permissions and for no contents.

The error is caught and is fairly benign, it just creates the debug logging message once a minute.

It is used to set one of the environmental values that people extract via web tags. In your case that value will not be available.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by HansR »

Permissions should not be an issue: I run as pi on a standard installation and it all goes well.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

Mark I checked again and that file is readable to all but it is empty. I don't know why it does not get populated, I will try to find out.

I am still puzzled that a weather program needs to know the CPU temperature, it is something I do not expect as I have hardware monitors running and that information does not need to be published. If folks want to know on a remote processor there are better ways to do this and temperature alone is not enough to know what might be wrong you also need other temps and fan speeds etc.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

Not everyone is a computer whizz, and the CMX web tags provide an easy way for them to get some basic information to display on their web sites.

I know the environment variables are a bit of anachronism, but they were inherited from Cumulus 1 (which was Windows only) and were maintained for backwards compatibility. Providing some of that data cross platform is not always easy or possible.

TBH I wouldn't fret about it, it doesn't sound like you would use those variables anyway.
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

No I am not ;) Just out of interest I'm trying to find out why that file is empty on Tumbleweed.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

It does seem a bit odd that the system creates the file, but then doesn't use it.
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

Mark I've done some more on this and it would appear that this field cannot be relied upon on all distros. It all depends on ACPI and if/how it is used I believe, so the answer is it may work or it may not. On my system there is another set of directories /sys/class/hwmon/hwmonN/ etc where there are 5 sub-directories containing 344 different files/directories and somewhere in there is probably what you want but and it's a big BUT most will contain a temp but it is not easy to determine which is the correct one for CPU temp.

So basically I'd say leave it as is and if it works great but if not then hard luck would be my response ;)

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

Thanks for looking into it. Linux is a bit of a nightmare with all the different distros doing things slightly differently.
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by broadstairs »

Mark I updated my laptop this morning which also runs Tumbleweed and it has the Temp file with data in it, in fact it has two Thermal0 and Thermal1 and both have valid Temp files! Go figure!

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w32error-unix.c: unknown error (61) "No data available"

Post by mcrossley »

Ha! Who knows.
Post Reply