Raspberry Pi Image - stops immediately
Posted: Wed 02 Jun 2021 9:33 pm
With a newly downlaoded Raspberry Pi Image, updated manually to build 3133 and copied in my old data, CumulusMX is starting then immediately failing. Can someone tell me what's wrong from this:
Further investigation: same SD card runs fine on a Pi4. It's looking like a mono incompatibility with PiZero?
Mark (or other?), can you tell me the zip file name for previous Raspberry Pi images, which previously worked? As you didn't make an image for each build, it's impossible to find the zip file without knowing which builds exist (the server displays a few files at https://cumuluswiki.org/Downloads - but nothing recent and no Pi images)
pi@cumulusmx:/tmp $ sudo systemctl start cumulusmx
pi@cumulusmx:/tmp $ sudo systemctl status cumulusmx
● cumulusmx.service - CumulusMX service
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-06-02 22:20:57 BST; 4s ago
Docs: https://cumuluswiki.org/a/Main_Page
Process: 624 ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -service (code=exited, status=0/SUCCESS)
Main PID: 625 (mono)
Tasks: 3 (limit: 877)
CGroup: /system.slice/cumulusmx.service
├─625 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -d:/opt/CumulusMX CumulusMX.exe -service
└─628 /usr/bin/gdb -batch -x /tmp/mono-gdb-commands.625 -nx
Jun 02 22:20:57 cumulusmx systemd[1]: Starting CumulusMX service...
Jun 02 22:20:57 cumulusmx systemd[1]: Started CumulusMX service.
pi@cumulusmx:/tmp $ sudo systemctl status cumulusmx
● cumulusmx.service - CumulusMX service
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Wed 2021-06-02 22:21:10 BST; 41s ago
Docs: https://cumuluswiki.org/a/Main_Page
Process: 624 ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -service (code=exited, status=0/SUCCESS)
Process: 635 ExecStopPost=/bin/rm /tmp/CumulusMX.exe.lock (code=exited, status=1/FAILURE)
Main PID: 625 (code=killed, signal=ABRT)
Jun 02 22:20:57 cumulusmx systemd[1]: Starting CumulusMX service...
Jun 02 22:20:57 cumulusmx systemd[1]: Started CumulusMX service.
Jun 02 22:21:10 cumulusmx systemd[1]: cumulusmx.service: Main process exited, code=killed, status=6/ABRT
Jun 02 22:21:10 cumulusmx rm[635]: /bin/rm: cannot remove '/tmp/CumulusMX.exe.lock': No such file or directory
Jun 02 22:21:10 cumulusmx systemd[1]: cumulusmx.service: Control process exited, code=exited, status=1/FAILURE
Jun 02 22:21:10 cumulusmx systemd[1]: cumulusmx.service: Failed with result 'signal'.
and I get this if I try to run CumulusMX manually:
pi@cumulusmx:/opt/CumulusMX $ sudo mono CumulusMX.exe
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
(No frames)
=================================================================
Telemetry Dumper:
=================================================================
Could not exec mono-hang-watchdog, expected on path '/etc/../bin/mono-hang-watchdog' (errno 2)
Entering thread summarizer pause from 0x3070130448x
Finished thread summarizer pause from 0x3070130448x.
Failed to create breadcrumb file (null)/crash_hash_0x15b1c4952
Waiting for dumping threads to resume
=================================================================
External Debugger Dump:
=================================================================
[New LWP 673]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
__waitpid (options=0, stat_loc=0xbef9d054, pid=675) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Id Target Id Frame
* 1 Thread 0xb6fe7910 (LWP 672) "mono" __waitpid (options=0, stat_loc=0xbef9d054, pid=675) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2 Thread 0xb5fff430 (LWP 673) "SGen worker" futex_wait_cancelable (private=0, expected=0, futex_word=0x40d290) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
Thread 2 (Thread 0xb5fff430 (LWP 673)):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x40d290) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 __pthread_cond_wait_common (abstime=0x0, mutex=0x0, cond=0x40d268) at pthread_cond_wait.c:502
#2 __pthread_cond_wait (cond=0x40d268, mutex=0x0) at pthread_cond_wait.c:655
#3 0x002f495c in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 0xb6fe7910 (LWP 672)):
#0 __waitpid (options=0, stat_loc=0xbef9d054, pid=675) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 __waitpid (pid=675, stat_loc=0xbef9d054, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
#2 0x0009cbc4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
[Inferior 1 (process 672) detached]
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0xb4513338):0xb4513328 00 00 00 ea fc d7 66 00 00 00 9f e7 10 00 8d e5 ......f.........
0xb4513338 5b f0 7f f5 10 00 9d e5 00 10 80 e5 18 d0 8d e2 [...............
0xb4513348 00 81 bd e8 40 41 2d e9 1c d0 4d e2 00 60 a0 e1 ....@A-...M..`..
0xb4513358 10 10 8d e5 00 00 56 e3 0d 00 00 0b 08 10 86 e2 ......V.........
=================================================================
Managed Stacktrace:
=================================================================
at System.Exception:.cctor <0x00038>
at System.Object:runtime_invoke_void <0x0007f>
at <unknown> <0xffffffff>
at System.SystemException:.ctor <0x0001b>
at System.OutOfMemoryException:.ctor <0x0001b>
at <Module>:runtime_invoke_void__this___object <0x0010b>
=================================================================
Aborted
Further investigation: same SD card runs fine on a Pi4. It's looking like a mono incompatibility with PiZero?
Mark (or other?), can you tell me the zip file name for previous Raspberry Pi images, which previously worked? As you didn't make an image for each build, it's impossible to find the zip file without knowing which builds exist (the server displays a few files at https://cumuluswiki.org/Downloads - but nothing recent and no Pi images)
pi@cumulusmx:/tmp $ sudo systemctl start cumulusmx
pi@cumulusmx:/tmp $ sudo systemctl status cumulusmx
● cumulusmx.service - CumulusMX service
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-06-02 22:20:57 BST; 4s ago
Docs: https://cumuluswiki.org/a/Main_Page
Process: 624 ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -service (code=exited, status=0/SUCCESS)
Main PID: 625 (mono)
Tasks: 3 (limit: 877)
CGroup: /system.slice/cumulusmx.service
├─625 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -d:/opt/CumulusMX CumulusMX.exe -service
└─628 /usr/bin/gdb -batch -x /tmp/mono-gdb-commands.625 -nx
Jun 02 22:20:57 cumulusmx systemd[1]: Starting CumulusMX service...
Jun 02 22:20:57 cumulusmx systemd[1]: Started CumulusMX service.
pi@cumulusmx:/tmp $ sudo systemctl status cumulusmx
● cumulusmx.service - CumulusMX service
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Wed 2021-06-02 22:21:10 BST; 41s ago
Docs: https://cumuluswiki.org/a/Main_Page
Process: 624 ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -service (code=exited, status=0/SUCCESS)
Process: 635 ExecStopPost=/bin/rm /tmp/CumulusMX.exe.lock (code=exited, status=1/FAILURE)
Main PID: 625 (code=killed, signal=ABRT)
Jun 02 22:20:57 cumulusmx systemd[1]: Starting CumulusMX service...
Jun 02 22:20:57 cumulusmx systemd[1]: Started CumulusMX service.
Jun 02 22:21:10 cumulusmx systemd[1]: cumulusmx.service: Main process exited, code=killed, status=6/ABRT
Jun 02 22:21:10 cumulusmx rm[635]: /bin/rm: cannot remove '/tmp/CumulusMX.exe.lock': No such file or directory
Jun 02 22:21:10 cumulusmx systemd[1]: cumulusmx.service: Control process exited, code=exited, status=1/FAILURE
Jun 02 22:21:10 cumulusmx systemd[1]: cumulusmx.service: Failed with result 'signal'.
and I get this if I try to run CumulusMX manually:
pi@cumulusmx:/opt/CumulusMX $ sudo mono CumulusMX.exe
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
(No frames)
=================================================================
Telemetry Dumper:
=================================================================
Could not exec mono-hang-watchdog, expected on path '/etc/../bin/mono-hang-watchdog' (errno 2)
Entering thread summarizer pause from 0x3070130448x
Finished thread summarizer pause from 0x3070130448x.
Failed to create breadcrumb file (null)/crash_hash_0x15b1c4952
Waiting for dumping threads to resume
=================================================================
External Debugger Dump:
=================================================================
[New LWP 673]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
__waitpid (options=0, stat_loc=0xbef9d054, pid=675) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Id Target Id Frame
* 1 Thread 0xb6fe7910 (LWP 672) "mono" __waitpid (options=0, stat_loc=0xbef9d054, pid=675) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2 Thread 0xb5fff430 (LWP 673) "SGen worker" futex_wait_cancelable (private=0, expected=0, futex_word=0x40d290) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
Thread 2 (Thread 0xb5fff430 (LWP 673)):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x40d290) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 __pthread_cond_wait_common (abstime=0x0, mutex=0x0, cond=0x40d268) at pthread_cond_wait.c:502
#2 __pthread_cond_wait (cond=0x40d268, mutex=0x0) at pthread_cond_wait.c:655
#3 0x002f495c in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 0xb6fe7910 (LWP 672)):
#0 __waitpid (options=0, stat_loc=0xbef9d054, pid=675) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 __waitpid (pid=675, stat_loc=0xbef9d054, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
#2 0x0009cbc4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
[Inferior 1 (process 672) detached]
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0xb4513338):0xb4513328 00 00 00 ea fc d7 66 00 00 00 9f e7 10 00 8d e5 ......f.........
0xb4513338 5b f0 7f f5 10 00 9d e5 00 10 80 e5 18 d0 8d e2 [...............
0xb4513348 00 81 bd e8 40 41 2d e9 1c d0 4d e2 00 60 a0 e1 ....@A-...M..`..
0xb4513358 10 10 8d e5 00 00 56 e3 0d 00 00 0b 08 10 86 e2 ......V.........
=================================================================
Managed Stacktrace:
=================================================================
at System.Exception:.cctor <0x00038>
at System.Object:runtime_invoke_void <0x0007f>
at <unknown> <0xffffffff>
at System.SystemException:.ctor <0x0001b>
at System.OutOfMemoryException:.ctor <0x0001b>
at <Module>:runtime_invoke_void__this___object <0x0010b>
=================================================================
Aborted