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

gvm-portnames-update points to the wrong db path #343

Closed
pyron83 opened this issue Jan 23, 2019 · 4 comments
Closed

gvm-portnames-update points to the wrong db path #343

pyron83 opened this issue Jan 23, 2019 · 4 comments
Labels
wontfix This will not be worked on

Comments

@pyron83
Copy link

pyron83 commented Jan 23, 2019

Expected behavior

the script 'gvm-portnames-update' should update the gvm database with new port names from IANA website at "http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml".
NB: i found a similar issue with title "gvm-portnames-update has a hardcoded old db name (tasks) #175" but is closed. I found that the problem is still present.

Current behavior

the script works, but it points to the wrong path
`root@debian-test:/usr/local/src/gse/openvas-scanner/build# /usr/local/sbin/gvm-portnames-update
Update port names data from a port names XML file.

Currently supports the official IANA Services Names list.
In order to update the DB, download the port names list and
provide its path as an argument to this script.
$ wget http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
$ openvas-portnames-update service-names-port-numbers.xml
$ rm service-names-port-numbers.xml
--2019-01-10 16:44:04-- http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
Length: unspecified [text/xml]
Saving to: ‘service-names-port-numbers.xml’

service-names-port-numbers.xml [ <=> ] 3.52M 541KB/s in 6.7s

2019-01-10 16:44:11 (541 KB/s) - ‘service-names-port-numbers.xml’ saved [3690073]

root@debian-test:/usr/local/src/gse/openvas-scanner/build# /usr/local/sbin/gvm-portnames-update service-names-port-numbers.xml
/usr/local/var/lib/openvas/gvmd/gvmd.db not found. Rebuild DB before updating port names.
`
but "/usr/local/var/lib/openvas/gvmd/gvmd.db "is the wrong path, the right path is "/usr/local/var/lib/gvm/gvmd/gvmd.db"

Steps to reproduce

see above

Environment

gsa: (gsad --version)
Greenbone Security Assistant 8.0+beta3
GIT revision 29acdd6-master

gvm: (gvmd --version)
Greenbone Vulnerability Manager 8.0+beta2
GIT revision 6e48194-master

openvas-scanner: (openvassd --version)
OpenVAS Scanner 6.0+beta3
GIT revision 6f209c9-master

gvm-libs:
gvm-libs 1.0+beta2 (2018-12-04)
Environment

Operating system:
Debian 9.6

Installation method / source: (packages, source installation)
git source installation

@pyron83 pyron83 changed the title gvm-portnames-update points to the wron db path gvm-portnames-update points to the wrong db path Jan 23, 2019
@danielpugh
Copy link

identical results for me using git clone from yesterday

@M1chael
Copy link

M1chael commented Feb 19, 2019

While waiting for the fix you can use workaround with symlink:

mkdir /usr/local/var/lib/openvas/gvmd/
ln -s /usr/local/var/lib/gvm/gvmd/gvmd.db /usr/local/var/lib/openvas/gvmd/gvmd.db
gvm-portnames-update service-names-port-numbers.xml
Updated 11514 entries.

@cfi-gb
Copy link
Member

cfi-gb commented Jul 1, 2020

Note that this functionality is gone completely in master / 20.08 with #1041 (Rationale in #1041 (comment)), there might be no fixes for this done.

@cfi-gb
Copy link
Member

cfi-gb commented Apr 28, 2021

GVM versions < 20.08 are already EOL since the end of 2020. Closing this as won't fix as the tool doesn't exist anymore in any supported version.

@cfi-gb cfi-gb closed this as completed Apr 28, 2021
@cfi-gb cfi-gb added the wontfix This will not be worked on label Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants