-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxmox netdevmon
does not work after boot but after a service restart it does
#48
Comments
If restarting |
I've been encountering a very similar issue with my DXP4800 Plus on Debian 12. Either the network monitor or disk I/O monitor LEDs would work, but not both, and it seemed to be random which one worked each time. Errors of the form I played around a bit with adding |
Year I experimented a bit too (I have setup a fresh pve on a test ssh on my dxp8800). I will try to move the probe-leds into its own service and depend the original services on it. |
I was able to catch two different errors with the current services: A)
|
I think the second issue arises because there is no additional waiting time for the driver's initialization. How about adding |
I got it - I moved the probe-leds into its own service of the type oneshot and depend the diskmon & diskiomon thanks to this post since I did not looked into systemd yet: Now the dependency is correct and it correctly started multiple times in my caseroot@DXP8800:~# systemctl status --full --output short-iso-precise --lines 100 systemd-modules-load ugreen-{probe-leds,diskiomon,netdevmon@{enp88s0,vmbr0}}
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
Active: active (exited) since Sat 2025-01-04 17:17:32 CET; 5min ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 402 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
Main PID: 402 (code=exited, status=0/SUCCESS)
CPU: 1.252s
2025-01-04T17:17:30.773258+0100 DXP8800 systemd-modules-load[402]: Inserted module 'vhost_net'
2025-01-04T17:17:30.773599+0100 DXP8800 systemd-modules-load[402]: Module 'i2c_dev' is built in
2025-01-04T17:17:30.776889+0100 DXP8800 systemd-modules-load[402]: Inserted module 'led_ugreen'
2025-01-04T17:17:30.779842+0100 DXP8800 systemd-modules-load[402]: Inserted module 'ledtrig_oneshot'
2025-01-04T17:17:30.781978+0100 DXP8800 systemd-modules-load[402]: Inserted module 'ledtrig_netdev'
2025-01-04T17:17:32.155216+0100 DXP8800 systemd-modules-load[402]: Inserted module 'zfs'
2025-01-04T17:17:32.155955+0100 DXP8800 systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
Notice: journal has been rotated since unit was started, output may be incomplete.
● ugreen-probe-leds.service - UGREEN LEDs daemon for probing the hardware LEDs
Loaded: loaded (/etc/systemd/system/ugreen-probe-leds.service; disabled; preset: enabled)
Active: active (exited) since Sat 2025-01-04 17:17:33 CET; 5min ago
Process: 686 ExecStart=/usr/bin/ugreen-probe-leds (code=exited, status=0/SUCCESS)
Main PID: 686 (code=exited, status=0/SUCCESS)
CPU: 19ms
2025-01-04T17:17:32.811992+0100 DXP8800 systemd[1]: Starting ugreen-probe-leds.service - UGREEN LEDs daemon for probing the hardware LEDs...
2025-01-04T17:17:32.822496+0100 DXP8800 ugreen-probe-leds[701]: led_ugreen 24576 0
2025-01-04T17:17:32.826199+0100 DXP8800 ugreen-probe-leds[686]: Found I2C device /dev/i2c-0
2025-01-04T17:17:33.603402+0100 DXP8800 systemd[1]: Finished ugreen-probe-leds.service - UGREEN LEDs daemon for probing the hardware LEDs.
● ugreen-diskiomon.service - UGREEN LEDs daemon for monitoring diskio and blinking corresponding LED
Loaded: loaded (/etc/systemd/system/ugreen-diskiomon.service; enabled; preset: enabled)
Active: active (running) since Sat 2025-01-04 17:17:33 CET; 5min ago
Main PID: 781 (ugreen-diskiomo)
Tasks: 6 (limit: 47734)
Memory: 3.2M
CPU: 8.472s
CGroup: /system.slice/ugreen-diskiomon.service
├─ 781 /usr/bin/bash /usr/bin/ugreen-diskiomon
├─ 1019 /usr/bin/bash /usr/bin/ugreen-diskiomon
├─ 1020 /usr/bin/bash /usr/bin/ugreen-diskiomon
├─ 1028 sleep 360s
├─11470 sleep 5s
└─11612 sleep 0.1s
2025-01-04T17:17:33.620952+0100 DXP8800 systemd[1]: Started ugreen-diskiomon.service - UGREEN LEDs daemon for monitoring diskio and blinking corresponding LED.
2025-01-04T17:17:33.627303+0100 DXP8800 ugreen-diskiomon[781]: Found UGREEN DXP8800 series
2025-01-04T17:17:33.631036+0100 DXP8800 ugreen-diskiomon[781]: Enumerating disks based on ata...
2025-01-04T17:17:33.632752+0100 DXP8800 ugreen-diskiomon[781]: ata ata2 >> sda
● [email protected] - UGREEN LEDs daemon for monitoring netio (of enp88s0) and blinking corresponding LEDs
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; preset: enabled)
Active: active (running) since Sat 2025-01-04 17:17:33 CET; 5min ago
Main PID: 782 (ugreen-netdevmo)
Tasks: 2 (limit: 47734)
Memory: 628.0K
CPU: 18ms
CGroup: /system.slice/system-ugreen\x2dnetdevmon.slice/[email protected]
├─ 782 /usr/bin/bash /usr/bin/ugreen-netdevmon enp88s0
└─10804 sleep 60s
2025-01-04T17:17:33.621571+0100 DXP8800 systemd[1]: Started [email protected] - UGREEN LEDs daemon for monitoring netio (of enp88s0) and blinking corresponding LEDs.
○ [email protected] - UGREEN LEDs daemon for monitoring netio (of vmbr0) and blinking corresponding LEDs
Loaded: loaded (/etc/systemd/system/[email protected]; disabled; preset: enabled)
Active: inactive (dead) Since I do not know systemd yet and reading the mentioned post I think that the What are your opinions? |
Hey @jrcheshire @miskcoo and maybe @KrzysztofHajdamowicz Would you like to test my changes before I open a PR? |
I can test that recently.
I will also check that. |
Hi @docgalaxyblock, I have tested the changes in the repo, and they work well. For the |
@miskcoo It depends if you have enabled CHECK_LINK or not. If not it is likely a "oneshot" type of service. |
By looking the link about systemd, the oneshot type with remainafterexit leaves the service to the activating state with check_link enabled. It appears that the requirements for these two choices are slightly conflict? |
|
I understand it like that too |
Hello folks,
first: awesome work on this 👍
I have a DXP8800Plus and just installed Proxmox today on it (
proxmox-headers-6.8.12-5-pve
).The led controller install went smoothly but on a system restart my netdevmon does not sucessfully starts.
If I manually restart it some seconds later it starts sucessfully.
My
journalctl -u [email protected]
logMy installation steps
I see systemd dependencies were included in #23 so it should work right?
Or did I missed something during installation?
EDIT: Note After some reboot and shutdowns later my services do (not) work consisent.
Greetings from 🇩🇪 👋
The text was updated successfully, but these errors were encountered: