bug: agent shouldn't try to do a sweep if it doesn't have config #735

Open
opened 2026-03-28 04:27:58 +00:00 by mfreeman451 · 0 comments
Owner

Imported from GitHub.

Original GitHub issue: #2278
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2278
Original created: 2026-01-14T01:43:29Z


Describe the bug

{"level":"warn","component":"agent","error":"failed to connect to gateway at serviceradar-agent-gateway:50052: context deadline exceeded","time":"2026-01-14T01:37:26Z","message":"Initial gateway connection failed, will retry"}                                                                                                                              {"level":"info","component":"agent","targetsGenerated":0,"networkCount":0,"deviceTargetCount":0,"totalHosts":0,"configuredPorts":[],"globalSweepModes":["icmp","tcp"],"time":"2026-01-14T01:42:16Z","message":"Generated targets from networks and device targets"}                                                                                             {"level":"info","component":"agent","icmpTargets":0,"tcpTargets":0,"tcpConnectTargets":0,"icmpScannerAvailable":true,"tcpScannerAvailable":true,"tcpConnectScannerAvailable":false,"time":"2026-01-14T01:42:16Z","message":"Starting sweep"}                                                                                                                    {"level":"info","component":"agent","time":"2026-01-14T01:42:16Z","message":"Sweep completed successfully"}

this shouldn't have been attempted, there are no targets/no sweep config.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Imported from GitHub. Original GitHub issue: #2278 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/2278 Original created: 2026-01-14T01:43:29Z --- **Describe the bug** ``` {"level":"warn","component":"agent","error":"failed to connect to gateway at serviceradar-agent-gateway:50052: context deadline exceeded","time":"2026-01-14T01:37:26Z","message":"Initial gateway connection failed, will retry"} {"level":"info","component":"agent","targetsGenerated":0,"networkCount":0,"deviceTargetCount":0,"totalHosts":0,"configuredPorts":[],"globalSweepModes":["icmp","tcp"],"time":"2026-01-14T01:42:16Z","message":"Generated targets from networks and device targets"} {"level":"info","component":"agent","icmpTargets":0,"tcpTargets":0,"tcpConnectTargets":0,"icmpScannerAvailable":true,"tcpScannerAvailable":true,"tcpConnectScannerAvailable":false,"time":"2026-01-14T01:42:16Z","message":"Starting sweep"} {"level":"info","component":"agent","time":"2026-01-14T01:42:16Z","message":"Sweep completed successfully"} ``` this shouldn't have been attempted, there are no targets/no sweep config. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
mfreeman451 added this to the 1.1.1 milestone 2026-03-28 04:27:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar#735
No description provided.