Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20.8.1] gvmd vaccum fails #1432

Closed
pomac303 opened this issue Mar 2, 2021 · 5 comments
Closed

[20.8.1] gvmd vaccum fails #1432

pomac303 opened this issue Mar 2, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@pomac303
Copy link

pomac303 commented Mar 2, 2021

MIght be related to:
greenbone/gsa#2768

md main:MESSAGE:2021-03-02 09h55.00 utc:43810: Greenbone Vulnerability Manager version 20.08.1 (DB revision 233)
md manage: INFO:2021-03-02 09h55.00 utc:43810: Optimizing: vacuum.
md manage:WARNING:2021-03-02 09h55.01 utc:43810: manage_optimize: failed to stat database: Bad address
md manage:WARNING:2021-03-02 09h55.01 utc:43810: manage_optimize: failed to stat database: Bad address
Optimized: vacuum.
md manage:MESSAGE:2021-03-02 09h55.01 utc:43810: Optimized: vacuum.

@pomac303 pomac303 added the bug Something isn't working label Mar 2, 2021
@cfi-gb
Copy link
Member

cfi-gb commented Mar 2, 2021

Have you verified that you are running the command with the correct user (the one running gvmd / having the access permissions to the PostgreSQL database)?

@pomac303
Copy link
Author

pomac303 commented Mar 2, 2021

Yes, the same command ran for 41 minutes - it does clear data but something goes wrong - somehow the database has ended up in a 'inconsistent state', but there doesn't seem to be anything i can do to fix it - not even trying to clear out old reports.

@timopollmeier
Copy link
Member

The "failed to stat database" warnings should only affect the file size comparison, not the vacuum command itself.

As for the inconsistent state: Can you describe what is wrong and check the gvmd log for other warnings?
If you are getting the same error as in greenbone/gsa#2768, have you checked if the report formats are accessible? Since GVM 20.08 the report formats are no longer pre-installed but supplied via a gvmd-data feed.
I think it's unlikely that this is related to the vacuum command but if there is some database corruption, there should be more warnings about failed SQL commands.

@pomac303
Copy link
Author

Yeah I tought it was a inconsistent state since i couldn't see the reports - turns out that it seems to be a error in the webui fixed in 20.8.6 - haven't tested to confirm yet though

@cfi-gb
Copy link
Member

cfi-gb commented Mar 17, 2021

Closing as #1447 has been merged just a few minutes ago. Thanks for your report 👍

@cfi-gb cfi-gb closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants