bug(agent): unable to read sweep.json from KV #615

Closed
opened 2026-03-28 04:26:27 +00:00 by mfreeman451 · 1 comment
Owner

Imported from GitHub.

Original GitHub issue: #1881
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1881
Original created: 2025-10-24T19:13:25Z


Describe the bug

{"level":"error","component":"agent","error":"unexpected end of JSON input","configKey":"agents/k8s-agent/checkers/sweep/sweep.json","time":"2025-10-24T19:11:33Z","mes
sage":"Failed to unmarshal single config"}                                                                                                                             {"level":"warn","component":"agent","objectKey":"agents/k8s-agent/checkers/sweep/sweep.json","expected_sha":"lFj2O3oq2KjAwcl9M0vvi-77LcI9IbDT0rAqosZ1yC0=","actual_sha":"9458f63b7a2ad8a8c0c1c97d334bef8beefb2dc23d21b0d3d2b02aa2c675c82d","time":"2025-10-24T19:11:33Z","message":"Checksum mismatch for sweep config object"}               {"level":"info","component":"agent","networks":0,"deviceTargets":50000,"ports":0,"time":"2025-10-24T19:11:34Z","message":"Updating sweeper config"}                    {"level":"info","component":"agent","networks":0,"deviceTargets":50000,"time":"2025-10-24T19:11:34Z","message":"Successfully updated sweep config from single KV file"}{"level":"info","component":"agent","serviceName":"sync","serviceType":"grpc","time":"2025-10-24T19:11:35Z","message":"StreamResults called"}                          {"level":"info","component":"agent","serviceName":"network_sweep","serviceType":"sweep","time":"2025-10-24T19:11:35Z","message":"StreamResults called"}                {"level":"info","component":"agent","serviceName":"network_sweep","lastSequence":"172","time":"2025-10-24T19:11:35Z","message":"Handling sweep StreamResults"}
{"level":"info","component":"agent","lastSequence":"172","time":"2025-10-24T19:11:35Z","message":"GetSweepResults called"}                                             {"level":"info","component":"agent","serviceName":"sync","time":"2025-10-24T19:11:36Z","message":"StreamResults forwarding completed"}                                 {"level":"info","component":"agent","type":"process","name":"serviceradar-agent","details":"serviceradar-agent","time":"2025-10-24T19:11:55Z","message":"Checker request"}

To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
agent should be able to read sweep.json for a portion of its config (everything but the networks list, which will get overwritten by the kv/object store)

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: #1881 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/1881 Original created: 2025-10-24T19:13:25Z --- **Describe the bug** ```json {"level":"error","component":"agent","error":"unexpected end of JSON input","configKey":"agents/k8s-agent/checkers/sweep/sweep.json","time":"2025-10-24T19:11:33Z","mes sage":"Failed to unmarshal single config"} {"level":"warn","component":"agent","objectKey":"agents/k8s-agent/checkers/sweep/sweep.json","expected_sha":"lFj2O3oq2KjAwcl9M0vvi-77LcI9IbDT0rAqosZ1yC0=","actual_sha":"9458f63b7a2ad8a8c0c1c97d334bef8beefb2dc23d21b0d3d2b02aa2c675c82d","time":"2025-10-24T19:11:33Z","message":"Checksum mismatch for sweep config object"} {"level":"info","component":"agent","networks":0,"deviceTargets":50000,"ports":0,"time":"2025-10-24T19:11:34Z","message":"Updating sweeper config"} {"level":"info","component":"agent","networks":0,"deviceTargets":50000,"time":"2025-10-24T19:11:34Z","message":"Successfully updated sweep config from single KV file"}{"level":"info","component":"agent","serviceName":"sync","serviceType":"grpc","time":"2025-10-24T19:11:35Z","message":"StreamResults called"} {"level":"info","component":"agent","serviceName":"network_sweep","serviceType":"sweep","time":"2025-10-24T19:11:35Z","message":"StreamResults called"} {"level":"info","component":"agent","serviceName":"network_sweep","lastSequence":"172","time":"2025-10-24T19:11:35Z","message":"Handling sweep StreamResults"} {"level":"info","component":"agent","lastSequence":"172","time":"2025-10-24T19:11:35Z","message":"GetSweepResults called"} {"level":"info","component":"agent","serviceName":"sync","time":"2025-10-24T19:11:36Z","message":"StreamResults forwarding completed"} {"level":"info","component":"agent","type":"process","name":"serviceradar-agent","details":"serviceradar-agent","time":"2025-10-24T19:11:55Z","message":"Checker request"} ``` **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** agent should be able to read sweep.json for a portion of its config (everything but the networks list, which will get overwritten by the kv/object store) **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.
Author
Owner

Imported GitHub comment.

Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/1881#issuecomment-3446888797
Original created: 2025-10-25T16:41:03Z


closing, cant repro

Imported GitHub comment. Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/1881#issuecomment-3446888797 Original created: 2025-10-25T16:41:03Z --- closing, cant repro
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#615
No description provided.