hassio-addons / addon-nut

Network UPS Tools - Home Assistant Community Add-ons
https://addons.community
MIT License
188 stars 36 forks source link

Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running! #362

Closed edwardtich1 closed 5 months ago

edwardtich1 commented 5 months ago

Problem/Motivation

Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running!

Expected behavior

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

 Add-on: Network UPS Tools
 Manage battery backup (UPS) devices
-----------------------------------------------------------
 Add-on version: 0.13.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.3  (amd64 / qemux86-64)
 Home Assistant Core: 2024.5.4
 Home Assistant Supervisor: 2024.05.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[17:09:34] INFO: Configuring timezone (Europe/Moscow)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nut.sh
[17:09:35] INFO: Setting mode to netserver...
[17:09:35] INFO: Generating /etc/nut/upsd.users...
[17:09:35] INFO: Configuring user: nut
[17:09:35] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[17:09:36] INFO: Configuring Device named myups...
[17:09:36] INFO: Starting the UPS drivers...
Using subdriver: APC HID 0.98
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Network UPS Tools - UPS driver controller 2.8.0
cont-init: info: /etc/cont-init.d/nut.sh exited 0
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun upsd (no readiness notification)
services-up: info: copying legacy longrun upsmon (no readiness notification)
s6-rc: info: service legacy-services successfully started
[17:09:37] INFO: Starting the UPS information server...
   0.000000 fopen /run/nut/upsd.pid: No such file or directory
   0.000345 Could not find PID file '/run/nut/upsd.pid' to see if previous upsd instance is already running!

   0.000748 [D1] debug level is '1'
   0.001035 listening on 0.0.0.0 port 3493
   0.001359 Connected to UPS [myups]: usbhid-ups-myups
   0.001984 Running as foreground process, not saving a PID file
[17:09:37] INFO: Starting the UPS monitor and shutdown controller...
   0.000000 fopen /run/nut/upsmon.pid: No such file or directory
   0.000016 Could not find PID file to see if previous upsmon instance is already running!

   0.000119 Using power down flag file /etc/killpower
   0.000168 UPS: myups@localhost (primary) (power value 1)
   0.000184 [D1] debug level is '1'
   0.000197 [D1] debug level is '1'
   0.000200 Warning: running as one big root process by request (upsmon -p)
   0.000235 [D1] Saving PID 460 into /run/nut/upsmon.pid
Init SSL without certificate database
   0.001470 [D1] Trying to connect to UPS [myups@localhost]
   0.012836 User upsmonmaster@127.0.0.1 logged into UPS [myups]
   0.002181 [D1] Logged into UPS myups@localhost
edwardtich1 commented 5 months ago

sorry