Not able to generate reports after migrating DB to new system

Use this category only if you have build GVM from sources or if you use packages provided by a 3rdparty repository.

Please read About the Greenbone Source Edition (GSE) and About GVM Architecture before posting.

When posting you should provide information about your environment using the following template:

GVM versions

gsad: Greenbone Security Assistant 21.4.1~dev1
gvmd: Greenbone Vulnerability Manager 21.4.2~git-09bdb532f-HEAD
openvas-scanner: OpenVAS 21.4.1~git-81c6a4e8-HEAD


Operating system:
Kernel: 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Installation method / source: SOURCE

I have installed v21 from sources and i have migrated the database form the previous v11 first to v20 and now to v21.

The database is fine and all hosts and scans are in it but i cannot generate any reports. The error that i am getting is
md manage:WARNING:2021-10-13 12h16.59 UTC:15409: run_report_format_script: No generate script found at /opt/gvm/var/lib/gvm/gvmd/report_formats/generate

Is there any command that i can run to regenerate the report formats?

if i try to modify the settings
gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value b1164211-50c4-43f0-ade5-32b3c2f5d2e1

i get the following error

md main:MESSAGE:2021-10-13 12h33.36 utc:16018: Greenbone Vulnerability Manager version 21.4.2~git-09bdb532f-HEAD (GIT revision 09bdb532f-HEAD) (DB revision 242)
md manage: INFO:2021-10-13 12h33.36 utc:16018: Modifying setting.
md manage:WARNING:2021-10-13 12h33.36 utc:16018: copy_report_format_dir: report format directory /opt/gvm/share/gvm/gvmd/report_formats/c15ad349-bd8d-457a-880a-c7056532ee15 not found
md manage:WARNING:2021-10-13 12h33.36 utc:16018: migrate_predefined_report_formats: failed at report format c15ad349-bd8d-457a-880a-c7056532ee15

If i look in the system i see the report formats so no error there



Copy report formats to /opt/gvm/share/gvm/gvmd/report_formats/ and change the feed owner and it will pick up the reports


Hi @alex.mateescu :grinning:

Glad you got it working and thanks for sharing the solution. :grinning: