<div dir="auto"><div>At least the "shutdown.return requires a parameter" part *may* be a regression of the new "sdcommands" change in v2.8.3,though I don't think older code passed any. Maybe something got lost in mass-edit changes though.<div dir="auto"><br></div><div dir="auto">Can you please double-check with 2.8.2 if its older approach to UPS shutdown behaved better?</div><div dir="auto"><br></div>Jim Klimov<br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, May 6, 2025, 00:41 Alexey Korobeinikov <<a href="mailto:alexey@fseafood.com">alexey@fseafood.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, my UPS Model Powercom BNT400AP ( made 2017.12 ) on Linux Devuan <br>
Daedalus and NUT v2.8.3 (install from source tarball with "configure <br>
--with-usb --with-user=nut --with-group=nut --with-libusb=1.0 <br>
--with-statepath=/run/nut --with-pidpath=/run/nut" options) didn't <br>
shutdown itself after OS is shuting down by signal of UPS battary is low.<br>
<br>...</blockquote></div></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
   0.184242     Initiating UPS [UPS] shutdown<br>
   0.184257     [D1] loop_shutdown_commands: call <br>
do_loop_shutdown_commands() with driver-default sdcommands<br>
   0.184267     [D1] Starting <br>
do_loop_shutdown_commands(shudown.default), call depth 1...<br>
   0.184280     [D1] upsdrv_shutdown...<br>
   0.184289     [D1] Starting <br>
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff), <br>
call depth 2...<br>
   0.184299     [D1] instcmd(shutdown.return, [NULL])<br>
   0.184313     [D3] instcmd: using Path <br>
'UPS.PowerSummary.DelayBeforehutdown'<br>
   0.184321     [D2] instcmd: shutdown.return requires an explicit <br>
parameter<br>
<br>
   0.184331     [D1] instcmd(shutdown.reboot, [NULL])<br>
   0.184348     [D2] find_nut_info: unknown info type: shutdown.reboot<br>
   0.184358     [D3] instcmd: cmdname 'shutdown.reboot' not found; <br>
checking for alternatives<br>
   0.184371     [D2] instcmd: info element unavailable shutdown.reboot<br>
<br>
   0.184387     [D1] instcmd(load.off.delay, [NULL])<br>
   0.184398     [D2] find_nut_info: unknown info type: load.off.delay<br>
   0.184407     [D3] instcmd: cmdname 'load.off.delay' not found; <br>
checking for alternatives<br>
   0.184418     [D2] instcmd: info element unavailable load.off.delay<br>
<br>
   0.184428     [D1] instcmd(shutdown.stayoff, [NULL])<br>
   0.184438     [D3] instcmd: using Path <br>
'UPS.PowerSummary.DelayBeforehutdown'<br>
   0.184449     [D2] instcmd: shutdown.stayoff requires an explicit <br>
parameter<br>
<br>
   0.184462     [D1] Ending <br>
do_loop_shutdown_commands(shutdown.return,shutdown.reboot,load.off.delay,shutdown.stayoff), <br>
call<br>
depth 2: return-code 2<br>
   0.184471     Shutdown failed!<br>
   0.184483     [D1] set_exit_flag: raising exit flag due to signal -1<br>
   0.184493     [D1] do_loop_shutdown_commands(): command <br>
'shutdown.default' was handled successfully<br>
   0.184502     [D1] Ending do_loop_shutdown_commands(shutdown.default), <br>
call depth 1: return-code 0<br>
   0.184512     UPS [UPS]: shutdown request was successful with <br>
'shutdown.default'<br>
   0.184523     [D1] set_exit_flag: raising exit flag due to <br>
programmatic abort: EXIT_FAILURE<br>
   0.184540     [D1] upsdrv_cleanup...<br>
   0.184899     [D1] upsnotify: failed to notify about state <br>
NOTIFY_STATE_STOPPING: no notification tech defined, will not spam more about it<br>
   0.184936     [D1] On systems without service units, consider `export <br>
NUT_QUIET_INIT_UPSNOTIFY=true`<br>
<br>
I try to use "powercom_sdcmd_byte_order_fallback" option, with same effect.<br>
<br>
Wat's wrong with my UPS/NUT ?<br>
Thank You!<br>
<br>
-- <br>
Oleksii Korobeinikov<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div></div></div>