# Vehicle connection issue
### vehicle-hamburg-380
0. VehicleId: ba0a0093-cbec-4e81-8299-e09507aa7706
1. from [kibana](https://hackmd.io/@Y41L5cJ5Q1aB7RyWg7vPFw/r1ns6D6Lu/edit) we see vehicle was already connected at timestamp: `Apr 20, 2021 @ 21:55:31`
2. Error starts at 22:18 UTC and ends 22:38
3. Error starts at 01:30 UTC and ends 02:02
#### Vehicle State:
https://grafana.trip.prd.moia-group.io/d/vehicle-status/vehicle-status?orgId=1&var-datasource=prometheus&var-vehicle=ba0a0093-cbec-4e81-8299-e09507aa7706&from=1618950507452&to=1618983989857
### vehicle-hamburg-236
0. vehicleId: 61d56d51-2ab8-444d-86b9-70a0b158bdac
1. Connected flag is false, while vehicle has valid locations (dispatching considers location younger than 1 minute as valid)
2. Error starts at 22:49 UTC and ends 23:08
3. Error starts at 00:12 UTC and ends 00:36
4.
#### Vehicle State
https://grafana.trip.prd.moia-group.io/d/vehicle-status/vehicle-status?viewPanel=1&orgId=1&from=1618950507452&to=1618983989857&var-datasource=prometheus&var-vehicle=61d56d51-2ab8-444d-86b9-70a0b158bdac
### vehicle-hamburg-166
0. VehicleId: f6ef22e0-07c7-4624-84a5-619672a5b562
1. Connected flag is false, while vehicle has valid locations (dispatching considers location younger than 1 minute as valid)
2. Error starts at 22:22 UTC and ends 22:38
#### Vehicle State
https://grafana.trip.prd.moia-group.io/d/vehicle-status/vehicle-status?viewPanel=1&orgId=1&from=1618950507452&to=1618983989857&var-datasource=prometheus&var-vehicle=f6ef22e0-07c7-4624-84a5-619672a5b562
### vehicle-hamburg-91
0. VehicleId: 0ea9cda9-3772-4310-abe9-a352907878d7
1. Connected flag is false, while vehicle has valid locations (dispatching considers location younger than 1 minute as valid)
2. Error starts at 22:08 UTC and ends 22:40
3. Error starts at 01:36 UTC and ends 02:26 (location stopped: 01:55, started: 02:26)
#### Vehicle State
https://grafana.trip.prd.moia-group.io/d/vehicle-status/vehicle-status?viewPanel=1&orgId=1&from=1618950507452&to=1618983989857&var-datasource=prometheus&var-vehicle=0ea9cda9-3772-4310-abe9-a352907878d7
### vehicle-hamburg-445
0. VehicleId: 65294302-8219-4a7c-b7bd-1124bf353d12
1. Connected flag is false, while vehicle has valid locations (dispatching considers location younger than 1 minute as valid)
2. Error starts at 22:02 UTC and ends 22:38
3. Error starts at 23:07 UTC and ends 23:12
#### Vehicle State
https://grafana.trip.prd.moia-group.io/d/vehicle-status/vehicle-status?viewPanel=1&orgId=1&from=1618950507452&to=1618983989857&var-datasource=prometheus&var-vehicle=65294302-8219-4a7c-b7bd-1124bf353d12
## Summary
1. The connected flag and location update seem to be not synced for above vehicles
2. The time range is similar in some cases where vehicles had problems
---
### vehicle-hamburg-243
1. it seems like vehicle didn't do anything for almost an hour, vga didn't report any logs etc.
2. [kibana logs](https://kibana.trip.prd.moia-group.io/_plugin/kibana/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2021-04-21T00:00:00.000Z',to:'2021-04-21T01:46:07.844Z'))&_a=(columns:!(_source),filters:!(),index:a25cdc40-e2c9-11ea-a299-35075048b724,interval:auto,query:(language:kuery,query:"vehicle-hamburg-243"),sort:!(!(timestamp,asc))))
3. Connected Flag and valid location are plausible
### vehicle-hamburg-225
1. This vehicle seems to not send messages for a couple of minutes
2. Connected Flag and valid location are plausible
3. [kibana logs](https://kibana.trip.prd.moia-group.io/_plugin/kibana/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2021-04-21T00:55:11.272Z',to:'2021-04-21T01:45:07.844Z'))&_a=(columns:!(_source),filters:!(),index:a25cdc40-e2c9-11ea-a299-35075048b724,interval:auto,query:(language:kuery,query:"vehicle-hamburg-225"),sort:!(!(timestamp,asc))))
#### Vehicle State
https://grafana.trip.prd.moia-group.io/d/vehicle-status/vehicle-status?viewPanel=1&orgId=1&from=1618950507452&to=1618983989857&var-datasource=prometheus&var-vehicle=36164bad-0510-4086-b680-0d63501ca543
## Shadow Rejections
1. Out of the list only vehicle-hamburg-243 seems to have some shadow rejection not others
(sidenote: no level info available in kibana for lumberyard, should be fixed to log more stuff from vga)