Remote closed the connection [gvm-cli] while fetching reports

I am trying to use GVM-cli by reading the documentation here
https://docs.greenbone.net/GSM-Manual/gos-4/en/omp.html

I was able to create target, create task , start task, view task status, get report format but while trying to get report I get

pi@Pi-home:~$ sudo gvm-cli socket --gmp-username usernameHere --gmp-password password_Here --sockpath /usr/local/var/run/gvmd.sock --xml ‘<get_reports report_id=“eed288da-85c9-4937-8954-4fe31792f446”
format_id=“9087b18c-626c-11e3-8892-406186ea4fc5”/>’

Remote closed the connection

Previous command that was successful in case they are needed:

pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml "<create_target>Suspect Host\

1.1.1.1</create_target>"

<create_target_response status=“201” status_text=“OK, resource created” id=“04997cb7-2703-44f3-bd2b-b306b3fdbb75”/>
pi@pi-home:~$
pi@pi-home:~$
pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml “<get_configs/>”
<get_configs_response status=“200” status_text=“OK”>DiscoveryNetwork Discovery scan configuration.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>160</family_count><nvt_count>26861</nvt_count>0emptyEmpty and static configuration template.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>00</family_count><nvt_count>00</nvt_count>0Full and fastMost NVT's; optimized by using previously collected information.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>1</in_use>get_configsget_configsget_configsget_configs<family_count>621</family_count><nvt_count>492471</nvt_count>0Full and fast ultimateMost NVT's including those that can stop services/hosts; optimized by using previously collected information.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>621</family_count><nvt_count>492471</nvt_count>0Full and very deepMost NVT's; don't trust previously collected information; slow.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>621</family_count><nvt_count>492471</nvt_count>0Full and very deep ultimateMost NVT's including those that can stop services/hosts; don't trust previously collected information; slow.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>621</family_count><nvt_count>492471</nvt_count>0Host DiscoveryNetwork Host Discovery scan configuration.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>20</family_count><nvt_count>20</nvt_count>0System DiscoveryNetwork System Discovery scan configuration.<creation_time>2019-02-22T05:19:21Z</creation_time><modification_time>2019-02-22T05:19:21Z</modification_time>0<in_use>0</in_use>get_configsget_configsget_configsget_configs<family_count>60</family_count><nvt_count>300</nvt_count>0first=1 rows=1000 sort=namefirst=1rows=1000sort=namenameascending<config_count>888</config_count></get_configs_response>
pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml "<create_task>Scan Suspect Host \

<target id="04997cb7-2703-44f3-bd2b-b306b3fdbb75">
<config id="8715c877-47a0-438d-98a3-27c7a6ab2196"></create_task>"

<create_task_response status=“201” status_text=“OK, resource created” id=“5fb0135b-0198-4aaf-bc6d-b773b6cf709a”/>
pi@pi-home:~$
pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml ‘<start_task task_id=“5fb0135b-0198-4aaf-bc6d-b773b6cf709a”/>’

<start_task_response status=“202” status_text=“OK, request submitted”><report_id>eed288da-85c9-4937-8954-4fe31792f446</report_id></start_task_response>
pi@pi-home:~$
pi@pi-home:~$
pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml ‘<get_tasks task_id=“eed288da-85c9-4937-8954-4fe31792f446”/>’
(“Error in response. Failed to find task ‘eed288da-85c9-4937-8954-4fe31792f446’”, <Element get_tasks_response at 0xffffb11576c8>)
pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml ‘<get_tasks task_id=“5fb0135b-0198-4aaf-bc6d-b773b6cf709a”/>’

<get_tasks_response status=“200” status_text=“OK”><apply_overrides>0</apply_overrides>myuserHereScan Suspect Host<creation_time>2019-02-23T02:55:31Z</creation_time><modification_time>2019-02-23T02:56:37Z</modification_time>1<in_use>0</in_use>Everything0Discovery00Suspect Host0<hosts_ordering></hosts_ordering>OpenVAS Default20Done-1<report_count>11</report_count><next_time>over</next_time>0<schedule_periods>0</schedule_periods><last_report>2019-02-23T02:56:35Z<scan_start>2019-02-23T02:56:36Z</scan_start><scan_end>2019-02-23T02:56:44Z</scan_end><result_count>00010<false_positive>0</false_positive></result_count>0.0</last_report><average_duration>8</average_duration>Maximum concurrently executed NVTs per host<scanner_name>max_checks</scanner_name>10Maximum concurrently scanned hosts<scanner_name>max_hosts</scanner_name>30Network Source Interface<scanner_name>source_iface</scanner_name>Add results to Asset Management<scanner_name>in_assets</scanner_name>yesApply Overrides when adding Assets<scanner_name>assets_apply_overrides</scanner_name>yesMin QOD when adding Assets<scanner_name>assets_min_qod</scanner_name>70Auto Delete Reports<scanner_name>auto_delete</scanner_name>0Auto Delete Reports Data<scanner_name>auto_delete_data</scanner_name>0apply_overrides=0 min_qod=70 first=1 rows=10 sort=nameapply_overrides=0min_qod=70first=1rows=10sort=namenameascending<task_count>1211</task_count></get_tasks_response>
pi@pi-home:~$
pi@pi-home:~$
pi@pi-home:~$
pi@pi-home:~$
pi@pi-home:~$ sudo gvm-cli socket --gmp-username myuserHere --gmp-password password_Here --xml ‘<get_report_formats/>’
<get_report_formats_response status=“200” status_text=“OK”><report_format id=“5057e5cc-b825-11e4-9d0e-28d24461215b”>Anonymous XML<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingxml<content_type>text/xml</content_type>

Anonymous version of the raw XML reportComplete scan report in OpenVAS Manager XML format.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“910200ca-dc05-11e1-954f-406186ea4fc5”>ARF<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingxml<content_type>text/xml</content_type>Asset Reporting Format v1.0.0.NIST Asset Reporting Format 1.1 compliant document.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“5ceff8ba-1f62-11e1-ab9f-406186ea4fc5”>CPE<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingcsv<content_type>text/csv</content_type>Common Product Enumeration CSV table.CPE stands for Common Product Enumeration. It is a structured naming scheme for
information technology systems, platforms, and packages. In other words: CPE
provides a unique identifier for virtually any software product that is known for
a vulnerability.

The CPE dictionary is maintained by MITRE and NIST. MITRE also maintains CVE
(Common Vulnerability Enumeration) and other relevant security standards.

The report selects all CPE tables from the results and forms a single table
as a comma separated values file.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“9087b18c-626c-11e3-8892-406186ea4fc5”>CSV Hosts<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingcsv<content_type>text/csv</content_type>

CSV host summary.Base host information and result counts as comma separated values. Text fields starting with "=", "@", "+", "-" will have a single quote "'" added so spreadsheet software does not interpret them as formulas.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“c1645568-627a-11e3-a660-406186ea4fc5”>CSV Results<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingcsv<content_type>text/csv</content_type>CSV result list.List of results as comma separated values. Text fields starting with "=", "@", "+", "-" will have a single quote "'" added so spreadsheet software does not interpret them as formulas.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“77bd6c4a-1f62-11e1-abf0-406186ea4fc5”>ITG<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingcsv<content_type>text/csv</content_type>German "IT-Grundschutz-Kataloge" report.Tabular report on the German "IT-Grundschutz-Kataloge",
as published and maintained by the German Federal Agency for IT-Security.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“a684c02c-b531-11e1-bdc2-406186ea4fc5”>LaTeX<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingtex<content_type>text/plain</content_type>LaTeX source file.Report as LaTeX source file for further processing.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“9ca6fe72-1f62-11e1-9e7c-406186ea4fc5”>NBE<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingnbe<content_type>text/plain</content_type>Legacy OpenVAS report.The traditional OpenVAS Scanner text based format.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“c402cc3e-b531-11e1-9163-406186ea4fc5”>PDF<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingpdf<content_type>application/pdf</content_type>Portable Document Format report.Scan results in Portable Document Format (PDF).1yes2019-02-22T07:52:01Z1</report_format><report_format id=“9e5e5deb-879e-4ecc-8be6-a71cd0875cdd”>Topology SVG<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingsvg<content_type>image/svg+xml</content_type>Network topology SVG image.Scan results in topologic structure as scalable vector graphics.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“a3810a62-1f62-11e1-9219-406186ea4fc5”>TXT<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingtxt<content_type>text/plain</content_type>Plain text report.Plain text report, best viewed with fixed font size.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“c15ad349-bd8d-457a-880a-c7056532ee15”>Verinice ISM<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingvna<content_type>application/zip</content_type>Greenbone Verinice ISM Report, v3.0.0.Information Security Management Report for Verinice import, version 3.0.0.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“50c9950a-f326-11e4-800c-28d24461215b”>Verinice ITG<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingvna<content_type>application/zip</content_type>Greenbone Verinice ITG Report, v1.0.1.IT-Grundschutz Report for Verinice import, version 1.0.1.1yes2019-02-22T07:52:01Z1</report_format><report_format id=“a994b278-1f62-11e1-96ac-406186ea4fc5”>XML<creation_time>2019-02-22T05:19:22Z</creation_time><modification_time>2019-02-22T05:19:22Z</modification_time>0<in_use>0</in_use>Everythingxml<content_type>text/xml</content_type>Raw XML report.Complete scan report in OpenVAS Manager XML format.1yes2019-02-22T07:52:01Z1</report_format>first=1 rows=1000 sort=namefirst=1rows=1000sort=namenameascending<report_formats start=“1” max=“1000”/><report_format_count>141414</report_format_count></get_report_formats_response>

It seems the same topic is currently discussed in an existing thread linked below. To avoid having multiple threads open about the same topic i’m closing this thread as such. Please let me know directly if this isn’t the same problem and we can re-open this topic again.