[Nut-upsuser] nut-monitor: Set password on [cyberpower at localhost] failed - got [ERR INVALID-ARGUMENT]
Orion Poplawski
orion at nwra.com
Thu Dec 29 16:05:33 GMT 2022
-rw-r-----. 1 root nut 2364 Feb 4 2022 upsd.users
-rw-r-----. 1 root nut 20020 Dec 29 07:57 upsmon.conf
upsd.users:
[monmaster]
password = "PASSWORD"
upsmon primary
upsmon.conf:
MONITOR cyberpower at localhost 1 monmaster "PASSWORD" primary
The passwords match. This all worked previously with 2.7.3. I've
changed master -> primary as well but that didn't seem to make a difference.
Ah, dropping the ""s seems to have resolved it.
On 12/28/22 23:55, Jim Klimov wrote:
> OTOH, is the `upsd.users` file set up right?
>
> * permissions for only nut OS account to read it
> * upsmon primary/secondary role specified for that nut user section
> * no typos in password :)
>
> Jim
>
>
> On Thu, Dec 29, 2022, 01:04 Orion Poplawski via Nut-upsuser
> <nut-upsuser at alioth-lists.debian.net
> <mailto:nut-upsuser at alioth-lists.debian.net>> wrote:
>
> With nut 2.8.0 I seem to be getting the following messages:
>
> Dec 28 15:37:49 upsd[192157]: [D2] mainloop: polling 4 filedescriptors
> Dec 28 15:37:49 upsd[192157]: [D6] Entering check_command: STARTTLS
> Dec 28 15:37:49 upsd[192157]: [D6] check_command: Calling command
> handler for STARTTLS
> Dec 28 15:37:49 upsd[192157]: [D2] write: [destfd=9] [len=12] [OK
> STARTTLS]
> Dec 28 15:37:49 upsd[192157]: [D3] SSL connected (TLSv1.2)
> Dec 28 15:37:49 nut-monitor[194125]: Connected to NUT server localhost
> in SSL
> Dec 28 15:37:49 nut-monitor[194125]: Certificate verification is
> disabled
> Dec 28 15:37:49 nut-monitor[194125]: 0.014249 Set password on
> [cyberpower at localhost] failed - got [ERR INVALID-ARGUMENT]
> Dec 28 15:37:49 nut-monitor[194125]: 0.014268 [D3] Current
> power
> value: 1
> Dec 28 15:37:49 nut-monitor[194125]: 0.014280 [D3] Minimum
> power
> value: 1
> Dec 28 15:37:49 nut-server[192157]: 395.800300 [D3] SSL
> connected (TLSv1.2)
> Dec 28 15:37:49 nut-server[192157]: 395.800339 [D2] mainloop:
> polling 4 filedescriptors
> Dec 28 15:37:49 nut-server[192157]: 395.800547 [D6] Entering
> check_command: USERNAME
> Dec 28 15:37:49 nut-server[192157]: 395.800570 [D6]
> check_command: Calling command handler for USERNAME
> Dec 28 15:37:49 nut-server[192157]: 395.800616 [D5]
> ssl_write ret=3
> Dec 28 15:37:49 nut-server[192157]: 395.800638 [D2] write:
> [destfd=9] [len=3] [OK]
> Dec 28 15:37:49 nut-server[192157]: 395.800657 [D2] mainloop:
> polling 4 filedescriptors
> Dec 28 15:37:49 nut-server[192157]: 395.800696 [D6] Entering
> check_command: PASSWORD
> Dec 28 15:37:49 nut-server[192157]: 395.800716 [D6]
> check_command: Calling command handler for PASSWORD
> Dec 28 15:37:49 nut-server[192157]: 395.800751 [D4] Sending
> error [INVALID-ARGUMENT] to client 127.0.0.1
> Dec 28 15:37:49 nut-server[192157]: 395.800794 [D5]
> ssl_write ret=21
> Dec 28 15:37:49 nut-server[192157]: 395.800814 [D2] write:
> [destfd=9] [len=21] [ERR INVALID-ARGUMENT]
> Dec 28 15:37:49 nut-server[192157]: 395.800834 [D2] mainloop:
> polling 4 filedescriptors
> Dec 28 15:37:49 upsd[192157]: [D2] mainloop: polling 4 filedescriptors
> Dec 28 15:37:49 upsd[192157]: [D6] Entering check_command: USERNAME
> Dec 28 15:37:49 upsd[192157]: [D6] check_command: Calling command
> handler for USERNAME
> Dec 28 15:37:49 upsd[192157]: [D5] ssl_write ret=3
> Dec 28 15:37:49 upsd[192157]: [D2] write: [destfd=9] [len=3] [OK]
> Dec 28 15:37:49 upsd[192157]: [D2] mainloop: polling 4 filedescriptors
> Dec 28 15:37:49 upsd[192157]: [D6] Entering check_command: PASSWORD
> Dec 28 15:37:49 upsd[192157]: [D6] check_command: Calling command
> handler for PASSWORD
> Dec 28 15:37:49 upsd[192157]: [D4] Sending error [INVALID-ARGUMENT] to
> client 127.0.0.1
> Dec 28 15:37:49 upsd[192157]: [D5] ssl_write ret=21
> Dec 28 15:37:49 upsd[192157]: [D2] write: [destfd=9] [len=21] [ERR
> INVALID-ARGUMENT]
> Dec 28 15:37:49 upsd[192157]: [D2] mainloop: polling 4 filedescriptors
>
>
>
> Do you know what is triggering this?
>
> --
> Orion Poplawski
> he/him/his - surely the least important thing about me
> IT Systems Manager 720-772-5637
> NWRA, Boulder/CoRA Office FAX: 303-415-9702
> 3380 Mitchell Lane orion at nwra.com <mailto:orion at nwra.com>
> Boulder, CO 80301 https://www.nwra.com/ <https://www.nwra.com/>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> <mailto:Nut-upsuser at alioth-lists.debian.net>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
> <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser>
>
--
Orion Poplawski
he/him/his - surely the least important thing about me
IT Systems Manager 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion at nwra.com
Boulder, CO 80301 https://www.nwra.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3847 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20221229/052fd547/attachment.bin>
More information about the Nut-upsuser
mailing list