-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred Remote manager daemon uses an unsupported version of GMP. The GMP version was 22.5 #1121
Comments
Hi, I am sorry but I am not able to reproduce your issue
import sys
from gvm.connections import UnixSocketConnection
from gvm.protocols.gmp import Gmp
from gvm.transforms import EtreeTransform
from gvm.xml import pretty_print
connection = UnixSocketConnection(path=sys.argv[1])
transform = EtreeTransform()
with Gmp(connection, transform=transform) as gmp:
# Retrieve GMP version supported by the remote daemon
version = gmp.get_version()
# Prints the XML in beautiful form
pretty_print(version)
<get_version_response status="200" status_text="OK">
<version>22.5</version>
</get_version_response> If GMP 22.5 isn't supported the same error message would have been raised. |
If I understand correctly the code, the error is that the remote is 22.5 |
The error is, the remote GMP version of gvmd is at 22.5 and your imported python-gvm version doesn't support 22.5. But the current release of python-gvm (24.1.0) supports GMP 22.5 as my code example shows. Thus I suspect your python environment doesn't contain the latest release of python-gvm. |
To print the version of python-gvm in your current environment you can use the following snippet.
|
I got 23.5.1, but I dont understand why, it is a fresh docker and the pip install show: |
I found why, a docker volume was masking the install directory. Sorry |
I am with the same error here: Traceback (most recent call last): My GVM are up-to-date (GVM-23.11.0) and my python-gvm are 24.3.0 Im not using docker BTW |
If you have python-gvm >= 23.12.0 installed in the correct Python environment you have support for GMP 22.5 https://github.com/greenbone/python-gvm/releases/tag/v23.12.0 |
Thanks for the reply So, i created the gmp.py file with the code you provided, and tried run the command again, and i got this other error. Traceback (most recent call last): I dont think just changing the code will fix the problem, do you have any other solution? BTW... My environment are the following ##KALI ##GVM It seems like your GVM-23.11.0 installation is OK. ##GVM-TOOLS ##THE PROBLEM sudo -u _gvm gvm-script --gmp-username user --gmp-password "P@ss" socket --socketpath /var/run/gvmd/gvmd.sock /tmp/gen_report.py 15ce5f51-431f-445a-a4d3-b65dd1d0d61f /tmp/report.xml This command will generate a XML that later I can use openvasreporting to generate the xlsx |
With up to date python-gvm (python_gvm-24.1.0-py3-none-any.whl), I have:
An error occurred Remote manager daemon uses an unsupported version of GMP. The GMP version was 22.5
when doing
with Gmp(connection=connection, transform=transform) as gmp:
gmp.authenticate(username, password)
The running openvas is up to date using the official docker-compose.yml
The text was updated successfully, but these errors were encountered: