Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cerebrum logs error while getting rsu info during lauch phase #64

Closed
wu-wenxiang opened this issue Sep 20, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@wu-wenxiang
Copy link
Contributor

Describe the bug

Cerebrum will show error logs when starting up if a RSU missing lane info

To Reproduce

Steps to reproduce the behavior:

  1. Connect from roadmocker
  2. Send RSU info
  3. See new RSU device in un-registered RSU list in EdgeView page
  4. Adding an RSU by one-click
  5. Start up Cerebrum, see logs: 2022-09-20 12:55:21 | ERROR | Missing required field data in RSU with serial number :RSU_19f2c00f

Expected behavior

No error logs during cerebrum starting up

Screenshots

N/A

Log Information

oot@lab-u2004:~/local/github-openv2x/openv2x-cerebrum# source /root/local/github-openv2x/openv2x-cerebrum/.venv/bin/activate
(.venv) root@lab-u2004:~/local/github-openv2x/openv2x-cerebrum#  /usr/bin/env /root/local/github-openv2x/openv2x-cerebrum/.venv/bin/python /root/.vscode-server/extensions/ms-python.python-2022.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 35677 -- /root/local/github-openv2x/openv2x-cerebrum/main.py 
2022-09-20 00:55:21,855 INFO sqlalchemy.engine.Engine SELECT DATABASE()
2022-09-20 00:55:21,856 INFO sqlalchemy.engine.Engine [raw sql] {}
2022-09-20 00:55:21,859 INFO sqlalchemy.engine.Engine SELECT @@sql_mode
2022-09-20 00:55:21,859 INFO sqlalchemy.engine.Engine [raw sql] {}
2022-09-20 00:55:21,862 INFO sqlalchemy.engine.Engine SELECT @@lower_case_table_names
2022-09-20 00:55:21,862 INFO sqlalchemy.engine.Engine [raw sql] {}
2022-09-20 00:55:21,869 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2022-09-20 00:55:21,880 INFO sqlalchemy.engine.Engine SELECT rsu.rsu_esn AS rsu_rsu_esn, rsu.location AS rsu_location, rsu.bias_x AS rsu_bias_x, rsu.bias_y AS rsu_bias_y, rsu.rotation AS rsu_rotation, rsu.reverse AS rsu_reverse, rsu.scale AS rsu_scale, rsu.lane_info AS rsu_lane_info 
FROM rsu
2022-09-20 00:55:21,880 INFO sqlalchemy.engine.Engine [generated in 0.00052s] {}
2022-09-20 12:55:21 | ERROR | Missing required field data in RSU with serial number :RSU_19f2c00f 
2022-09-20 00:55:21,891 INFO sqlalchemy.engine.Engine ROLLBACK
2022-09-20 00:55:24,360 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2022-09-20 00:55:24,362 INFO sqlalchemy.engine.Engine SELECT system_config.mqtt_config AS system_config_mqtt_config, system_config.node_id AS system_config_node_id 
FROM system_config 
 LIMIT %(param_1)s

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Chrome Version 105.0.5195.125 (Official Build) (x86_64)
  • Version: Master

Additional context

N/A

@wu-wenxiang wu-wenxiang added the bug Something isn't working label Sep 20, 2022
wu-wenxiang added a commit to wu-wenxiang/openv2x-cerebrum that referenced this issue Sep 20, 2022
1. seperate common pkg from transform_driver
2. correct .github bug report template
3. add error details when getting rsu info fail

see also: prepare for open-v2x#60
see also: prepare for open-v2x#64
FrankGTY pushed a commit that referenced this issue Sep 20, 2022
1. seperate common pkg from transform_driver
2. correct .github bug report template
3. add error details when getting rsu info fail

see also: prepare for #60
see also: prepare for #64
@wu-wenxiang wu-wenxiang self-assigned this Sep 20, 2022
@wu-wenxiang wu-wenxiang moved this to In Progress in OpenV2X Sep 20, 2022
@cmycoups
Copy link
Contributor

已经解决,日志无 error

root@openv2x-master:~/src# docker logs cerebrum
2023-05-22 11:18:37,553 INFO sqlalchemy.engine.Engine SELECT DATABASE()
2023-05-22 11:18:37,558 INFO sqlalchemy.engine.Engine [raw sql] {}
2023-05-22 11:18:37,560 INFO sqlalchemy.engine.Engine SELECT @@sql_mode
2023-05-22 11:18:37,560 INFO sqlalchemy.engine.Engine [raw sql] {}
2023-05-22 11:18:37,570 INFO sqlalchemy.engine.Engine SELECT @@lower_case_table_names
2023-05-22 11:18:37,570 INFO sqlalchemy.engine.Engine [raw sql] {}
2023-05-22 11:18:37,572 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-05-22 11:18:37,581 INFO sqlalchemy.engine.Engine SELECT rsu.rsu_esn AS rsu_rsu_esn, rsu.location AS rsu_location, rsu.bias_x AS rsu_bias_x, rsu.bias_y AS rsu_bias_y, rsu.rotation AS rsu_rotation, rsu.reverse AS rsu_reverse, rsu.scale AS rsu_scale, rsu.lane_info AS rsu_lane_info 
FROM rsu
2023-05-22 11:18:37,581 INFO sqlalchemy.engine.Engine [generated in 0.00053s] {}
2023-05-22 11:18:37,589 INFO sqlalchemy.engine.Engine ROLLBACK
2023-05-22 11:18:37,591 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-05-22 11:18:37,592 INFO sqlalchemy.engine.Engine SELECT map.name AS map_name, map.data AS map_data 
FROM map
2023-05-22 11:18:37,592 INFO sqlalchemy.engine.Engine [generated in 0.00017s] {}
2023-05-22 11:18:37,594 INFO sqlalchemy.engine.Engine ROLLBACK

@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenV2X May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants