<div dir="auto"><div>> <span style="font-size:12.8px">Ah, dropping the ""s seems to have resolved it.</span><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Interesting, which of the two places got it wrong? Sounds like a bug... I think parser should ignore quotes (not take them as content - just treat the insides as one token) unless escaped, in both config file contexts.</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">Gotta revise if NIT checks for that, it has several password combos in the test suite, but maybe not one that (mis?)fired here... PRs welcome if you beat me to it - holidays and all ;)</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">Jim </div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">On Thu, Dec 29, 2022, 17:05 Orion Poplawski <<a href="mailto:orion@nwra.com">orion@nwra.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-rw-r-----. 1 root nut  2364 Feb  4  2022 upsd.users<br>
-rw-r-----. 1 root nut 20020 Dec 29 07:57 upsmon.conf<br>
<br>
upsd.users:<br>
[monmaster]<br>
     password = "PASSWORD"<br>
     upsmon primary<br>
<br>
upsmon.conf:<br>
MONITOR cyberpower@localhost 1 monmaster "PASSWORD" primary<br>
<br>
The passwords match.  This all worked previously with 2.7.3.  I've <br>
changed master -> primary as well but that didn't seem to make a difference.<br>
<br>
Ah, dropping the ""s seems to have resolved it.<br>
<br>
<br>
On 12/28/22 23:55, Jim Klimov wrote:<br>
> OTOH, is the `upsd.users` file set up right?<br>
> <br>
> * permissions for only nut OS account to read it<br>
> * upsmon primary/secondary role specified for that nut user section<br>
> * no typos in password :)<br>
> <br>
> Jim<br>
> <br>
> <br>
> On Thu, Dec 29, 2022, 01:04 Orion Poplawski via Nut-upsuser <br>
> <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a> <br>
> <mailto:<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">nut-upsuser@alioth-lists.debian.net</a>>> wrote:<br>
> <br>
>     With nut 2.8.0 I seem to be getting the following messages:<br>
> <br>
>     Dec 28 15:37:49  upsd[192157]: [D2] mainloop: polling 4 filedescriptors<br>
>     Dec 28 15:37:49  upsd[192157]: [D6] Entering check_command: STARTTLS<br>
>     Dec 28 15:37:49  upsd[192157]: [D6] check_command: Calling command<br>
>     handler for STARTTLS<br>
>     Dec 28 15:37:49  upsd[192157]: [D2] write: [destfd=9] [len=12] [OK<br>
>     STARTTLS]<br>
>     Dec 28 15:37:49  upsd[192157]: [D3] SSL connected (TLSv1.2)<br>
>     Dec 28 15:37:49  nut-monitor[194125]: Connected to NUT server localhost<br>
>     in SSL<br>
>     Dec 28 15:37:49  nut-monitor[194125]: Certificate verification is<br>
>     disabled<br>
>     Dec 28 15:37:49  nut-monitor[194125]: 0.014249        Set password on<br>
>     [cyberpower@localhost] failed - got [ERR INVALID-ARGUMENT]<br>
>     Dec 28 15:37:49  nut-monitor[194125]: 0.014268        [D3] Current<br>
>     power<br>
>     value: 1<br>
>     Dec 28 15:37:49  nut-monitor[194125]: 0.014280        [D3] Minimum<br>
>     power<br>
>     value: 1<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800300        [D3] SSL<br>
>     connected (TLSv1.2)<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800339        [D2] mainloop:<br>
>     polling 4 filedescriptors<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800547        [D6] Entering<br>
>     check_command: USERNAME<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800570        [D6]<br>
>     check_command: Calling command handler for USERNAME<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800616        [D5]<br>
>     ssl_write ret=3<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800638        [D2] write:<br>
>     [destfd=9] [len=3] [OK]<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800657        [D2] mainloop:<br>
>     polling 4 filedescriptors<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800696        [D6] Entering<br>
>     check_command: PASSWORD<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800716        [D6]<br>
>     check_command: Calling command handler for PASSWORD<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800751        [D4] Sending<br>
>     error [INVALID-ARGUMENT] to client 127.0.0.1<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800794        [D5]<br>
>     ssl_write ret=21<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800814        [D2] write:<br>
>     [destfd=9] [len=21] [ERR INVALID-ARGUMENT]<br>
>     Dec 28 15:37:49  nut-server[192157]: 395.800834        [D2] mainloop:<br>
>     polling 4 filedescriptors<br>
>     Dec 28 15:37:49  upsd[192157]: [D2] mainloop: polling 4 filedescriptors<br>
>     Dec 28 15:37:49  upsd[192157]: [D6] Entering check_command: USERNAME<br>
>     Dec 28 15:37:49  upsd[192157]: [D6] check_command: Calling command<br>
>     handler for USERNAME<br>
>     Dec 28 15:37:49  upsd[192157]: [D5] ssl_write ret=3<br>
>     Dec 28 15:37:49  upsd[192157]: [D2] write: [destfd=9] [len=3] [OK]<br>
>     Dec 28 15:37:49  upsd[192157]: [D2] mainloop: polling 4 filedescriptors<br>
>     Dec 28 15:37:49  upsd[192157]: [D6] Entering check_command: PASSWORD<br>
>     Dec 28 15:37:49  upsd[192157]: [D6] check_command: Calling command<br>
>     handler for PASSWORD<br>
>     Dec 28 15:37:49  upsd[192157]: [D4] Sending error [INVALID-ARGUMENT] to<br>
>     client 127.0.0.1<br>
>     Dec 28 15:37:49  upsd[192157]: [D5] ssl_write ret=21<br>
>     Dec 28 15:37:49  upsd[192157]: [D2] write: [destfd=9] [len=21] [ERR<br>
>     INVALID-ARGUMENT]<br>
>     Dec 28 15:37:49  upsd[192157]: [D2] mainloop: polling 4 filedescriptors<br>
> <br>
> <br>
> <br>
>     Do you know what is triggering this?<br>
> <br>
>     -- <br>
>     Orion Poplawski<br>
>     he/him/his  - surely the least important thing about me<br>
>     IT Systems Manager                         720-772-5637<br>
>     NWRA, Boulder/CoRA Office             FAX: 303-415-9702<br>
>     3380 Mitchell Lane <a href="mailto:orion@nwra.com" target="_blank" rel="noreferrer">orion@nwra.com</a> <mailto:<a href="mailto:orion@nwra.com" target="_blank" rel="noreferrer">orion@nwra.com</a>><br>
>     Boulder, CO 80301 <a href="https://www.nwra.com/" rel="noreferrer noreferrer" target="_blank">https://www.nwra.com/</a> <<a href="https://www.nwra.com/" rel="noreferrer noreferrer" target="_blank">https://www.nwra.com/</a>><br>
>     _______________________________________________<br>
>     Nut-upsuser mailing list<br>
>     <a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
>     <mailto:<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a>><br>
>     <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
>     <<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a>><br>
> <br>
<br>
-- <br>
Orion Poplawski<br>
he/him/his  - surely the least important thing about me<br>
IT Systems Manager                         720-772-5637<br>
NWRA, Boulder/CoRA Office             FAX: 303-415-9702<br>
3380 Mitchell Lane                       <a href="mailto:orion@nwra.com" target="_blank" rel="noreferrer">orion@nwra.com</a><br>
Boulder, CO 80301                 <a href="https://www.nwra.com/" rel="noreferrer noreferrer" target="_blank">https://www.nwra.com/</a><br>
<br>
</blockquote></div></div></div>