bug: mapper interfaces ingestion failed #818

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

Imported from GitHub.

Original GitHub issue: #2431
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2431
Original created: 2026-01-21T19:35:06Z


Describe the bug

19:33:34.235 [warning] Sweep results execution_id mismatch; using deterministic execution id
19:33:34.235 [info] SweepResultsIngestor: Processing 2 results for execution 03a708b9-0c0e-14d2-aede-f12bf031ab19                                                        19:33:34.240 [info] SweepResultsIngestor: Created execution record 03a708b9-0c0e-14d2-aede-f12bf031ab19 for group c067032b-37ab-4ce5-ad8a-8b750b50671d                   19:33:34.257 [info] SweepResultsIngestor: Completed 2 results in 16ms (125.0/sec), available: 2, failed: 0                                                               19:33:34.257 [info] ResultsRouter received: service_type=mapper source=results service=mapper                                                                            19:33:34.265 [info] ResultsRouter received: service_type=mapper_interfaces source=results service=mapper                                                                 19:33:34.341 [warning] Mapper interfaces ingestion failed: [%Ash.Error.Unknown{bread_crumbs: ["Exception raised in bulk create: ServiceRadar.Inventory.Interface.create"]
,  errors: [%Ash.Error.Unknown.UnknownError{error: "** (Ecto.ConstraintError) constraint error when attempting to insert struct:\n\n    * \"1_2_discovered_interfaces_pkey\" (unique_constraint)\n\nIf you would like to stop this constraint violation from raising an\nexception and instead add it as an error to your changeset, please\ncall `unique_constraint/3` on your changeset with the constraint\n`:name` as an option.\n\nThe changeset defined the following constraints:\n\n    * \"discovered_interfaces_device_id_fkey\" (foreign_key_constraint)\n    * \"discovered_interfaces_pkey\" (unique_constraint)\n", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Exceptin raised in bulk create: ServiceRadar.Inventory.Interface.create"[], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}]                           19:33:34.341 [warning] Results processing failed: [%Ash.Error.Unknown{bread_crumbs: ["Exception raised in bulk create: ServiceRadar.Inventory.Interface.create"],  errors
: [%Ash.Error.Unknown.UnknownError{error: "** (Ecto.ConstraintError) constraint error when attempting to insert struct:\n\n    * \"1_2_discovered_interfaces_pkey\" (unique_constraint)\n\nIf you would like to stop this constraint violation from raising an\nexception and instead add it as an error to your changeset, please\ncall `unique_constraint/3` on your changeset with the constraint\n`:name` as an option.\n\nThe changeset defined the following constraints:\n\n    * \"discovered_interfaces_device_id_fkey\" (foreign_key_constraint)\n    * \"discovered_interfaces_pkey\" (unique_constraint)\n", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Exception raisedin bulk create: ServiceRadar.Inventory.Interface.create"[], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}]                                    19:33:34.516 [info] Coalesced 1 sync chunks into 5 updates

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: #2431 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/2431 Original created: 2026-01-21T19:35:06Z --- **Describe the bug** ``` 19:33:34.235 [warning] Sweep results execution_id mismatch; using deterministic execution id 19:33:34.235 [info] SweepResultsIngestor: Processing 2 results for execution 03a708b9-0c0e-14d2-aede-f12bf031ab19 19:33:34.240 [info] SweepResultsIngestor: Created execution record 03a708b9-0c0e-14d2-aede-f12bf031ab19 for group c067032b-37ab-4ce5-ad8a-8b750b50671d 19:33:34.257 [info] SweepResultsIngestor: Completed 2 results in 16ms (125.0/sec), available: 2, failed: 0 19:33:34.257 [info] ResultsRouter received: service_type=mapper source=results service=mapper 19:33:34.265 [info] ResultsRouter received: service_type=mapper_interfaces source=results service=mapper 19:33:34.341 [warning] Mapper interfaces ingestion failed: [%Ash.Error.Unknown{bread_crumbs: ["Exception raised in bulk create: ServiceRadar.Inventory.Interface.create"] , errors: [%Ash.Error.Unknown.UnknownError{error: "** (Ecto.ConstraintError) constraint error when attempting to insert struct:\n\n * \"1_2_discovered_interfaces_pkey\" (unique_constraint)\n\nIf you would like to stop this constraint violation from raising an\nexception and instead add it as an error to your changeset, please\ncall `unique_constraint/3` on your changeset with the constraint\n`:name` as an option.\n\nThe changeset defined the following constraints:\n\n * \"discovered_interfaces_device_id_fkey\" (foreign_key_constraint)\n * \"discovered_interfaces_pkey\" (unique_constraint)\n", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Exceptin raised in bulk create: ServiceRadar.Inventory.Interface.create"[], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}] 19:33:34.341 [warning] Results processing failed: [%Ash.Error.Unknown{bread_crumbs: ["Exception raised in bulk create: ServiceRadar.Inventory.Interface.create"], errors : [%Ash.Error.Unknown.UnknownError{error: "** (Ecto.ConstraintError) constraint error when attempting to insert struct:\n\n * \"1_2_discovered_interfaces_pkey\" (unique_constraint)\n\nIf you would like to stop this constraint violation from raising an\nexception and instead add it as an error to your changeset, please\ncall `unique_constraint/3` on your changeset with the constraint\n`:name` as an option.\n\nThe changeset defined the following constraints:\n\n * \"discovered_interfaces_device_id_fkey\" (foreign_key_constraint)\n * \"discovered_interfaces_pkey\" (unique_constraint)\n", field: nil, value: nil, splode: Ash.Error, bread_crumbs: ["Exception raisedin bulk create: ServiceRadar.Inventory.Interface.create"[], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :unknown}]}] 19:33:34.516 [info] Coalesced 1 sync chunks into 5 updates ``` **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.0 milestone 2026-03-28 04:28:52 +00:00
Author
Owner

Imported GitHub comment.

Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2431#issuecomment-3789881906
Original created: 2026-01-23T11:47:49Z


not sure if this is still happening, need to verify

Imported GitHub comment. Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/2431#issuecomment-3789881906 Original created: 2026-01-23T11:47:49Z --- not sure if this is still happening, need to verify
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#818
No description provided.