Page 1 of 2

CumulusMX on Debian

Posted: Fri 20 Nov 2020 12:30 pm
by MeteoBallino
Hello everyone.
I installed debian 10 on a sheevaplug I had. Everything went well, then I also installed mono (mono-complete) to be able to run CumulusMX.
When I try to start CumulusMX I get this error, would you know what it is?


Also I obteined this mono-crash file (mono_crash.9a7fdf6df.0.json):

Code: Select all

{
  "protocol_version" : "0.0.6",
  "configuration" : {
    "version" : "(6.12.0.90) (tarball)",
    "tlc" : "__thread",
    "sigsgev" : "normal",
    "notifications" : "epoll",
    "architecture" : "armel,vfp+fallback",
    "disabled_features" : "none",
    "smallconfig" : "disabled",
    "bigarrays" : "disabled",
    "softdebug" : "enabled",
    "interpreter" : "enabled",
    "llvm_support" : "disabled",
    "suspend" : "preemptive"
  },
  "memory" : {
    "minor_gc_time" : "0",
    "major_gc_time" : "0",
    "minor_gc_count" : "0",
    "major_gc_count" : "0",
    "major_gc_time_concurrent" : "0"
 },
  "threads" : [
 {
    "is_managed" : true,
    "offset_free_hash" : "0x9a7fdf6df",
    "offset_rich_hash" : "0x9a7fdf848",
    "crashed" : true,
    "native_thread_id" : "0xffffffffb6f0e010",
    "thread_info_addr" : "0xfab5b8",
    "thread_name" : "mono",
    "ctx" : {
      "IP" : "0xb6c5b6ac",
      "SP" : "0xbec6f5b0",
      "BP" : "0x10a6ea0"
  },
    "managed_frames" : [
  {
      "is_managed" : "false",
      "native_address" : "unregistered"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x600690d",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00071"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x600001f",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00042"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000f6e",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00002"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000f6d",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00019"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000f6b",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x0000f"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000f73",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00000"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000f68",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00000"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6001015",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00018"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6001016",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x0000c"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000fb9",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00000"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x6000f77",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00000"
   }
,
  {
      "is_managed" : "true",
      "guid" : "9F0DF102-FE6E-4CFE-A29D-2E46F585D8A5",
      "token" : "0x600081c",
      "native_offset" : "0x0",
      "filename" : "mscorlib.dll",
      "sizeofimage" : "0x472000",
      "timestamp" : "0xe43f23f1",
      "il_offset" : "0x00008"
   }
,
  {
      "is_managed" : "true",
      "guid" : "F5DA340E-6068-4DE0-9423-98858416B40E",
      "token" : "0x60008e9",
      "native_offset" : "0x0",
      "filename" : "CumulusMX.exe",
      "sizeofimage" : "0x154000",
      "timestamp" : "0x5f9d6ead",
      "il_offset" : "0x00000"
   }
,
  {
      "is_managed" : "true",
      "guid" : "F5DA340E-6068-4DE0-9423-98858416B40E",
      "token" : "0x00000",
      "native_offset" : "0x0",
      "filename" : "CumulusMX.exe",
      "sizeofimage" : "0x154000",
      "timestamp" : "0x5f9d6ead",
      "il_offset" : "0x00060"
   }

  ]
 },
 {
    "is_managed" : false,
    "offset_free_hash" : "0x0",
    "offset_rich_hash" : "0x0",
    "crashed" : false,
    "native_thread_id" : "0xffffffffb66e3440",
    "thread_info_addr" : "0xffffffffb4a005b8",
    "thread_name" : "Finalizer",
    "ctx" : {
      "IP" : "0xb6dc4754",
      "SP" : "0xb66e2d48",
      "BP" : "0x896408"
  }
  }
  ]
}
Thank you so much.

Luca

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 1:48 pm
by freddie
Hi,

You don't say which version of mono you have installed - but you need at least version 5 for the latest release of Cumulus MX.

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 4:44 pm
by mcrossley
It looks like Mono 6.12 from that dump.

The stack trace shows Cumulus attempted to get the current time (DateTime.Now) and that crashed Mono whilst processing the Time Zone info. So something pretty fundamental is wrong somewhere.

Did you install Mono from the Mono Project web site? - www.mono-project.com/download/stable/

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 4:56 pm
by HansR
Please note I (and some users of cumulusutils) had similar problems described in this thread.
Ultimately it appeared not a problem, the world kept on truning turning and after a while it stopped. No special actions were taken just updates of our own software.
No idea what is going on, but cmx and the other software simply kept running and recovered.

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 7:22 pm
by MeteoBallino
mcrossley wrote: Fri 20 Nov 2020 4:44 pm It looks like Mono 6.12 from that dump.

The stack trace shows Cumulus attempted to get the current time (DateTime.Now) and that crashed Mono whilst processing the Time Zone info. So something pretty fundamental is wrong somewhere.

Did you install Mono from the Mono Project web site? - www.mono-project.com/download/stable/

Yes, of course.

I just can't understand.

The process aborts, CumulusMX can't even start.

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 8:13 pm
by Gregorean
Hello Meteo Ballino, it's really not mono, you're short of memory and really not going to work. On the shevaplug you only have 512MB DDR2 RAM, and 512MB NAND memory. That's really too tight to run Debian properly, let alone CumulusMX. :bash:
I got a BeagleBoneBlack Rev C working myself. The BBB has 4GB 8-bit eMMC Onboard Flash memory I could install Debian Buster on it and Mono 6.12 and CumulusMX 3096 PHP7.3 and a NGINX webserver.
But that cost me over 3.5Gb of memory and left me only 500mb of storage. CumulusMX was running fine but after a day the memory was already full and CumulusMX stopped. :roll:
I then mounted CumulusMX on a 32gb sd card, and now it runs smoothly. :clap:
I run it as a spare next to my Raspberry Pi 3b which also works fine.

In a test someone wrote about the shevaplug: Sheevaplug was one of the biggest disappointments I've ever had in this kind of hardware... if you want a very small Linux box save your money, don't buy Sheevaplug because it's USELESS. :evil:

Sjaak.

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 8:20 pm
by MeteoBallino
Gregorean wrote: Fri 20 Nov 2020 8:13 pm Hello Meteo Ballino, it's really not mono, you're short of memory and really not going to work. On the shevaplug you only have 512MB DDR2 RAM, and 512MB NAND memory. That's really too tight to run Debian properly, let alone CumulusMX. :bash:
I got a BeagleBoneBlack Rev C working myself. The BBB has 4GB 8-bit eMMC Onboard Flash memory I could install Debian Buster on it and Mono 6.12 and CumulusMX 3096.
But that cost me over 3.5Gb of memory and left me only 500mb of storage. CumulusMX was running fine but after a day the memory was already full and CumulusMX stopped.
I then mounted CumulusMX on a 32gb sd card, and now it runs smoothly. :clap:
I run it as a spare next to my Raspberry Pi 3b which also works fine.

In a test someone wrote about the shevaplug: Sheevaplug was one of the biggest disappointments I've ever had in this kind of hardware... if you want a very small Linux box save your money, don't buy Sheevaplug because it's USELESS. :evil:

Sjaak.
Hi and thanks for your reply.

But I've installed Debian on an external SD (8GB): do you think it can't work anyway?

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 8:34 pm
by mcrossley
Cumulus MX runs OK on a rPi Zero with 512MB of memory and Raspbian Lite. You'll not run much else, and some processes will be a bit slow though!

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 9:36 pm
by Gregorean
Mark, but he has no Raspberry so Raspbian lite will not work on his shevaplug. ;)

I myself use Debian Buster on my BBB and it is not there in a lite version to my knowledge.

Meteo Ballino now runs Debian 10 on an sd card, I had a problem with that at first because you have a no-exec flag on an SD card and therefore cannot execute CumulusMX.exe. With a automount rule you have to disable this.

I solved this in etc/fstab:

Code: Select all

 /dev/mmcblk0p1 /home/debian ext4 defaults 0 0 

And then installed CumulusMX which runs on the sd card (see below /home/debian), the Debian system (2.2G) runs on the internal 4GB eMMC memory.

Code: Select all

root@beaglebone:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            214M     0  214M   0% /dev
tmpfs            49M  3.4M   45M   7% /run
/dev/mmcblk1p1  3.5G  2.2G  1.2G  66% /
tmpfs           242M  8.0K  242M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           242M     0  242M   0% /sys/fs/cgroup
/dev/mmcblk0p1   29G   93M   28G   1% /home/debian
tmpfs            49M     0   49M   0% /run/user/0
root@beaglebone:~#
Sjaak.

Re: CumulusMX on Debian

Posted: Fri 20 Nov 2020 9:56 pm
by mcrossley
Ah, I see, its the disk space that's the issue, I was pointing out in can run in 512MB of RAM.

Re: CumulusMX on Debian

Posted: Sat 21 Nov 2020 8:15 am
by MeteoBallino
Gregorean wrote: Fri 20 Nov 2020 9:36 pm Mark, but he has no Raspberry so Raspbian lite will not work on his shevaplug. ;)

I myself use Debian Buster on my BBB and it is not there in a lite version to my knowledge.

Meteo Ballino now runs Debian 10 on an sd card, I had a problem with that at first because you have a no-exec flag on an SD card and therefore cannot execute CumulusMX.exe. With a automount rule you have to disable this.

I solved this in etc/fstab:

Code: Select all

 /dev/mmcblk0p1 /home/debian ext4 defaults 0 0 

And then installed CumulusMX which runs on the sd card (see below /home/debian), the Debian system (2.2G) runs on the internal 4GB eMMC memory.

Code: Select all

root@beaglebone:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            214M     0  214M   0% /dev
tmpfs            49M  3.4M   45M   7% /run
/dev/mmcblk1p1  3.5G  2.2G  1.2G  66% /
tmpfs           242M  8.0K  242M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           242M     0  242M   0% /sys/fs/cgroup
/dev/mmcblk0p1   29G   93M   28G   1% /home/debian
tmpfs            49M     0   49M   0% /run/user/0
root@beaglebone:~#
Sjaak.

Thank you so much!
So I have to edit this file like you did?

Re: CumulusMX on Debian

Posted: Sat 21 Nov 2020 9:49 am
by Gregorean
Hi, your automount system is of course different from mine, see below
My system starts from the internal 4Gb eMMC memory mmcblk1p1 and CumulusMX is mounted and started on mmcblk0p1 (sd 32Gb).
I don't know if that rule works for you. :?:

Maybe you could run the df -h command in the terminal window and place the output here. I advise you to use Putty for that. I myself use WinScp (Windows 10) which is also linked to Putty, that works very well and you can browse through all your files so easily and you can edit and modify them if you are logged in as root user.

Code: Select all

# /etc/fstab: static file system information.
#
/dev/mmcblk1p1  /  ext4  noatime,errors=remount-ro  0  1
debugfs  /sys/kernel/debug  debugfs  defaults  0  0
/dev/mmcblk0p1    /home/debian  ext4   defaults   0  0
Sjaak.

Re: CumulusMX on Debian

Posted: Sat 21 Nov 2020 10:02 am
by MeteoBallino
Thank you so much!


This is my result of the <df -h> command

Code: Select all

debian@debian:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            244M     0  244M   0% /dev
tmpfs            51M  1.5M   49M   3% /run
/dev/mmcblk0p2  6.6G  1.3G  5.0G  21% /
tmpfs           251M  4.0K  251M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           251M     0  251M   0% /sys/fs/cgroup
/dev/mmcblk0p1  236M   57M  167M  26% /boot
tmpfs            51M     0   51M   0% /run/user/1000

Re: CumulusMX on Debian

Posted: Sat 21 Nov 2020 11:14 am
by Gregorean
Ok, now I see that the /boot already has the "defaults" option, and I don't think you need to add that rule. What I do see in your fstab is that you use 2 formatting on line 9 you use ext4 (/) and on line 11 you use ext2 (/boot) :?:
The sheevaplug is already an older system so I don't know if that has anything to do with it.
I don't know your system, I had never heard of it until now. I understand that it is a challenge to get the sheevaplug working, but I would choose a different mini computer myself. I think the BBB is the best alternative for me because it has an internal eMMC memory of 4Gb on which you can run an OS without an sd card.
If something goes wrong with the sd card on my RPI 3b, your whole system is down and you lose everything. I make a backup to my Synology NAS every night so I don't lose my data. With my BBB I have this problem to a lesser extent, the internal eMMC has fewer problems in general than a complete system on a sd card. So far the RPI is running fine but I am still hesitant about an OS on an sd card.
So unfortunately I can't help you much at the moment, I also had to test and try a lot and read a lot to get a working system. :|

Re: CumulusMX on Debian

Posted: Sat 21 Nov 2020 12:30 pm
by mcrossley
Regarding running an OS on an SD card - yes it is going to fail at some point. There are a number of options to mitigate that...

Use an SLC SD card - they tolerate orders of magnitude more write cycles.
Use a larger card than you need - spread the writes over more memory cells.
If you have a pi 3 or 4 you can boot from a USB attached SSD drive (I do this), 128 GB USB 3 SSD drives are cheap.
The pi 4 also allows you to fall back to booting from the SD card if the USB drive fails/isn't available. The pi 3 is a one-way journey to USB boot.
Use symbolic links for all the temp files MX creates (realtime files, all *htmtmp etc) to your in-memory RAM drive.