Skip to content

Fix NSS bundling for Windows clients, do not abort upsmon if SSL was not required (and we failed to set it up)#3429

Open
jimklimov wants to merge 2 commits intonetworkupstools:masterfrom
jimklimov:issue-3420
Open

Fix NSS bundling for Windows clients, do not abort upsmon if SSL was not required (and we failed to set it up)#3429
jimklimov wants to merge 2 commits intonetworkupstools:masterfrom
jimklimov:issue-3420

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Closes: #3420

  • Windows: The 7-zip archive from AppVeyor (and proto area made by our Makefile) did not deliver some libraries apparently needed by nss3.dll but not referenced from it in a way visible to objdump, ldd and similar tools. Hopefully strings | grep would fare better to catch such cases.
  • All platforms: we no check more diligently for (in)ability to set up SSL, so even the NoDB mode in NSS builds failed if the library could not load (due to trouble above). Currently upsmon aborted the start-up if it could not initialize SSL (also in older releases), but now this happened with runs that did not require the SSL at all.
    • The method did return -1 in some failure cases earlier too, so this is not a newly introduced change of behavior. Just there is now more abilities and more error-checking inside.

jimklimov added 2 commits May 7, 2026 18:54
…i_init() but did not require SSL in the first place [networkupstools#3420]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov added this to the 2.8.6 milestone May 7, 2026
@jimklimov jimklimov added packaging Windows upsmon impacts-release-2.8.5 Issues reported against NUT release 2.8.5 (maybe vanilla or with minor packaging tweaks) labels May 7, 2026
@jimklimov jimklimov changed the title Fix NSS for Windows clients, do not abort upsmon if SSL was not required (and we failed to set it up) Fix NSS bundling for Windows clients, do not abort upsmon if SSL was not required (and we failed to set it up) May 7, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

A ZIP file with standard source tarball and another tarball with pre-built docs for commit 7b3e6c8 is temporarily available: NUT-tarballs-PR-3429.zip.

@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impacts-release-2.8.5 Issues reported against NUT release 2.8.5 (maybe vanilla or with minor packaging tweaks) packaging upsmon Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Because SSL is not set up upsmon will not connect on Windows

2 participants