gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
386 stars 70 forks source link

WinNut Immediately disconnects from UPS-Server upon the UPS going on battery #140

Open MartinKurtz opened 2 years ago

MartinKurtz commented 2 years ago

Basically as soon as the UPS goes on battery power, the WinNUT client loses connection, log file is attached. I suspect this is related to issue nr 114 and some others. WinNUT-client-2022-06-24 - Kopie.txt .

ChrisBCH commented 1 year ago

I am having the same issue. Any update on this?

MartinKurtz commented 1 year ago

Yes:

I have not tested this, but you can possibly skip 1 to 4 and use the "latest" version and do the same thing

  1. Uninstall WinNUT
  2. Resart PC
  3. Install the newest beta release
  4. It should now crash when starting it up saying something about string length
  5. Close/Shutdown WinNUT
  6. Go to whereever you installed WinNUT
  7. Enter a folder named de-DE for german, if you have another language, pick that folder
  8. Delete the .dll file in there and start WinNUT
  9. WinNUT should now fall back to the default language, which is english, but if you can read this or are computerlingual in any way this shouldnt be a problem, and in that language the string that is apparently the issue, is shorter and does apparently not cause this issue usually
  10. Magic

After following these steps it worked fine for me, however just installing the newest pre release version (https://github.com/gawindx/WinNUT-Client/releases/tag/2.1.7740.35837) at the time of writing did not fix the issue even though it said so in the changelog

MartinKurtz commented 1 year ago

I also deliberately did not close the issue yet, as the solution was a workaround

ChrisBCH commented 1 year ago

Thanks a lot for your explanation! Installation according to your steps described above worked wonderfully, and using English as UI is fine for me. WinNut also detected when the UPS went on battery supply. But then a strange thing happened: The UPS completely switched off. This never happened to me before and I have no idea what caused this. So in summary I am a bit confused now. Was this coincidence or is it related to the Beta WinNut?

gbakeman commented 1 year ago

@ChrisBCH I'm not quite sure why your UPS switched off, I don't think WinNUT is supposed to control it in that way. I've released a pre-release here, please give it a try and let me know if you still have the same problem as above. If so, then please make sure you upload the full debug log to the new issue here.

efebert commented 1 month ago

I'm new in github as I have need for this project. My installation is:

gbakeman commented 1 month ago

Hi @efebert ,

I'm glad you found a solution that helped here. I want to mention that this specific project on GitHub is no longer maintained, and I've moved it over to here. There have been several updates since the latest release here which I think you may be interested in. In the future, feel free to create a discussion there and I'll be happy to help.

efebert commented 1 month ago

Hi @gbakeman,

thank you for this notification. I switched to the project pointed to by you and installed it. Everythging works fine, in german language, too. In future, I'll follow the new project.