Closed mttwise closed 1 year ago
Thanks for reporting the issue.
Can you please enable logging in the AWS IoT Fleetwise Settings page. Can you please check if there are messages and if yes post them. Can you also please connect to the EC2 running the agent i-0d9b... and look at the edge log sudo journalctl -fu fwe@0
and paste the log of a few seconds.
This will help us root cause and fix the issue.
Thanks for helping out @ruhland
The fix was as follows:
sudo journalctl -u cansim@0
-- Logs begin at Thu 2023-06-15 20:49:03 UTC, end at Fri 2023-06-16 14:40:59 UTC. --
Jun 15 20:54:16 ip-xxxxxxxx systemd[1]: Started CAN Simulator #0.
Jun 15 20:55:39 ip-xxxxxxxx bash[20838]: 2023-06-15 20:54:16.702244 Set BrakePedalPressure to 0
Jun 15 20:55:39 ip-xxxxxxxx bash[20838]: 2023-06-15 20:54:16.702282 Set ENGINE_SPEED to 1100
...
Jun 15 20:59:52 ip-xxxxxxxx bash[20838]: 2023-06-15 20:59:52.019100 Set BrakePedalPressure to 8000
Jun 15 20:59:52 ip-xxxxxxxx bash[20838]: 2023-06-15 20:59:52.019124 Set EngineTorque to 100
Jun 15 21:00:50 ip-xxxxxxxx systemd[1]: setup-socketcan.service: Found ordering cycle on cansim@0.service/stop
Jun 15 21:00:50 ip-xxxxxxxx systemd[1]: setup-socketcan.service: Found dependency on multi-user.target/stop
Jun 15 21:00:50 ip-xxxxxxxx systemd[1]: setup-socketcan.service: Found dependency on setup-socketcan.service/stop
Jun 15 21:00:50 ip-xxxxxxxx systemd[1]: setup-socketcan.service: Job cansim@0.service/stop deleted to break ordering cycle starting with setup-socketcan.service/stop
sudo systemctl restart cansim@0
After running the service restart command, the simulator starting producing data and I was able to verify output using the candump command
candump vcan0
I was also able to query directly inside of Timestream and view data was there.
Fix merged with https://github.com/aws/aws-iot-fleetwise-edge/pull/57 if problem persists please reopen
Describe the bug While runnning demo.sh following the quickstart readme, Everything runs fine until the "Querying Timestream..." step.
At this point, the following error is outputted to console:
Note: If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page. Please do not create a public github issue.
To Reproduce Follow the steps in the AWS IoT FleetWise cloud demo (https://github.com/aws/aws-iot-fleetwise-edge/blob/main/docs/dev-guide/edge-agent-dev-guide.md#prerequisites-for-quick-start-demo)
Expected behavior Timestream is populated w/ data and is queryable
Logs
Environment (please complete the following information): AWS CloudShell
Additional context CFN Script was successfully deployed prior to running the demo