[Nut-upsuser] upsmon Can not initialize SSL context (letsencrypt) #563

tech tech at rkn.ovh
Wed Jun 27 12:59:58 BST 2018


Hello all.


Thx for the log-tip.


It was a access right violation on /etc.../letsencrypt/....cert . The folder was own by root:root

Had to create a group nutusers including root and my nut users. After that, had to change the chmod for the folder from 755 to 775


Now, running upsc -l

Init SSL without certificate database
850PRO

Witch is better. But still problématic wuth the init ssl database warning.


________________________________
De : Nut-upsuser <nut-upsuser-bounces+tech=rkn.ovh at alioth-lists.debian.net> de la part de Roger Price <roger at rogerprice.org>
Envoyé : lundi 25 juin 2018 16:54
À : nut-upsuser Mailing List
Objet : Re: [Nut-upsuser] upsmon Can not initialize SSL context (letsencrypt) #563

On Tue, 19 Jun 2018, tech wrote:

> Jun 19 16:34:55 REDACTED upsmon[7389]: Can not initialize SSL context

> I am lost. Comments and Help welcome.

It's only a comment, but, this message comes from NUT program netssl.c

                 status = NSS_NoDB_Init(NULL);
         if (status != SECSuccess) {
                 upslogx(LOG_ERR, "Can not initialize SSL context");
                 nss_error("upscli_init / NSS_[NoDB]_Init");
                 return;
         }

which does not call PR_GetError to retrieve the error code when NSS_NoDB_Init
fails.  To find out more, you could add the PR_GetError call, complete the error
message, recompile, re-install and try again.

Roger

_______________________________________________
Nut-upsuser mailing list
Nut-upsuser at alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20180627/7ee19f4f/attachment.html>


More information about the Nut-upsuser mailing list