Ospd_openvas module issue while GVM 21.04 upgradation

While upgrading the GVM from 20.08 to 21.04 .
Upgrade 20.08 to 21.04.
Followed the simple upgradation step as mentioned in the above ticket .

But when i start the ospd-openvas service , i get an error as below
systemctl start ospd-openvas
Job for ospd-openvas.service failed because the control process exited with error code.
See “systemctl status ospd-openvas.service” and “journalctl -xe” for details.

    journalctl -xe
May 12 20:18:34  systemd[1]: ospd-openvas.service: Scheduled restart job, restart counter is at 711.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit ospd-openvas.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
May 12 20:18:34  systemd[1]: Stopped Job that runs the ospd-openvas daemon.
-- Subject: A stop job for unit ospd-openvas.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A stop job for unit ospd-openvas.service has finished.
--
-- The job identifier is 65427 and the job result is done.
May 12 20:18:34  systemd[1]: Starting Job that runs the ospd-openvas daemon...
-- Subject: A start job for unit ospd-openvas.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit ospd-openvas.service has begun execution.
--
-- The job identifier is 65427.
May 12 20:18:38  python[27834]: Traceback (most recent call last):
May 12 20:18:38  python[27834]:   File "/opt/gvm/bin/ospd-scanner/bin/ospd-openvas", line 6, in <module>
May 12 20:18:38  python[27834]:     from ospd_openvas.daemon import main
May 12 20:18:38  python[27834]: **ModuleNotFoundError: No module named 'ospd_openvas'**
May 12 20:18:38  systemd[1]: ospd-openvas.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit ospd-openvas.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
May 12 20:18:38  systemd[1]: ospd-openvas.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit ospd-openvas.service has entered the 'failed' state with result 'exit-code'.
May 12 20:18:38 oai-step-vulnerability systemd[1]: Failed to start Job that runs the ospd-openvas daemon.
-- Subject: A start job for unit ospd-openvas.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit ospd-openvas.service has finished with a failure.
--
-- The job identifier is 65427 and the job result is failed.

Hi

I have installed ospd_openvas successfullly .
pip3 install . Processing /opt/gvm/src/ospd-openvas Installing build dependencies ... done Requirement already satisfied: ospd>=21.4.0 in /opt/gvm/.local/lib/python3.7/site-packages (from ospd-openvas==21.4.0) (21.4.0) Collecting redis>=3.0.1 (from ospd-openvas==21.4.0) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/a7/7c/24fb0511df653cf1a5d938d8f5d19802a88cef255706fdda242ff97e91b7/redis-3.5.3-py2.py3-none-any.whl (72kB) 100% |████████████████████████████████| 81kB 1.2MB/s Requirement already satisfied: psutil in /usr/lib/python3/dist-packages (from ospd-openvas==21.4.0) (5.5.1) Collecting packaging (from ospd-openvas==21.4.0) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl (40kB) 100% |████████████████████████████████| 40kB 828kB/s Requirement already satisfied: paramiko in /opt/gvm/.local/lib/python3.7/site-packages (from ospd>=21.4.0->ospd-openvas==21.4.0) (2.7.2) Requirement already satisfied: defusedxml in /opt/gvm/.local/lib/python3.7/site-packages (from ospd>=21.4.0->ospd-openvas==21.4.0) (0.6.0) Requirement already satisfied: lxml in /opt/gvm/.local/lib/python3.7/site-packages (from ospd>=21.4.0->ospd-openvas==21.4.0) (4.6.1) Requirement already satisfied: deprecated in /opt/gvm/.local/lib/python3.7/site-packages (from ospd>=21.4.0->ospd-openvas==21.4.0) (1.2.12) Collecting pyparsing>=2.0.2 (from packaging->ospd-openvas==21.4.0) Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl Requirement already satisfied: bcrypt>=3.1.3 in /usr/lib/python3/dist-packages (from paramiko->ospd>=21.4.0->ospd-openvas==21.4.0) (3.1.6) Requirement already satisfied: pynacl>=1.0.1 in /usr/lib/python3/dist-packages (from paramiko->ospd>=21.4.0->ospd-openvas==21.4.0) (1.3.0) Requirement already satisfied: cryptography>=2.5 in /usr/lib/python3/dist-packages (from paramiko->ospd>=21.4.0->ospd-openvas==21.4.0) (2.6.1) Requirement already satisfied: wrapt<2,>=1.10 in /opt/gvm/.local/lib/python3.7/site-packages (from deprecated->ospd>=21.4.0->ospd-openvas==21.4.0) (1.12.1) Building wheels for collected packages: ospd-openvas Running setup.py bdist_wheel for ospd-openvas ... done Stored in directory: /opt/gvm/.cache/pip/wheels/b8/ce/aa/27381017ab269d26d5caf0ec9e21a78caddf1a33b049e3e989 Successfully built ospd-openvas Installing collected packages: redis, pyparsing, packaging, ospd-openvas Successfully installed ospd-openvas-21.4.0 packaging-20.9 pyparsing-2.4.7 redis-3.5.3

But i see the below error while starting the osp-openvas service .
ModuleNotFoundError: No module named ‘ospd_openvas’

Can anyone point out what might be missing ? or how this error can be resolved ?

Thanks

I was trying to install the ospd and ospd-openvas packages in python3.8 .
But the installation worked when python3.7 environment was used .

please close this query

Thanks