Page 1 of 4
Error System uptime
Posted: Tue 22 Aug 2023 10:17 pm
by broadstairs
OK so I've been playing with Cumulusutils for a couple of days and been having some issues which I have yet to resolve. This of course could be user error but thought I'd ask here.
I have followed the install instructions from the wiki, created the required directories and adjusted the CMX settings as described.
Firstly the cumulusutils.exe will not run unless I prepend mono to it, I was under the impression that with the x bit set it did not need to specify mono. I have the x (execute) bit set and CMX is running (as a service using mono) but this does not work on my system (64-bit openSUSE Tumbleweed).
Next when I try to run mono utils/bin/cumulusutils.exe Website from the CMX directory I get the Error System Uptime messages as here in the extract from the utils log file:-
Code: Select all
2023-08-22 22:53:49.093 SystemStatus : DoingUnix
2023-08-22 22:53:49.094 Information SystemStatus : DoingUnix Start
2023-08-22 22:53:49.094 Information StartProcess uptime -p
2023-08-22 22:53:49.098 Error System uptime: Unknown exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
2023-08-22 22:53:49.102 Error Exception Unknown : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
2023-08-22 22:53:49.103 Error Data (cont): mscorlib
2023-08-22 22:53:49.108 Error Data: at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <f9b49af01f044e55b62df81b80d829b3>:0
at CumulusUtils.SysInfo.DoingUnix (System.IO.StreamWriter of) [0x00094] in <aaa56ba0f54e4b829d57c939e61f4563>:0
at CumulusUtils.SysInfo.GenerateSystemStatusAsync () [0x0058c] in <aaa56ba0f54e4b829d57c939e61f4563>:0
at CumulusUtils.CUtils.RealMainAsync (System.String[] args) [0x003ba] in <aaa56ba0f54e4b829d57c939e61f4563>:0
at CumulusUtils.CUtils.Main (System.String[] args) [0x00661] in <aaa56ba0f54e4b829d57c939e61f4563>:0
2023-08-22 22:53:49.108 Error Exiting - check log file
Forgot to say lshw is installed but on this system requires superuser privileges (eg. root).
Now if I knew what it was looking at on my system it might help!
So that will do for now. Any suggestions gratefully received!
Stuart
Re: Error System uptime
Posted: Wed 30 Aug 2023 11:13 am
by HansR
broadstairs wrote: ↑Tue 22 Aug 2023 10:17 pm
Firstly the cumulusutils.exe will not run unless I prepend mono to it, I was under the impression that with the x bit set it did not need to specify mono. I have the x (execute) bit set and CMX is running (as a service using mono) but this does not work on my system (64-bit openSUSE Tumbleweed).
If CMX is running (or mono otherwise active) it should not be required to prepend the CumulusUtils command with mono.
If it does not work I have no idea and it must be system specific (I think).
broadstairs wrote: ↑Tue 22 Aug 2023 10:17 pm
Next when I try to run mono utils/bin/cumulusutils.exe Website from the CMX directory I get the Error System Uptime messages as here in the extract from the utils log file:-
Code: Select all
2023-08-22 22:53:49.093 SystemStatus : DoingUnix
2023-08-22 22:53:49.094 Information SystemStatus : DoingUnix Start
2023-08-22 22:53:49.094 Information StartProcess uptime -p
2023-08-22 22:53:49.098 Error System uptime: Unknown exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
2023-08-22 22:53:49.102 Error Exception Unknown : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
2023-08-22 22:53:49.103 Error Data (cont): mscorlib
2023-08-22 22:53:49.108 Error Data: at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <f9b49af01f044e55b62df81b80d829b3>:0
at CumulusUtils.SysInfo.DoingUnix (System.IO.StreamWriter of) [0x00094] in <aaa56ba0f54e4b829d57c939e61f4563>:0
at CumulusUtils.SysInfo.GenerateSystemStatusAsync () [0x0058c] in <aaa56ba0f54e4b829d57c939e61f4563>:0
at CumulusUtils.CUtils.RealMainAsync (System.String[] args) [0x003ba] in <aaa56ba0f54e4b829d57c939e61f4563>:0
at CumulusUtils.CUtils.Main (System.String[] args) [0x00661] in <aaa56ba0f54e4b829d57c939e61f4563>:0
2023-08-22 22:53:49.108 Error Exiting - check log file
Forgot to say lshw is installed but on this system requires superuser privileges (eg. root).
Could you screenshot the output of your "uptime -p" command and post it?
(Cutils takes the first line, third character onwards)
Is the SuperUser for "lshw" obligatory? On Raspi OS it is just a warning.
broadstairs wrote: ↑Tue 22 Aug 2023 10:17 pm
Now if I knew what it was looking at on my system it might help!
We'll have to find out
When asking support I would highly appreciate the link to the site in the Map (full URL in parameter Website, section Maps). Just fill it in, it will automatically appear in the map after maximum of one day. I appreciate that link anyway

Re: Error System uptime
Posted: Wed 30 Aug 2023 11:21 am
by broadstairs
I'll take a screenshot of the uptime command later but from memory it complains about the -p option. lshw command is in a library and needs root to run, as far as I'm aware that is obligatory in openSUSE.
Stuart
Re: Error System uptime
Posted: Wed 30 Aug 2023 11:26 am
by HansR
OK... that would probably require to make a distinction between Linux dialects for the sysinfo to work.
Any suggestion how to distinguish between Raspi and Suse (and most likely other Linux dialects? Anybody?
Re: Error System uptime
Posted: Wed 30 Aug 2023 11:39 am
by broadstairs
Just to complete the output from the commands
Code: Select all
stuart@localhost:~> uptime -p
uptime: invalid option -- 'p'
Try 'uptime --help' for more information.
stuart@localhost:~> uptime --help
Usage: uptime [OPTION]... [FILE]
Print the current time, the length of time the system has been up,
the number of users on the system, and the average number of jobs
in the run queue over the last 1, 5 and 15 minutes. Processes in
an uninterruptible sleep state also contribute to the load average.
If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common.
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation <https://www.gnu.org/software/coreutils/uptime>
or available locally via: info '(coreutils) uptime invocation'
stuart@localhost:~> lshw
Absolute path to 'lshw' is '/usr/sbin/lshw', so running it may require superuser privileges (eg. root).
stuart@localhost:~> /usr/sbin/lshw
WARNING: you should run this program as super-user.
localhost.localdomain
description: Computer
width: 64 bits
capabilities: smp vsyscall32
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 15GiB
*-cpu
product: Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
version: 6.60.3
size: 2726MHz
capacity: 3GHz
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d cpufreq
configuration: microcode=40
*-pci
description: Host bridge
product: 4th Gen Core Processor DRAM Controller
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 06
width: 32 bits
clock: 33MHz
configuration: driver=hsw_uncore
resources: irq:0
*-display
description: VGA compatible controller
product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 06
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
resources: irq:30 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
*-multimedia:0
description: Audio device
product: Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
vendor: Intel Corporation
physical id: 3
bus info: pci@0000:00:03.0
logical name: card0
logical name: /dev/snd/controlC0
logical name: /dev/snd/hwC0D0
logical name: /dev/snd/pcmC0D3p
logical name: /dev/snd/pcmC0D7p
logical name: /dev/snd/pcmC0D8p
version: 06
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:34 memory:f7d34000-f7d37fff
*-input:0
product: HDA Intel HDMI HDMI/DP,pcm=3
physical id: 0
logical name: input5
logical name: /dev/input/event8
*-input:1
product: HDA Intel HDMI HDMI/DP,pcm=7
physical id: 1
logical name: input6
logical name: /dev/input/event9
*-input:2
product: HDA Intel HDMI HDMI/DP,pcm=8
physical id: 2
logical name: input7
logical name: /dev/input/event10
*-usb:0
description: USB controller
product: 8 Series/C220 Series Chipset Family USB xHCI
vendor: Intel Corporation
physical id: 14
bus info: pci@0000:00:14.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:29 memory:f7d20000-f7d2ffff
*-communication
description: Communication controller
product: 8 Series/C220 Series Chipset Family MEI Controller #1
vendor: Intel Corporation
physical id: 16
bus info: pci@0000:00:16.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=mei_me latency=0
resources: irq:32 memory:f7d3f000-f7d3f00f
*-network
description: Ethernet interface
product: Ethernet Connection I217-LM
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: 00:23:24:a8:c8:4a
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=6.4.11-1-default firmware=0.12-4 latency=0 link=no multicast=yes port=twisted pair
resources: irq:31 memory:f7d00000-f7d1ffff memory:f7d3d000-f7d3dfff ioport:f080(size=32)
*-usb:1
description: USB controller
product: 8 Series/C220 Series Chipset Family USB EHCI #2
vendor: Intel Corporation
physical id: 1a
bus info: pci@0000:00:1a.0
version: 04
width: 32 bits
clock: 33MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci-pci latency=0
resources: irq:17 memory:f7d3c000-f7d3c3ff
*-multimedia:1
description: Audio device
product: 8 Series/C220 Series Chipset High Definition Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
logical name: card1
logical name: /dev/snd/controlC1
logical name: /dev/snd/hwC1D2
logical name: /dev/snd/pcmC1D0c
logical name: /dev/snd/pcmC1D0p
version: 04
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:35 memory:f7d30000-f7d33fff
*-input:0
product: HDA Intel PCH Rear Mic
physical id: 0
logical name: input12
logical name: /dev/input/event4
*-input:1
product: HDA Intel PCH Front Mic
physical id: 1
logical name: input13
logical name: /dev/input/event5
*-input:2
product: HDA Intel PCH Front Headphone
physical id: 2
logical name: input14
logical name: /dev/input/event6
*-pci:0
description: PCI bridge
product: 8 Series/C220 Series Chipset Family PCI Express Root Port #1
vendor: Intel Corporation
physical id: 1c
bus info: pci@0000:00:1c.0
version: d4
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:26
*-pci:1
description: PCI bridge
product: 8 Series/C220 Series Chipset Family PCI Express Root Port #4
vendor: Intel Corporation
physical id: 1c.3
bus info: pci@0000:00:1c.3
version: d4
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:27 memory:f7c00000-f7cfffff
*-network
description: Wireless interface
product: Wireless 7265
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 59
serial: 94:e6:f7:87:9b:78
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=6.4.11-1-default firmware=29.4063824552.0 7265D-29.ucode ip=192.168.0.75 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:33 memory:f7c00000-f7c01fff
*-usb:2
description: USB controller
product: 8 Series/C220 Series Chipset Family USB EHCI #1
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: 04
width: 32 bits
clock: 33MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci-pci latency=0
resources: irq:23 memory:f7d3b000-f7d3b3ff
*-isa
description: ISA bridge
product: Q87 Express LPC Controller
vendor: Intel Corporation
physical id: 1f
bus info: pci@0000:00:1f.0
version: 04
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: driver=lpc_ich latency=0
resources: irq:0
*-pnp00:00
product: PnP device PNP0c02
physical id: 0
capabilities: pnp
configuration: driver=system
*-pnp00:01
product: PnP device PNP0b00
physical id: 1
capabilities: pnp
configuration: driver=rtc_cmos
*-pnp00:02
product: PnP device INT3f0d
vendor: Interphase Corporation
physical id: 2
capabilities: pnp
configuration: driver=system
*-pnp00:03
product: PnP device PNP0c02
physical id: 3
capabilities: pnp
configuration: driver=system
*-pnp00:04
product: PnP device PNP0c02
physical id: 4
capabilities: pnp
configuration: driver=system
*-pnp00:05
product: PnP device PNP0c31
physical id: 5
capabilities: pnp
configuration: driver=tpm_tis
*-pnp00:06
product: PnP device PNP0c02
physical id: 6
capabilities: pnp
configuration: driver=system
*-sata
description: SATA controller
product: 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
version: 04
width: 32 bits
clock: 66MHz
capabilities: sata ahci_1.0 bus_master cap_list
configuration: driver=ahci latency=0
resources: irq:28 ioport:f0d0(size=8) ioport:f0c0(size=4) ioport:f0b0(size=8) ioport:f0a0(size=4) ioport:f060(size=32) memory:f7d3a000-f7d3a7ff
*-serial
description: SMBus
product: 8 Series/C220 Series Chipset Family SMBus Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 04
width: 64 bits
clock: 33MHz
configuration: driver=i801_smbus latency=0
resources: irq:18 memory:f7d39000-f7d390ff ioport:580(size=32)
*-input:0
product: Video Bus
physical id: 1
logical name: input0
logical name: /dev/input/event0
capabilities: platform
*-input:1
product: Power Button
physical id: 2
logical name: input1
logical name: /dev/input/event1
capabilities: platform
*-input:2
product: Power Button
physical id: 3
logical name: input2
logical name: /dev/input/event2
capabilities: platform
*-input:3
product: PC Speaker
physical id: 4
logical name: input3
logical name: /dev/input/event3
capabilities: isa
*-input:4
product: Logitech M510
physical id: 5
logical name: input71
logical name: /dev/input/event7
logical name: /dev/input/mouse0
capabilities: usb
*-input:5
product: Logitech K540/K545
physical id: 6
logical name: input72
logical name: /dev/input/event11
logical name: input72::capslock
logical name: input72::compose
logical name: input72::kana
logical name: input72::numlock
logical name: input72::scrolllock
capabilities: usb
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
stuart@localhost:~>
You get the warning from lshw if you use the fully qualified path to it and it then runs as a user.
As for any link currently this will exist only on my local server for testing once it runs correctly.
Stuart
Re: Error System uptime
Posted: Wed 30 Aug 2023 11:50 am
by HansR
OK... I will try to make a distinction between the two dialects and then call lshw in the ways required (i.e. the complete path in your case).
Could you give me the uptime command on your system which has the output like (on one line):
Code: Select all
up 3 weeks, 2 days, 6 hours, 54 minutes
Still looking for the OS distinction though...
Re: Error System uptime
Posted: Wed 30 Aug 2023 12:10 pm
by HansR
What does your "cat /etc/os-release" show (screenshot please)
Re: Error System uptime
Posted: Wed 30 Aug 2023 1:36 pm
by broadstairs
As requested uptime and os-release output:-
Stuart
Re: Error System uptime
Posted: Wed 30 Aug 2023 1:57 pm
by HansR
OK, thanks.
I'll create a release with the possibility to add variations of Linux dialects (non-configurable atm). If a user wants to use an (obscure) Linux variation I'll add the dialectic commands it in the code. If this becomes a mainstream major app I'll make it user configurable eventually haha...
I'll let you know when ready.
Re: Error System uptime
Posted: Wed 30 Aug 2023 2:09 pm
by broadstairs
Thanks Hans, I'll look forwards to trying it all out when you have an update. No rush as I said I was only testing it at this time to see how I might use it all.
Stuart
Re: Error System uptime
Posted: Wed 30 Aug 2023 3:38 pm
by HansR
In addition I must say that it is pretty weird that the -p option for uptime does not work on your machine.
However... it's too small to care.
Re: Error System uptime
Posted: Wed 30 Aug 2023 4:01 pm
by broadstairs
openSUSE Tumbleweed is a very leading edge rolling distro which could account for the change Leap15.5 is the stable release which I do have installed on another PC, I'll check it and see if it's different.
Stuart
Re: Error System uptime
Posted: Wed 30 Aug 2023 4:41 pm
by HansR
OK. You could try this one.
Tbh... I am very curious what mysterious path I took here with all those possible different outputs in the dialects but anyway, here it is.
Whatever happens, could you please post the resulting log?
Re: Error System uptime
Posted: Thu 31 Aug 2023 11:19 am
by broadstairs
Hans I have tested this and it does get past the problems I was having. I am getting a message saying cannot create target file with this user but don't see why as PHP upload works perfectly with CMX. I'll do some more digging.
BTW openSUSE seems not to have lsb-release installed by default

anyway it is now installed.
Stuart
Re: Error System uptime
Posted: Thu 31 Aug 2023 11:59 am
by HansR
OK, good. Thanks.... As said, could you post the logfile so I can see what happens (e.g. that message about not creating the file)
Oh and CUtils does not use lsb-release as far as I remember. And Raspbian does not have it installed by default either.