Skip to content
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

error: could not find Cargo.toml with openvas scanner >= v23.10.0 #9

Open
scumola opened this issue Nov 6, 2024 · 1 comment
Open

Comments

@scumola
Copy link

scumola commented Nov 6, 2024

root@openvas:/var/log/gvm# tail gvmd.log
md manage:WARNING:2024-11-06 19h31.37 utc:1549: sql_open: PQerrorMessage (conn): connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  role "gvm" does not exist
md manage:WARNING:2024-11-06 19h31.37 utc:1549: init_manage_open_db: sql_open failed
md   main:MESSAGE:2024-11-06 19h31.37 utc:1569:    Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage:WARNING:2024-11-06 19h31.37 utc:1569: sql_open: PQconnectPoll failed
md manage:WARNING:2024-11-06 19h31.37 utc:1569: sql_open: PQerrorMessage (conn): connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  role "gvm" does not exist
md manage:WARNING:2024-11-06 19h31.37 utc:1569: init_manage_open_db: sql_open failed
md   main:MESSAGE:2024-11-06 19h31.37 utc:1571:    Greenbone Vulnerability Manager version 24.0.0 (DB revision 256)
md manage:WARNING:2024-11-06 19h31.37 utc:1571: sql_open: PQconnectPoll failed
md manage:WARNING:2024-11-06 19h31.37 utc:1571: sql_open: PQerrorMessage (conn): connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  role "gvm" does not exist
md manage:WARNING:2024-11-06 19h31.37 utc:1571: init_manage_open_db: sql_open failed
root@openvas:/var/log/gvm# 

@itiligent
Copy link
Owner

itiligent commented Nov 8, 2024

This is not a ubuntu or debian issue, I have updated the title for clarity.
I can confirm that something has fundamentally changed in the rust component of openvas-scanner and openvasd. (GVM devs do this from time to time and dont update their docs very quickly.)
I have posted query to the greenbone forum here:
A workaround until I can get more info and adapt the script is to simply downgrade openvas scanner module to a version only about a month older.
Edit near the top of the script FORCE_OPENVAS_SCANNER_VERSION="23.9.0" and run the script manually. Tested ok on ubuntu 22/24/Debian12

@itiligent itiligent changed the title New install on Ubuntu 22.04, gvmd doesn't start error: could not find Cargo.toml with openvas scanner >= v23.10.0 Nov 8, 2024
itiligent added a commit that referenced this issue Nov 8, 2024
itiligent added a commit that referenced this issue Nov 8, 2024
Update openvas-install.sh

Update openvas-install.sh

issue #9 temp workaround
itiligent added a commit that referenced this issue Nov 8, 2024
Update openvas-install.sh

Update openvas-install.sh

issue #9 temp workaround
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants