[SOLVED] WUA scan failure: JSONDecodeError

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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

November 17, 2022 - 4:04 PM

Hello everyone.

When running a WUA scan on a Windows 7 Pro machine (on which it had worked fine until now), the scan immediately fails with this message:

Code: Select all

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1894, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 699, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 230, in _run
    with WaptWUA(self.wapt) as wua:
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 462, in __init__
    self.load_windows_updates_rules_from_packages()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 475, in load_windows_updates_rules_from_packages
    self.windows_updates_rules.merge_rules_from_files(makepath(p['persistent_dir'], 'waptwua_rules.json'))
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 229, in merge_rules_from_files
    rules = json.load(open(json_fn, 'r'))
  File "json\__init__.py", line 293, in load
  File "json\__init__.py", line 357, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Any idea what might happen?
Last edited by t.heroult on Dec 5, 2022 - 12:47, edited 1 time.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

November 25, 2022 - 10:39

No idea?
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 25, 2022 - 5:04 PM

It appears to be a corrupted waptwua_rules.json file (which is not actually a JSON file)

present

Code: Select all

C:\Program Files (x86)\wapt\private\persistent\?\waptwua_rules.json
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

December 5, 2022 - 12:47

Hello,

the problem has finally disappeared on its own. :)
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
Locked