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 7 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 7 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 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 dd0d752 is temporarily available: NUT-tarballs-PR-3429.zip.

@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

jimklimov added 7 commits May 10, 2026 20:32
…track filenames we already investigated [networkupstools#3420]

DRY the loop and avoid cycles.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…i_init() but did not require SSL in the first place [networkupstools#3420]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… not do this in a loop [networkupstools#3420]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…dllldd_with_tools() and dllldd_with_strings() [networkupstools#3420]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…here the input EXE/DLL files are [networkupstools#3420]

This allows to find libnutprivate*.dll or libupsclient*.dll
files we built and installed to EXE bindir, which were
otherwise ignored by earlier path discovery tools and/or logic.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… found some but not all DLLs via objdump; feed only the names we did not resolve to ldd [networkupstools#3420]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…EMPFILE_REC in the outer-most call if we stack them [networkupstools#3420]

This should help directory crawlers etc. ignore paths already walked
by some previous recursion in this scripted execution.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@AppVeyorBot
Copy link
Copy Markdown

Build nut 2.8.5.4678-master completed (commit 614bb81dec by @jimklimov)

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