NASL reporting back errors

During scans I see a lot of:

lib  nasl:MESSAGE:2019-11-27 11h44.14 utc:44749: [44749](/var/lib/openvas/plugins/gb_default_credentials_options.nasl:92) script_get_preference_file_content: could not get  size of file from preference Credentials file:
lib  nasl:MESSAGE:2019-11-27 11h44.15 utc:44780: [44780](/var/lib/openvas/plugins/gb_default_credentials_options.nasl:92) script_get_preference_file_content: could not get  size of file from preference Credentials file:

What’s missing/not set here?
GVM11

I have the same message in my logs. Tried several fresh installs against different targets, and I always get this one too. Happens with different nasl scripts.

Probably the only way to find out what the problem is would be to manually debug each nasl script causing this error with the openvas-nasl command.

Something like:

openvas-nasl -X -B -d -i /opt/gvm/var/lib/openvas/plugins/ -t target_IP gb_default_credentials_options.nasl

I’m still trying to find out but no luck so far…

Now I’m getting the NASL script name in the log:

lib  nasl:MESSAGE:2020-03-04 15h52.45 utc:88545: [88545](/var/lib/openvas/plugins/Policy/gb_policy_cpe.nasl:65) script_get_preference_file_content: could not get  size of
file from preference CPE List
lib  nasl:MESSAGE:2020-03-04 15h52.52 utc:89369: [89369](/var/lib/openvas/plugins/nmap.nasl:142) script_get_preference_file_content: could not get  size of file from prefe
rence File containing grepable results :
lib  nasl:MESSAGE:2020-03-04 15h53.04 utc:90965: [90965](/var/lib/openvas/plugins/gb_default_credentials_options.nasl:92) script_get_preference_file_content: could not get
  size of file from preference Credentials file:

Please note that debugging the nasl scripts won’t help as the problem is originating from GVM which seems to have problems with this script_preferences since GVM-11.