[SOLVED] Ubuntu agent problem

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

March 7, 2025 - 10:39

INFO:

WAPT Server version: 2.6.0.16552
WAPT Agent version: 2.6.0
WAPT Console version: 2.6.0.16767
My admin PC version: Ubuntu 24.04

Good morning,

I have noticed for the past few days that actions are impossible on my Ubuntu system because of step Update server with this host's status erroneous with the following elements:

Code: Select all

'utf-8' codec can't decode byte 0x9f in position 1680: invalid start byte
Traceback (most recent call last):
  File "<string>", line 1684, in run
  File "/opt/wapt/waptservice/waptservice_common.py", line 870, in run
    self._run()
  File "/opt/wapt/waptservice/waptservice_common.py", line 1221, in _run
    self.result = self.wapt.update_server_status(force=self.force, excluded_keys=self.excluded_keys, errors = errors)
  File "/opt/wapt/common.py", line 6803, in update_server_status
    if not self.waptserver_available():
  File "/opt/wapt/common.py", line 6909, in waptserver_available
    return self.waptserver and self.waptserver.available()
  File "/opt/wapt/common.py", line 2076, in available
    with self.get_requests_session() as session:
  File "/opt/wapt/common.py", line 1738, in get_requests_session
    if self.client_private_key and is_pem_key_encrypted(self.client_private_key):
  File "/opt/wapt/waptutils.py", line 837, in is_pem_key_encrypted
    pem_content = f.read()
  File "/opt/wapt/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9f in position 1680: invalid start byte

utf-8' codec can't decode byte 0x9f in position 1680: invalid start byte : faulty string is 'b'-----BEGIN RSA PRIVATE KEY----........
Key problem even though there haven't been any changes?

Thank you in advance, best regards.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 7, 2025 - 1:50 PM

Are all Ubuntu installations in the same state?

It looks like the key pair in /opt/wapt/private is incorrectly encoded...
Should I delete it and then re-register to see if that helps?
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

March 7, 2025 - 2:12 PM

Hello,

this seems to fix the problem,

thank you, best regards.
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 10, 2025 - 09:51

Hi Thomas,

regarding the problem, it was quite obvious and the fix was fairly simple, but I'm still wondering how it could have happened. It's a file that's generated and read by Wapt, so I don't see how there could have been an encoding error at some point...

What version was the first Wapt agent installed on these machines?

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

March 12, 2025 - 4:28 PM

Hello,

I unfortunately no longer have the history for that post, but it must be version 2.5.5. In any case, since updating to the latest version of the agent and following the tip above, the problem is no longer present. Thank you.
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 28, 2025 - 12:28

Hi Thomas,

thanks for the feedback :-) , I'm marking the topic as resolved.

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked