Giter Club home page Giter Club logo

Comments (5)

yu210148 avatar yu210148 commented on July 30, 2024

Hi there,

It sounds like there's a newer version of one or more of the feeds that it's using. The simplest solution is to leave the thing running and online for more than 24 hours. The install script sets automated jobs to check for feed updates at random times once a day.

If you don't want to wait; what I usually do, is open the web interface and navigate to Administration-->Feed Status. Then open up a terminal window and ssh into the machine running GVM. Once there, become root with sudo -i then su to become the 'gvm' user with su gvm. Once there, you can take a look at the 'gvm' user's crontab with crontab -l.

Here's what mine looks like:

gvm@ubuntu-gvm-vm:/root$ crontab -l
3 4 * * * /opt/gvm/sbin/greenbone-feed-sync --type SCAP
35 7 * * * /opt/gvm/bin/greenbone-nvt-sync
59 11 * * * /opt/gvm/sbin/greenbone-feed-sync --type CERT
1 19 * * * /opt/gvm/sbin/greenbone-feed-sync --type GVMD_DATA
32 4 * * * /usr/bin/sudo /opt/gvm/sbin/openvas --update-vt-info

The numbers before the asterisks will be different on yours but it's the bits after them that we need for this.

Here's what I mean:

image

You can run each of the commands from the crontab manually in the terminal as the 'gvm' user. For example to run the first one enter /opt/gvm/sbin/greenbone-feed-sync --type SCAP into the terminal and press enter. When you do, the feed status in the web interface will change to 'Update in progress'. The command will finish in the terminal before that changes in the web interface. You need to wait until it stops saying 'Update in progress in the web interface before running the next command.

While you're looking at the crontab check to see what the numbers are before the asterisks. They represent the time of day that the command should run. In the install script, I had it pick random times for each to avoid having everyone who uses this clobbering the update server at the same time. The downside to this approach is that there is a chance yours are too close together. For example, if my CERT update is scheduled to happen at 11:59 as above, if my nvt-sync were to be scheduled at 11:57 I'd have a problem because it wouldn't be finished by the time my CERT update happened. This would cause the CERT update to fail. It's possible this is what you're running into.

kev.

from gvm_install.

Shpil93 avatar Shpil93 commented on July 30, 2024

Thank you!!! I'm going to do it today!
How can I set up crontab correctly on time?

from gvm_install.

Shpil93 avatar Shpil93 commented on July 30, 2024

It's my crontab file:
gvm@SCAN:/root$ crontab -l
37 20 * * * /opt/gvm/sbin/greenbone-scapdata-sync
24 15 * * * /opt/gvm/bin/greenbone-nvt-sync
45 10 * * * /opt/gvm/sbin/greenbone-certdata-sync
7 18 * * * /usr/bin/sudo /opt/gvm/sbin/openvas --update-vt-info

Why are our files different?

from gvm_install.

yu210148 avatar yu210148 commented on July 30, 2024

Hi again,

They changed how it does it between version 11 and version 20 so what you see is how it was supposed to work in version 11. I should really get rid of the version 11 option from the installer as it's now past it's end-of-life according to Greenbone (https://community.greenbone.net/t/gvm-11-end-of-life-initial-release-2019-10-14/3674). So it really shouldn't be an option anymore.

kev.

from gvm_install.

yu210148 avatar yu210148 commented on July 30, 2024

I just pushed a commit that removes the option to install version 11. They may not be updating the feeds for it anymore which may also be why you're seeing the message about it being out of date.

If it were me I'd start a fresh install, have it install version 20 then go from there.

I'm going to close this issue off on github for now but we can re-open it if we want to later on.

kev.

from gvm_install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.