sseapi failed to load after upgrading from vRealize Automation Config 8.11.x to Aria Automation Config 8.x
search cancel

sseapi failed to load after upgrading from vRealize Automation Config 8.11.x to Aria Automation Config 8.x

book

Article ID: 369295

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • After upgrading from vRealize Automation Config 8.11.x to Aria Automation Config 8.x, in /var/log/salt/master, there is error as below:
    2024-06-06 02:42:51,612 [salt.utils.event :1328][ERROR   ][4862] Could not store return for event(s) - returner 'sseapi.event_return' not found.
  • If set 'log_level_logfile' in /etc/salt/master to 'trace' then restart salt-master by "systemctl restart salt-master", error below can be found in log /var/log/salt/master

    2024-06-06 06:30:17,393 [salt.loader.lazy :785 ][DEBUG   ][5299] Failed to import fileserver sseapi_fs:
    Traceback (most recent call last):
    File "/usr/lib/python3.7/site-packages/salt/loader/lazy.py", line 768, in _load_module
      mod = self.run(spec.loader.load_module)
    File "/usr/lib/python3.7/site-packages/salt/loader/lazy.py", line 1228, in run
      return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
    File "/usr/lib/python3.7/site-packages/salt/loader/lazy.py", line 1243, in _run_as
      return _func_or_method(*args, **kwargs)
    File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper
    File "<frozen importlib._bootstrap_external>", line 907, in load_module
    File "<frozen importlib._bootstrap_external>", line 732, in load_module
    File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
    File "<frozen importlib._bootstrap>", line 696, in _load
      File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 728, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "/usr/lib/python3.7/site-packages//sseape/fileserver/sseapi_fs.py", line 34, in <module>
      from sseapiclient.exc import NotConnectable, RPCError
    File "/usr/lib/python3.7/site-packages/sseapiclient/__init__.py", line 4, in <module>
      from sseapiclient.apiclient import APIClient, RPCResponse
    File "/usr/lib/python3.7/site-packages/sseapiclient/apiclient.py", line 12, in <module>
      import sseapiclient.httpclient
    File "/usr/lib/python3.7/site-packages/sseapiclient/httpclient.py", line 36, in <module>
      import jwt  # pylint: disable=wrong-import-order
    ModuleNotFoundError: No module named 'jwt'
  • Execut "pip3 list", neither "pika" nor "PyJWT" can be found from the output

Environment

This issue can happen when upgrading vRealize Automation Config 8.11.x to Aria Automation Config 8.x.

Cause

pika and PyJWT are missing in vRealize Automation Config 8.11, which are not included in the upgrade pak either.

Resolution

1. Upgrade vRealize Automation Config 8.11.x to Aria Automation Config 8.x on Aria Lifecycle Manager

2. Download Python libraries pika and PyJWT , then upload these two *.whl files to Aria Automation Config

3. Install whl files by command: pip3 install xxx.whl  -- during installation, the system will try to connect pypi.org, it can be terminated by "CTRL+C" after "Installation succeeded" displayed

4. Restart Aria Automation Config virtual machine.