Cannot start a scan task with task wizard: Failed to find port_list ‘33d0cd82-57c6-11e1-8ed1-406186ea4fc5‘

Hi,

I installed a new GVM and want to try it with task wizard, but it shows:

Failed to find port_list ‘33d0cd82-57c6-11e1-8ed1-406186ea4fc5‘

I tried solution in this post but not work:

I can find the xml under /var/lib/gvm/data-objects/gvmd/22.04/port-lists:

all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml all-tcp-and-nmap-top-100-udp-730ef368-57e2-11e1-a90f-406186ea4fc5.xml
all-iana-assigned-tcp-and-udp-4a4717fe-57d2-11e1-9a26-406186ea4fc5.xml

What should I do to resolve this?

Version info:
Greenbone Vulnerability Manager 21.4.5
Greenbone Security Assistant 21.4.4
Kali 2022.3

First of all you should check if you have NVTs by looking at the corresponding web page in the Greenbone Security Assistant. If not your feed sync isn’t finished. In that case take a look at Building 21.4 from Source - Greenbone Community Documentation for some background about the feed sync. Be aware that with the Kali packages the sudo user should be _gvm instead of gvm.

1 Like

All my feed status are current
and background feed sync was done before.

Could you try deleting the /var/lib/gvm/data-objects/gvmd directory and re-running a GVMD_DATA sync (should be sudo -u _gvm greenbone-feed-sync --type GVMD_DATA)?

Hi bricks,

I deleted the folder and re-sync GVMD_DATA again, but it’s not work
any information can I provide to help on my problem?
Thanks.

Could you paste the output of find /var/lib/gvm/data-objects/gvmd -name "*.xml"?

Here is find result:

$ find /var/lib/gvm/data-objects/gvmd -name “*.xml”
/var/lib/gvm/data-objects/gvmd/feed.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/policy-huawei-datacom-aab5c4a1-eab1-4f4e-acac-8c36d08de6bc.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/discovery-8715c877-47a0-438d-98a3-27c7a6ab2196.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/policy_euleros_20200909_0362e8f6-d7cc-4a12-8768-5f2406713860.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/system-discovery-bbca7412-a950-11e3-9109-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/host-discovery-2d3f051c-55ba-11e3-bf43-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/policy-it-grundschutz-c4b7c0cb-6502-4809-b034-8e635311b3e6.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/empty-085569ce-73ed-11df-83c3-002264764cea.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/base-d21f6c81-2b88-4ac1-b7b4-a2a9f2ad4663.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/full-and-fast-daba56c8-73ec-11df-a475-002264764cea.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/policy-opengauss-c2b049f9-6d3d-45be-871f-2252895ed9e8.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/policy-gaussdbkernel-2eec8313-fee4-442a-b3c4-fa0d5dc83d61.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/log4j-vulnerabilities_e3efebc5-fc0d-4cb6-b1b4-55309d0a89f6.xml
/var/lib/gvm/data-objects/gvmd/22.04/scan-configs/policy_gaussdb_20200909_61327f09-8a54-4854-9e1c-16798285fb28.xml
/var/lib/gvm/data-objects/gvmd/22.04/port-lists/all-iana-assigned-tcp-and-udp-4a4717fe-57d2-11e1-9a26-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/port-lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/port-lists/all-tcp-and-nmap-top-100-udp-730ef368-57e2-11e1-a90f-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/report-formats/itg-77bd6c4a-1f62-11e1-abf0-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/report-formats/txt-a3810a62-1f62-11e1-9219-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/report-formats/anonymous-xml-5057e5cc-b825-11e4-9d0e-28d24461215b.xml
/var/lib/gvm/data-objects/gvmd/22.04/report-formats/pdf-c402cc3e-b531-11e1-9163-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/report-formats/csv-results-c1645568-627a-11e3-a660-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/22.04/report-formats/xml-a994b278-1f62-11e1-96ac-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/port_lists/all-iana-assigned-tcp-and-udp-4a4717fe-57d2-11e1-9a26-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/port_lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/port_lists/all-tcp-and-nmap-top-100-udp-730ef368-57e2-11e1-a90f-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/report_formats/itg-77bd6c4a-1f62-11e1-abf0-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/report_formats/txt-a3810a62-1f62-11e1-9219-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/report_formats/anonymous-xml-5057e5cc-b825-11e4-9d0e-28d24461215b.xml
/var/lib/gvm/data-objects/gvmd/21.04/report_formats/pdf-c402cc3e-b531-11e1-9163-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/report_formats/csv-results-c1645568-627a-11e3-a660-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/report_formats/xml-a994b278-1f62-11e1-96ac-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/policy-huawei-datacom-aab5c4a1-eab1-4f4e-acac-8c36d08de6bc.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/discovery-8715c877-47a0-438d-98a3-27c7a6ab2196.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/policy_euleros_20200909_0362e8f6-d7cc-4a12-8768-5f2406713860.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/system-discovery-bbca7412-a950-11e3-9109-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/host-discovery-2d3f051c-55ba-11e3-bf43-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/policy-it-grundschutz-c4b7c0cb-6502-4809-b034-8e635311b3e6.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/empty-085569ce-73ed-11df-83c3-002264764cea.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/base-d21f6c81-2b88-4ac1-b7b4-a2a9f2ad4663.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/full-and-fast-daba56c8-73ec-11df-a475-002264764cea.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/policy-opengauss-c2b049f9-6d3d-45be-871f-2252895ed9e8.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/policy-gaussdbkernel-2eec8313-fee4-442a-b3c4-fa0d5dc83d61.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/log4j-vulnerabilities_e3efebc5-fc0d-4cb6-b1b4-55309d0a89f6.xml
/var/lib/gvm/data-objects/gvmd/21.04/configs/policy_gaussdb_20200909_61327f09-8a54-4854-9e1c-16798285fb28.xml
/var/lib/gvm/data-objects/gvmd/20.08/port_lists/all-iana-assigned-tcp-and-udp-4a4717fe-57d2-11e1-9a26-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/port_lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/port_lists/all-tcp-and-nmap-top-100-udp-730ef368-57e2-11e1-a90f-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/report_formats/itg-77bd6c4a-1f62-11e1-abf0-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/report_formats/txt-a3810a62-1f62-11e1-9219-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/report_formats/anonymous-xml-5057e5cc-b825-11e4-9d0e-28d24461215b.xml
/var/lib/gvm/data-objects/gvmd/20.08/report_formats/pdf-c402cc3e-b531-11e1-9163-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/report_formats/csv-results-c1645568-627a-11e3-a660-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/report_formats/xml-a994b278-1f62-11e1-96ac-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/policy-huawei-datacom-aab5c4a1-eab1-4f4e-acac-8c36d08de6bc.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/discovery-8715c877-47a0-438d-98a3-27c7a6ab2196.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/policy_euleros_20200909_0362e8f6-d7cc-4a12-8768-5f2406713860.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/system-discovery-bbca7412-a950-11e3-9109-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/host-discovery-2d3f051c-55ba-11e3-bf43-406186ea4fc5.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/policy-it-grundschutz-c4b7c0cb-6502-4809-b034-8e635311b3e6.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/empty-085569ce-73ed-11df-83c3-002264764cea.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/base-d21f6c81-2b88-4ac1-b7b4-a2a9f2ad4663.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/full-and-fast-daba56c8-73ec-11df-a475-002264764cea.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/policy-opengauss-c2b049f9-6d3d-45be-871f-2252895ed9e8.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/policy-gaussdbkernel-2eec8313-fee4-442a-b3c4-fa0d5dc83d61.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/log4j-vulnerabilities_e3efebc5-fc0d-4cb6-b1b4-55309d0a89f6.xml
/var/lib/gvm/data-objects/gvmd/20.08/configs/policy_gaussdb_20200909_61327f09-8a54-4854-9e1c-16798285fb28.xml

At least the port list is on your disk. You could try to run sudo -u _gvm gvmd --rebuild-gvmd-data=all which should reload the files from the disk.

1 Like

It works, thank you very much!

1 Like

Hello, ich have the same problem as discussed above - i installed OpenVAS and get the same error message whe i try to do create a scan:

Failed to find port_list '33d0cd82-57c6-11e1-8ed1-406186ea4fc5'

So i tried the recommmedations from this thread:

  • I was able to find the xml under /var/lib/gvm/data-objects/gvmd/22.04/port-lists:
-rw-rw-r-- 1 gvm gvm 123K Apr 12 12:03 all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml
-rw-rw-r-- 1 gvm gvm 235K Apr 12 12:03 all-iana-assigned-tcp-and-udp-4a4717fe-57d2-11e1-9a26-406186ea4fc5.xml
-rw-rw-r-- 1 gvm gvm  11K Apr 12 12:03 all-tcp-and-nmap-top-100-udp-730ef368-57e2-11e1-a90f-406186ea4fc5.xml
  • All my feed status are current

  • I deleted the /var/lib/gvm/data-objects/gvmd directory and did the re-running a GVMD_DATA sync
    sudo -u gvm greenbone-feed-sync --type GVMD_DATA

  • I did:
    sudo -u gvm gvmd --rebuild-gvmd-data=all

What else can i do to fix this in my case?

Version info:
Greenbone Vulnerability Manager 22.4.2
Greenbone Security Assistant 22.04.1
Ubuntu 20.04.6

i did the installation after the following instruction path:
https://greenbone.github.io/docs/latest/22.4/source-build/index.html

Thank you for all your help and comments!

I’m getting that same error too can anyone help us?

Make sure to follow Building 22.4 from Source - Greenbone Community Documentation step by step and to not miss any of these.

Some common known problems causing this:

  1. The Feed Import Owner wasn’t set
  2. Feed wasn’t fully / correctly synced
  3. Started a scan too early while the data rebuild in the database is still in progress (this might take quite some time)

More info:

1 Like

Hey! I tried to run the above command sudo -u _gvm gvmd --rebuild-gvmd-data=all and got this error:
Failed to rebuild gvmd data: Feed owner not set or invalid while rebuilding configs.

I can’t find a good fix for this online. Lower in this post it mentions that’s one of the main issues but I can’t find a good way to fix it haha. Any help is appreciated!

Thanks!

1 Like

@bricks if i don’t have below .xml file in my disk, what can i do? thanks.

/var/lib/gvm/data-objects/gvmd/21.04/port_lists/all-iana-assigned-tcp-33d0cd82-57c6-11e1-8ed1-406186ea4fc5.xml

Hi, please don’t re-use a four year old topic and instead create a new one.

1 Like