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

[workaround] Down alerts for internet after update to 23.10.2 if schedules <plugin>_RUN_SCHD don't match #462

Closed
ameer1234567890 opened this issue Oct 2, 2023 · 23 comments
Labels
next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Workaround provided ⚒️ A workaround for the issue was provided so no further actions will be taken.

Comments

@ameer1234567890
Copy link

After the recent update to 23.10.2, internet is showing as Down. All other devices are working fine. Please note that I have a NAT connection from ISP where I do not have a publicly accessible IP address.

@jokob-sk
Copy link
Owner

jokob-sk commented Oct 2, 2023

Hi,
Can you please try to make sure that you have the internet scan on the same schedule as the other scans that you have enabled?

Thanks,
J

@jokob-sk jokob-sk added the Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. label Oct 2, 2023
@djraw
Copy link

djraw commented Oct 2, 2023

I have the same issue with my docker container. Watchtower automatically updated today and after the container restarted, I received tons of down messages in my ntfy. But not only for the Internet device but for several other devices which are in fact running. I restarted the container hoping it would stop, but it continued.
I had to stop the container until this is fixed now. I didn't set anything special up for scheduling so I don't know what you asked for in the previous post @jokob-sk

Here is one screenshot from my iPhone showing one of the ntfy messages:
IMG_2428

@jokob-sk
Copy link
Owner

jokob-sk commented Oct 2, 2023

@djraw can you confirm that you have the same schedule for all scans?

@djraw
Copy link

djraw commented Oct 2, 2023

@jokob-sk what do you mean with that? I didn't set up any schedules.. so I guess yes

@jokob-sk
Copy link
Owner

jokob-sk commented Oct 2, 2023

There is a schedule for each scan, including the internet scan. These schedules should be set to the same value if you want them to be reported in the same result. Check your settings on your scans. The internet scan (INTRNT_RUN_SCHD) is performed every 5 minutes by default (*/5 * * * *). Set the same schedule value on all scans (<plugin>_RUN_SCHD) of you want them reported in the same run.

@djraw
Copy link

djraw commented Oct 2, 2023

OK, now I restarted the container and checked the config. Internet scan is still default */5 * * * *, Network scan ARP is set to */3 * * * *

While the container ran, I received a down message for the devices and another up message 3 minutes later. I disabled all messages for internet before I stopped the container earlier today. I don't know why the schedule matters in this issue anyway honestly.

@tismofied
Copy link

tismofied commented Oct 2, 2023

try to set ARP to match the internet and see if that fixes it. Watchtower just updated my container and both of my scans are on the same schedule and no issues with 23.10.2

UPDATE:
I take that back, as soon as a scan started, all network map disappeared except for internet which showed down and 1 switch. I have 2 switches. all devices showing "name not found" also.

@ameer1234567890
Copy link
Author

I have now manually set same schedule for ARP and Internet plugins. No issues so far.

@djraw
Copy link

djraw commented Oct 2, 2023

Setting the ARP schedule to */5 * * * * seems to have fixed it for me. I tested a bit and as soon as the schedules are different, I get false down messages again. I don't get how this is related. The schedules should work either way, synced or not synced.

And they did before the update today.
Also I noticed that the config format has changed. I made the last change to the config in February and now today. I checked the conf backups and saw the huge difference (some kind of json now?). Don't know if that leads to any of this, just wanted to let you know.

@corasaniti
Copy link

@jokob-sk
Hi, I don't understand if there is a solution or we have to wait for a new release.
Thanks in advance

@corasaniti
Copy link

I have now manually set same schedule for ARP and Internet plugins. No issues so far.
@ameer1234567890
I don't quite understand what I should do and where to go to change? You could help me
Thank you

@corasaniti
Copy link

corasaniti commented Oct 2, 2023

UPDATE
In the Arp-Scan scheduling settings I set the following parameter
ARPSCAN_RUN_SCHD=*/5 * * * *
it was before
ARPSCAN_RUN_SCHD=*/3 * * * *
I think it's now set up as the Internet SCAN. For now everything seems to be working.

@jokob-sk jokob-sk added Workaround provided ⚒️ A workaround for the issue was provided so no further actions will be taken. and removed Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. labels Oct 2, 2023
@rama31244
Copy link

I also started receiving heaps of 'new device' notifications after the update and tried the suggested solution of updating ARPSCAN_RUN_SCHD to match the internet scan schedule but I'm still receiving emails constantly through the day. Any other ideas of solutions to try?

@jokob-sk
Copy link
Owner

jokob-sk commented Oct 5, 2023

@rama31244 this sounds like a separate issue as you are receiving new device notifications, not down notifications. Please open a new issue as this seems unrelated.

@masterwishx
Copy link

i have also disconnected messages for all network devices include intternet every scan :
1st scan connect
2nd scan disconnect
...
...

@jokob-sk
Copy link
Owner

jokob-sk commented Oct 8, 2023

@masterwishx Can you please post your schedules for all enabled scans?

@masterwishx
Copy link

*/3 * * * * Arp
*/5 * * * * interent
now checking with both */5 * * * *

@masterwishx
Copy link

becose of this persistence look like this : only server is green

image

@jokob-sk
Copy link
Owner

jokob-sk commented Oct 8, 2023

@masterwishx Not sure what you are saying - if unrelated to the main topic, please open a new issue or contribute to an existing one (e.g. #454 might be of similar nature)

@masterwishx
Copy link

Can you please post your schedules for all enabled scans?

i think problem solved when same schedule for ARP and Internet scan

Repository owner locked as resolved and limited conversation to collaborators Oct 8, 2023
@jokob-sk
Copy link
Owner

jokob-sk commented Oct 8, 2023

Locking as resolved

@jokob-sk jokob-sk changed the title Internet showing as down after update to 23.10.2 [workaround] Down alerts for internet after update to 23.10.2 is schedules <plugin>_RUN_SCHD don't match Oct 8, 2023
@jokob-sk jokob-sk changed the title [workaround] Down alerts for internet after update to 23.10.2 is schedules <plugin>_RUN_SCHD don't match [workaround] Down alerts for internet after update to 23.10.2 if schedules <plugin>_RUN_SCHD don't match Oct 8, 2023
@jokob-sk jokob-sk added the next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. label Oct 24, 2023
@jokob-sk
Copy link
Owner

The next release will display a warning in the new Settings dashboard if schedules on Device discovery scanners are out-of-sync.
image
image

@jokob-sk
Copy link
Owner

Released in 23.11.11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Workaround provided ⚒️ A workaround for the issue was provided so no further actions will be taken.
Projects
None yet
Development

No branches or pull requests

7 participants