Giter VIP home page Giter VIP logo

Comments (8)

addons-assistant avatar addons-assistant commented on July 3, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 3, 2024

Please check #14 #15 in case they are related.

We would not add an automatic restart to the addon.

from addon-nut.

MartyTremblay avatar MartyTremblay commented on July 3, 2024

I looked at #14 and #15 with no luck. I wonder if this could help?
https://raspberrypi.stackexchange.com/questions/66611/nut-cyberpower-data-stale

Raspberry Pi Stack Exchange
I've got upsmon (nut-client) and upsd (nut-server) set up and almost fully working on an RPi3.

Connected is a CP1500PFCLCD UPS via USB. upsd and upsmon start up perfectly every time. However, gi...

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 3, 2024

You can set MAXAGE in the config, please also see https://github.com/hassio-addons/addon-nut#option-fake_usb_devices if it is relevant.

GitHub
Network UPS Tools - Home Assistant Community Add-ons - hassio-addons/addon-nut

from addon-nut.

lex-us345 avatar lex-us345 commented on July 3, 2024

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] nut: applying...
[fix-attrs.d] nut: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...

Add-on: Network UPS Tools
Manage battery backup (UPS) devices

Add-on version: 0.1.1
You are running the latest version of this add-on.
System: HassOS 3.12 (armv7 / raspberrypi3)
Home Assistant Core: 0.107.5
Home Assistant Supervisor: 209

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to ERROR
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nut.sh: executing...
Network UPS Tools - UPS driver controller 3.8.0-3396-gcdc7c4b5b1
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (3.8.0-3396-gcdc7c4b5b1)
Startup timer elapsed, continuing...
[cont-init.d] nut.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

from addon-nut.

pmitev avatar pmitev commented on July 3, 2024

I am experiencing the same problem. I have everything perfectly running (nut server with 2 clients), but after several days the build-in Synology NAS client complains that has lost connection to the server - the error messages reported in the first post look familiar. Restarting the plugin fixes the problem... for several days... The second client is just a crontab task that pools the server that I made sure does not complain if the connection is lost.
log:

80321.122178	Poll UPS [ups@localhost] failed - Data stale
80326.122905	Poll UPS [ups@localhost] failed - Data stale
80331.123640	Poll UPS [ups@localhost] failed - Data stale
80336.124152	Poll UPS [ups@localhost] failed - Data stale
80341.124876	Poll UPS [ups@localhost] failed - Data stale
80346.125633	Poll UPS [ups@localhost] failed - Data stale
80351.126369	Poll UPS [ups@localhost] failed - Data stale
80356.127113	Poll UPS [ups@localhost] failed - Data stale
80361.128242	Poll UPS [ups@localhost] failed - Data stale
80366.128744	Poll UPS [ups@localhost] failed - Data stale
80371.129477	Poll UPS [ups@localhost] failed - Data stale
80376.130279	Poll UPS [ups@localhost] failed - Data stale
80381.131105	Poll UPS [ups@localhost] failed - Data stale

Upon restart

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] nut: applying... 
[fix-attrs.d] nut: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Network UPS Tools
 Manage battery backup (UPS) devices
-----------------------------------------------------------
 Add-on version: 0.1.2
 You are running the latest version of this add-on.
 System: HassOS 3.13  (armv7 / raspberrypi3)
 Home Assistant Core: 0.108.6
 Home Assistant Supervisor: 217
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nut.sh: executing... 
[09:37:11] INFO: Setting mode to netserver...
[09:37:12] INFO: Generating /etc/nut/upsd.users...
[09:37:13] INFO: Configuring user: monuser
[09:37:17] INFO: Configuring Device named ups...
[09:37:17] INFO: Starting the UPS drivers...
Network UPS Tools - UPS driver controller 3.8.0-3396-gcdc7c4b5b1
Network UPS Tools - Generic HID driver 0.41 (3.8.0-3396-gcdc7c4b5b1)
Using subdriver: MGE HID 1.39
USB communication driver 0.33
[cont-init.d] nut.sh: exited 0.
[cont-init.d] nutclient.sh: executing... 
[cont-init.d] nutclient.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[09:37:24] INFO: Starting the UPS information server...
Network UPS Tools upsd 3.8.0-3396-gcdc7c4b5b1
   0.000000	fopen /var/run/nut/upsd.pid: No such file or directory
   0.000852	listening on 0.0.0.0 port 3493
   0.001816	Connected to UPS [ups]: usbhid-ups-ups
[09:37:24] INFO: Starting the UPS monitor and shutdown controller...
Network UPS Tools upsmon 3.8.0-3396-gcdc7c4b5b1
   0.000000	fopen /var/run/upsmon.pid: No such file or directory
   0.000671	Using power down flag file /etc/killpower
   0.001058	UPS: ups@localhost (master) (power value 1)
   0.001187	debug level is '1'
   0.013394	Trying to connect to UPS [ups@localhost]
   0.046849	User [email protected] logged into UPS [ups]
   0.015920	Logged into UPS ups@localhost

from addon-nut.

sinclairpaul avatar sinclairpaul commented on July 3, 2024

Closing, I have seen the issue but seems to be resolved by the upsd_maxage parameter, for example:

upsd_maxage: 25

from addon-nut.

addons-assistant avatar addons-assistant commented on July 3, 2024

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

from addon-nut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.