Nut issues

  • Hey guys!
    I'm currently running an APC UPS through USB and I've been using these driver config commands:

    Code
    driver = usbhid-ups
    port = auto


    However, in the last week or so, I keep getting this error when trying to check my logs under the 'services' tab:



    Code
    Failed to execute command 'upsc ups 2>&1': Error: Driver not connected
    Error #4000: exception 'OMVException' with message 'Failed to execute command 'upsc ups 2>&1': Error: Driver not connected' in /usr/share/openmediavault/engined/rpc/nut.inc:151 Stack trace: 
    #0 [internal function]: OMVRpcServiceNetworkUPSTools->getStats(NULL, Array) 
    #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) 
    #2 /usr/share/php/openmediavault/rpc.inc(62): OMVRpcServiceAbstract->callMethod('getStats', NULL, Array) 
    #3 /usr/sbin/omv-engined(495): OMVRpc::exec('Nut', 'getStats', NULL, Array, 1) 
    #4 {main}


    Any clue as to what is happening?

  • I have the same error after upgrading NUT to 0.5.9


    Code
    Error #4000:
    exception 'OMVException' with message 'Failed to execute command 'upsc ups 2>&1': Error: Driver not connected' in /usr/share/openmediavault/engined/rpc/nut.inc:151
    Stack trace:
    #0 [internal function]: OMVRpcServiceNetworkUPSTools->getStats(NULL, Array)
    #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc.inc(62): OMVRpcServiceAbstract->callMethod('getStats', NULL, Array)
    #3 /usr/sbin/omv-engined(495): OMVRpc::exec('Nut', 'getStats', NULL, Array, 1)
    #4 {main}

    6.9.16-1 (Shaitan)
    HP ProLiant G7 MicroServer N54L AMD Turion II / 4GB
    Kingston SSDNow 200 30GB (OS), 4 x WD red 1TB SATA3 (Data)

    6.9.16-1 (Shaitan)

    HP Proliant G10+ Microserver Xeon E-2224 / 16GB

    Sabrent Rocket 500GB (OS), 4 x 2TB IronWolf SATA6 (Data)

  • Solved after inactivating the service, reboot the server and activate the service again.


    SAI log before:

    Code
    Feb  9 21:55:11 NAS02 upsmon[9122]: Poll UPS [ups@localhost] failed - Driver not connected
    Feb  9 21:55:16 NAS02 upsmon[9122]: Poll UPS [ups@localhost] failed - Driver not connected
    Feb  9 21:55:21 NAS02 upsmon[9122]: Poll UPS [ups@localhost] failed - Driver not connected
    Feb  9 21:55:26 NAS02 upsmon[9122]: Poll UPS [ups@localhost] failed - Driver not connected


    SAI log after:

    Code
    Feb 10 10:44:22 NAS02 upsd[17788]: Connected to UPS [ups]: usbhid-ups-ups
    Feb 10 10:44:22 NAS02 upsd[17789]: Startup successful
    Feb 10 10:44:22 NAS02 upsmon[17791]: Startup successful
    Feb 10 10:44:22 NAS02 upsd[17789]: User monmaster@127.0.0.1 logged into UPS [ups]

    6.9.16-1 (Shaitan)
    HP ProLiant G7 MicroServer N54L AMD Turion II / 4GB
    Kingston SSDNow 200 30GB (OS), 4 x WD red 1TB SATA3 (Data)

    6.9.16-1 (Shaitan)

    HP Proliant G10+ Microserver Xeon E-2224 / 16GB

    Sabrent Rocket 500GB (OS), 4 x 2TB IronWolf SATA6 (Data)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!