List of exit messages for feed updates

Hello guys and gals,

I’m currently writing a bash script to manage all feed updates so I can run it in a cronjob and not lose so much time on feed updates. To account for as many options as possible and to increase the accuracy of the generated logs, I’d like to find out about the possible exit messages from the sync commands.

Currently I have found:
Sync in progress, exiting.
Feed is already current, skipping synchronization.
…and of course that there’s no message if nothing went wrong.

Are there any other messages connected to the exit status of feed updates, especially for errors connected to rsync? Thanks in advance for your help, it’s much appreciated.

With best regards,
TreAtW

EDIT: Of course I’d also be open about other ways to reliably determine the outcome of a download/sync.

Here you can find the sync script and all the output related to the script. Have fun. :stuck_out_tongue:

1 Like

So, for anyone who doesn’t want to do the digging. Those are the possible exit messages if rsync is properly installed and the command syntax is correct.

From gvmd source
This applies to SCAP, CERT and GVMD feeds.

Could not determine server feed version.
Could not determine credentials, aborting synchronization.
rsync failed, aborting synchronization.
rsync failed. Your <feed type> might be broken now.
Feed is already current, skipping synchronization.
Sync in progress, exiting.


From openvas source
This applies to NVT feeds.

Denied to run as root
Could not determine server feed version.
Could not determine credentials, aborting synchronization.
rsync failed.
Error: rsync failed.
rsync failed, aborting synchronization.
rsync for notus failed.
NVT synchronization is disabled, exiting.
Feed integrity check failed twice, aborting synchronization.
Feed is already current, skipping synchronization.
Another process related to the feed update is already running