Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Mono error on Fedora 25

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
greyman56
Posts: 4
Joined: Wed 21 Dec 2016 2:26 am
Weather Station: FineOffset
Operating System: Windows 7 & Fedora 26

Mono error on Fedora 25

Post by greyman56 »

Hi, during installation on my Fedora 25 workstation, I get an error suggesting that a mono method is not available. Can you tell me what I am missing? Here is the output of the first attempt to run CumulusMX:-

Code: Select all

[graham@GM-N53SV CumulusMX]$ sudo mono CumulusMX.exe
Current culture: English (Australia)
Serial: 1A79837021C8FA17C8484641FC3B971B
Cumulus MX v.3.0.0 build 3043
Today.ini = data/today.ini
Last update=22/03/2017 1:30:00 PM
Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
System.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
  at System.RuntimeType.InvokeMember (System.String name, BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) <0x41f62850 + 0x01283> in <filename unknown>:0 
  at System.Type.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Globalization.CultureInfo culture) <0x41f62780 + 0x0005c> in <filename unknown>:0 
  at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.String& release, System.String& machine) <0x41f623f0 + 0x000df> in <filename unknown>:0 
  at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.Version& release, System.String& machine) <0x41f62000 + 0x0003f> in <filename unknown>:0 
  at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () <0x41f61a60 + 0x00053> in <filename unknown>:0 
Not supported
Fine Offset station not found
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
29/03/2017 4:42:35 PM
Type Ctrl-C to terminate
^C
Cumulus terminating
Program exit
I also ran the HidSharp.Test and got this:-

Code: Select all

[graham@GM-N53SV bin]$ sudo mono HidSharp.Test.exe 
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
System.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
  at System.RuntimeType.InvokeMember (System.String name, BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) <0x406a2aa0 + 0x01283> in <filename unknown>:0 
  at System.Type.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Globalization.CultureInfo culture) <0x406a29c0 + 0x0005c> in <filename unknown>:0 
  at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.String& release, System.String& machine) <0x4069f950 + 0x000db> in <filename unknown>:0 
  at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.Version& release, System.String& machine) <0x4069f4d0 + 0x0003f> in <filename unknown>:0 
  at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () <0x4069ef10 + 0x00053> in <filename unknown>:0 
Not supported
Complete device list (took 224 ms to get 0 devices):

Opening Fine Offset station
Fine Offset station not found
Opening Oregon Scientific station
Oregon Scientific station not found
Press a key to exit...
Fedora does not have the mono-complete package, but rather has a list of packages. Here is the list and I have installed them all:-

Code: Select all

Installed Packages
mono-addins.x86_64                                              1.1-3.fc24
mono-addins-devel.x86_64                                        1.1-3.fc24
mono-basic.x86_64                                               4.6-1.fc25
mono-basic-devel.x86_64                                         4.6-1.fc25
mono-bouncycastle.x86_64                                        1.8.0-0.3.rc1.fc24
mono-cecil.x86_64                                               0.9.6-4.fc24
mono-cecil-flowanalysis.x86_64                                  0.1-0.26.20110512svn100264.fc24
mono-cecil-flowanalysis-devel.x86_64                            0.1-0.26.20110512svn100264.fc24
mono-core.x86_64                                                4.4.2-1.fc25
mono-data.x86_64                                                4.4.2-1.fc25
mono-data-oracle.x86_64                                         4.4.2-1.fc25
mono-data-sqlite.x86_64                                         4.4.2-1.fc25
mono-debugger.x86_64                                            2.10-11.fc23
mono-debugger-devel.x86_64                                      2.10-11.fc23
mono-devel.x86_64                                               4.4.2-1.fc25
mono-extras.x86_64                                              4.4.2-1.fc25
mono-icon-theme.noarch                                          1:15.08.3-2.fc24
mono-locale-extras.x86_64                                       4.4.2-1.fc25
mono-mvc.x86_64                                                 4.4.2-1.fc25
mono-mvc-devel.x86_64                                           4.4.2-1.fc25
mono-reactive.x86_64                                            4.4.2-1.fc25
mono-reactive-devel.x86_64                                      4.4.2-1.fc25
mono-reactive-winforms.x86_64                                   4.4.2-1.fc25
mono-reflection.x86_64                                          0.1-0.12.20110613git304d1d.fc24
mono-reflection-devel.x86_64                                    0.1-0.12.20110613git304d1d.fc24
mono-shogun.x86_64                                              4.1.0-5.fc25
mono-tools.x86_64                                               4.2-2.fc24
mono-tools-devel.x86_64                                         4.2-2.fc24
mono-tools-gendarme.x86_64                                      4.2-2.fc24
mono-tools-ilcontrast.x86_64                                    4.2-2.fc24
mono-tools-monodoc.x86_64                                       4.2-2.fc24
mono-wcf.x86_64                                                 4.4.2-1.fc25
mono-web.x86_64                                                 4.4.2-1.fc25
mono-web-devel.x86_64                                           4.4.2-1.fc25
mono-winforms.x86_64                                            4.4.2-1.fc25
mono-winfx.x86_64                                               4.4.2-1.fc25
mono-yui.x86_64                                                 1.1.1-10.fc25
mono-zeroconf.x86_64                                            0.9.0-16.fc24
mono-zeroconf-devel.x86_64                                      0.9.0-16.fc24
monodoc.x86_64                                                  4.4.2-1.fc25
I have attached the MXdiags file although it does not seem to tell me much.

So is this some mono parts missing or is it the fineoffset usb issue that others are having?

Thanks, Graham
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Mono error on Fedora 25

Post by steve »

Looks like part of Mono missing (or possibly a bug in that version of Mono on Fedora).
Steve
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Mono error on Fedora 25

Post by mcrossley »

A very different list of mono components than I get for ver 3.2.8 on Jessie...

Code: Select all

 apt --installed list mono*
Listing... Done
mono-2.0-gac/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-2.0-service/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-4.0-gac/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-4.0-service/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-complete/stable,now 3.2.8+dfsg-10 armhf [installed]
mono-csharp-shell/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-devel/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-gac/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-jay/stable,now 3.2.8+dfsg-10 armhf [installed,automatic]
mono-mcs/stable,now 3.2.8+dfsg-10 all [installed,automatic]
mono-runtime/stable,now 3.2.8+dfsg-10 armhf [installed,automatic]
mono-runtime-common/stable,now 3.2.8+dfsg-10 armhf [installed,automatic]
mono-runtime-sgen/stable,now 3.2.8+dfsg-10 armhf [installed,automatic]
mono-utils/stable,now 3.2.8+dfsg-10 armhf [installed,automatic]
mono-xbuild/stable,now 3.2.8+dfsg-10 all [installed,automatic]
monodoc-base/stable,now 3.2.8+dfsg-10 all [installed,automatic]
monodoc-browser/stable,now 3.10-1 all [installed,automatic]
monodoc-manual/stable,now 3.2.8+dfsg-10 all [installed,automatic]
Edit: let's just show the installed list!
greyman56
Posts: 4
Joined: Wed 21 Dec 2016 2:26 am
Weather Station: FineOffset
Operating System: Windows 7 & Fedora 26

Re: Mono error on Fedora 25

Post by greyman56 »

I have it running now. Here's what I did:-
  • Removed the Fedora Mono packages
  • Follow instruction at http://www.mono-project.com/docs/gettin ... all/linux/
  • I already had the Mono repo so enabled it
    sudo dnf config-manager --set-enabled mono-project-centos
  • $ sudo dnf upgrade
    $ sudo dnf install mono-complete
  • This installed mono-complete v4.8.0.520-0
  • $ sudo mono HidSharp.Test.exe

    Code: Select all

    WARNING: The runtime version supported by this application is unavailable.
    Using default runtime: v4.0.30319
    System.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
      at System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) [0x008a0] in <f712f98eb8e445c8918edaf595bbe465>:0
      at System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Globalization.CultureInfo culture) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0
      at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.String& release, System.String& machine) [0x00047] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
      at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.Version& release, System.String& machine) [0x00004] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
      at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () [0x00002] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
    Not supported
    Complete device list (took 70 ms to get 0 devices):
    Opening Fine Offset station
    Fine Offset station not found
    
  • $ sudo dnf remove mono-complete
  • $ sudo dnf install mono-complete-3.12.1-0
  • $ sudo mono CumulusMX.exe

    Code: Select all

    Current culture: English (Australia)
    Serial: 1A79837021C8FA17C8484641FC3B971B
    Cumulus MX v.3.0.0 build 3043
    Today.ini = data/today.ini
    Last update=22/03/2017 1:30:00 PM
    Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
    sysname=Linux release=4.10.5 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
    
  • Ah! libudev.so.0 not found.

    Code: Select all

    # cd /usr/lib
    # ln -s libudev.so.1.6.5 libudev.so.0
    # cd ../lib64
    # ln -s libudev.so.1.6.5 libudev.so.0
    
  • libudev.so.1 was already linked to this version (1.6.5), so I copied that linking for the libudev.so.0
  • $ sudo mono HidSharp.Test.exe

    Code: Select all

    sysname=Linux release=4.10.5 machine=x86_64
    Complete device list (took 379 ms to get 3 devices):
    Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) (VID 1118, PID 64, version 266)
    (unnamed) (VID 6465, PID 32801, version 266)
    Dell Dell USB Entry Keyboard (VID 16700, PID 8455, version 266)
    
    Opening Fine Offset station
    Found Fine Offset station
    
    Max Lengths:
      Input:   9
      Output:  9
      Feature: 0
    
    The operating system name for this device is:
      /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.1/2-1.2.1.2/2-1.2.1.2:1.0/0003:1941:8021.0003/hidraw/hidraw2
    
    stream opened successfully
    
  • And Cumulus ...

    Code: Select all

    Current culture: English (Australia)
    Serial: 1A79837021C8FA17C8484641FC3B971B
    Cumulus MX v.3.0.0 build 3043
    Today.ini = data/today.ini
    Last update=22/03/2017 1:30:00 PM
    Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
    sysname=Linux release=4.10.5 machine=x86_64
    Fine Offset station found
    Connected to station
    Cumulus running at: http://*:8998/
    (Replace * with any IP address on this machine, or localhost)
    Starting web socket server on port 8002
    
So I now have mono-complete 3.12.1 running Cumulus MX 3.0.0 b3043

Navigating to localhost:8998 gives me the dashboard and all the history from Cumulus 1
Yeah!

I'll try the latest mono sometime soon and see if it only needs the libudev.so.0 thing as well.

Oh, and the web interface looks nice BTW.
greyman56
Posts: 4
Joined: Wed 21 Dec 2016 2:26 am
Weather Station: FineOffset
Operating System: Windows 7 & Fedora 26

Re: Mono error on Fedora 25

Post by greyman56 »

CumulusMX has been running great until yesterday after I did a system update.

I had forgotten to disable the mono repository and it updated mono to 4.8.0.520 again. Once this happens, cumulusmx will not find the fine offset station.

Downgrading mono-complete back to 3.12.1 fixed it.

This is on Fedora 25 linux.
Locked