bug: agent-specific sweep scans not working #932

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

Imported from GitHub.

Original GitHub issue: #2632
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2632
Original created: 2026-01-31T03:56:18Z


Describe the bug
I have a sweep group created for a specific agent and it is never getting executed.

Image

It's possible the agent I assigned it to (agent-dusk, out of cluster on a separate VM) was not able to pickup its config from the agent gateway:

Jan 31 03:48:40 dusk01 serviceradar-agent[1939288]: {"level":"error","component":"agent","error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded","time":"2026-01-31T03:48:40Z","message":"Failed to get config from gateway"}
Jan 31 03:48:40 dusk01 serviceradar-agent[1939288]: {"level":"error","component":"agent","error":"failed to get config: rpc error: code = DeadlineExceeded desc = context deadline exceeded","time":"2026-01-31T03:48:40Z","message":"Failed to fetch config from gateway"}

Seeing this in agent-gateway logs, not sure if it is related;

03:51:13.968 [warning] Failed to upsert device for agent k8s-agent: %Ash.Error.Invalid{errors: [%Ash.Error.Query.NoSuchField{resource: ServiceRadar.Inventory.Device, field: :include_deleted, splode: Ash.Error, bread_crumbs: [], vars: [], path: [:filter], stacktrace: #Splode.Stacktrace<>, class: :invalid}, %Ash.Error.Query.InvalidArgument{field: :include_deleted, message: "is invalid", value: [include_deleted: true, actor: %{id: "system:gateway_sync", email: "gateway-sync@system.serviceradar", role: :system}], splode: Ash.Error, bread_crumbs: [], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}                                                                                                                                                    03:51:13.968 request_id=GI-0WTvq-Xr65LMAAUOB [warning] Failed to create device for agent k8s-agent: %Ash.Error.Invalid{errors: [%Ash.Error.Query.NoSuchField{resource: ServiceRadar.Inventory.Device, field: :include_deleted, splode: Ash.Error, bread_crumbs: [], vars: [], path: [:filter], stacktrace: #Splode.Stacktrace<>, class: :invalid}, %Ash.Error.Query.InvalidArgument{field: :include_deleted, message: "is invalid", value: [include_deleted: true, actor: %{id: "system:gateway_sync", email: "gateway-sync@system.serviceradar", role: :system}], splode: Ash.Error, bread_crumbs:
 [], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}

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: #2632 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/2632 Original created: 2026-01-31T03:56:18Z --- **Describe the bug** I have a sweep group created for a specific agent and it is never getting executed. <img width="1221" height="426" alt="Image" src="https://github.com/user-attachments/assets/0327e088-4ed4-4580-af8d-2d8eb05e4612" /> It's possible the agent I assigned it to (agent-dusk, out of cluster on a separate VM) was not able to pickup its config from the agent gateway: ``` Jan 31 03:48:40 dusk01 serviceradar-agent[1939288]: {"level":"error","component":"agent","error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded","time":"2026-01-31T03:48:40Z","message":"Failed to get config from gateway"} Jan 31 03:48:40 dusk01 serviceradar-agent[1939288]: {"level":"error","component":"agent","error":"failed to get config: rpc error: code = DeadlineExceeded desc = context deadline exceeded","time":"2026-01-31T03:48:40Z","message":"Failed to fetch config from gateway"} ``` Seeing this in `agent-gateway` logs, not sure if it is related; ``` 03:51:13.968 [warning] Failed to upsert device for agent k8s-agent: %Ash.Error.Invalid{errors: [%Ash.Error.Query.NoSuchField{resource: ServiceRadar.Inventory.Device, field: :include_deleted, splode: Ash.Error, bread_crumbs: [], vars: [], path: [:filter], stacktrace: #Splode.Stacktrace<>, class: :invalid}, %Ash.Error.Query.InvalidArgument{field: :include_deleted, message: "is invalid", value: [include_deleted: true, actor: %{id: "system:gateway_sync", email: "gateway-sync@system.serviceradar", role: :system}], splode: Ash.Error, bread_crumbs: [], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :invalid}]} 03:51:13.968 request_id=GI-0WTvq-Xr65LMAAUOB [warning] Failed to create device for agent k8s-agent: %Ash.Error.Invalid{errors: [%Ash.Error.Query.NoSuchField{resource: ServiceRadar.Inventory.Device, field: :include_deleted, splode: Ash.Error, bread_crumbs: [], vars: [], path: [:filter], stacktrace: #Splode.Stacktrace<>, class: :invalid}, %Ash.Error.Query.InvalidArgument{field: :include_deleted, message: "is invalid", value: [include_deleted: true, actor: %{id: "system:gateway_sync", email: "gateway-sync@system.serviceradar", role: :system}], splode: Ash.Error, bread_crumbs: [], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :invalid}]} ``` **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.
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#932
No description provided.