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

schedules - date/time problems #1911

Closed
BarryGould opened this issue Feb 15, 2023 · 4 comments
Closed

schedules - date/time problems #1911

BarryGould opened this issue Feb 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@BarryGould
Copy link

Hi, there is a problem with the schedules...
My local time zone is PST/PDT (UTC-8). The (Kali) OS is set to PST/PDT and everything else is behaving as expected.
$ cat /etc/timezone
America/Los_Angeles

In Dec 2022, I created a schedule in OpenVAS to run
every 3rd Wed at 12:00 AM EST/EDT (UTC-5)
(note that 12:00AM and 12:01AM behave the same here)

It worked in December and January, and it should run tonight, but instead OpenVAS is saying it will run NEXT MONTH.

(At least I'd expect it to run next week in the worst case. And oddly, next month will potentially have the same issue as the 2nd Tuesday is again adj. to 3rd Wed, yet it says it will run.)
If I hadn't double-checked the task, we'd have missed our scan window for the month, leading to a compliance failure.

WORKAROUND:
change the schedule to 5AM UTC instead of 12AM EST/EDT.
This appears to work; says will run tonight. But this workaround shouldn't be necessary.

$ openvas --version
OpenVAS 21.4.4
gvm-libs 21.4.4

$ cat /etc/timezone
America/Los_Angeles

$ lsb_release -a
Description: Kali GNU/Linux Rolling
Release: 2022.3

Thanks!

@BarryGould BarryGould added the bug Something isn't working label Feb 15, 2023
@BarryGould
Copy link
Author

BarryGould commented Feb 15, 2023

upgraded; same issue; see screenshot attached:
Untitled2

$ openvas --version
OpenVAS 22.4.1
gvm-libs 22.4.2

$ lsb_release -a
Description: Kali GNU/Linux Rolling
Release: 2022.4

@cfi-gb
Copy link
Member

cfi-gb commented Feb 15, 2023

This would need to be moved over to https://github.com/greenbone/gvmd/issues as the scanner isn't responsible for such schedules.

@bjoernricks bjoernricks transferred this issue from greenbone/openvas-scanner Feb 15, 2023
@4D617274696E
Copy link

Note: I have created an internal tracking issue for this problem at GEA-114.

@mattmundell
Copy link
Contributor

Thanks for the report.
I've fixed the time in the 'Next Run' column in GSA in greenbone/gsa/pull/3818.
This column is calculated by the web fronted, so I believe your task will have run anyway. I set up a similar environment with the same dates in a VM and the task started OK. See the PR for the list of steps I took.

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

4 participants