Page 1 of 1

CumulusMX in a QNAP Container

Posted: Tue 12 Sep 2017 9:15 am
by kasper58
I have been struggling to get CumulusMX to run in a QNAP Debian container.\

I have install mono-complete

Code: Select all

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10)                                                                                                                                                                          
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com                                                                                                                                         
        TLS:           __thread                                                                                                                                                                                                 
        SIGSEGV:       altstack                                                                                                                                                                                                 
        Notifications: epoll                                                                                                                                                                                                    
        Architecture:  amd64                                                                                                                                                                                                    
        Disabled:      none                                                                                                                                                                                                     
        Misc:          softdebug                                                                                                                                                                                                
        LLVM:          supported, not enabled.                                                                                                                                                                                  
        GC:            sgen                    
When I run mono CumulusMX.exe & , I get the following

Code: Select all

root@CumulusMX:~# Current culture: English (United States)                                                                                                                                                                      
Serial: 64A9B4B32224C46E437A90334643F15E                                                                                                                                                                                        
Cumulus MX v.3.0.0 build 3043                                                                                                                                                                                                   
Today.ini = data/today.ini                                                                                                                                                                                                      
Last update=2017-08-27T15:20:00                                                                                                                                                                                                 
Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021                                                                                                                                                               
sysname=Linux release=4.2.8 machine=x86_64                                                                                                                                                                                      
System.DllNotFoundException: libudev.so.0                                                                                                                                                                                       
  at (wrapper managed-to-native) HidSharp.Platform.Linux.NativeMethods:udev_new ()                                                                                                                                              
  at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () [0x00000] in <filename unknown>:0                                                                                                                               
Not supported                                                                                                                                                                                                                   
Fine Offset station not found                                                                                                                                                                                                   
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use                                                                                                                                   
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0                                                                                                                           
  at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0                                                                                                
  at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0                                                              
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0                                                                                         
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
  


Been at it for weeks
Any help would be appreciated
Warren

Re: CumulusMX in a QNAP Container

Posted: Tue 12 Sep 2017 2:30 pm
by steve
You don't have libudev0 installed. If you can't find a suitable install for your system, some people have success by making a symlink to libudev1 - someone posted quite recently that this worked for them.

Re: CumulusMX in a QNAP Container

Posted: Tue 12 Sep 2017 8:20 pm
by kasper58
Thank you Steve.
Got pass that issue but it is not detecting the weather station.

Code: Select all

root@CumulusMX:~# Current culture: English (United States)                                                                                                                                                                      
Serial: 64A9B4B32224C46E437A90334643F15E                                                                                                                                                                                        
Cumulus MX v.3.0.0 build 3043                                                                                                                                                                                                   
Today.ini = data/today.ini                                                                                                                                                                                                      
Last update=2017-08-27T15:20:00                                                                                                                                                                                                 
Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021                                                                                                                                                               
sysname=Linux release=4.2.8 machine=x86_64                                                                                                                                                                                      
Fine Offset station not found                                                                                                                                                                                                   
Cumulus running at: http://*:8041/                                                                                                                                                                                              
(Replace * with any IP address on this machine, or localhost)
When I "dmesg | grep usb" I can see it there.

Code: Select all

[498614.249939] usb 1-4.1: new low-speed USB device number 9 using xhci_hcd                                                                                                                                                     
[498614.352558] usb 1-4.1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes                                                                                                                           
[498614.371656] hid-generic 0003:1941:8021.0006: hiddev0: USB HID v1.00 Device [HID 1941:8021] on usb-0000:00:14.0-4.1/input0                                                                                                   
[498614.399795] [usb.001.009] /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1 added. (MTP mode)                                                                                                                             
Cheers Warren

Re: CumulusMX in a QNAP Container

Posted: Tue 12 Sep 2017 8:26 pm
by steve
Reached the limit of my knowledge, I'm afraid. The third party USB library which MX uses doesn't usually have any problems detecting Fine Offset stations with Mono 3.2.8 and libudev0.

Re: CumulusMX in a QNAP Container

Posted: Tue 12 Sep 2017 9:09 pm
by ConligWX
Warren you may want to have a look here:

https://forum.qnap.com/viewtopic.php?t=119590

Re: CumulusMX in a QNAP Container

Posted: Wed 13 Sep 2017 12:13 am
by kasper58
Thanks Simon

Been through all that and are unable to determine the device name.

https://deviantengineer.com/2016/11/lxc-passthrough/

and from that the major/minor allocated to it so as to allow it

I must be missing the weather station driver on the QNAP root.

Cheers