jsk-ros-pkg / jsk_robot

jsk-ros-pkg/jsk_robot
https://github.com/jsk-ros-pkg/jsk_robot
73 stars 97 forks source link

Update mongodb_replication_params.yaml #1790

Open k-okada opened 1 year ago

k-okada commented 1 year ago

robot-database.jsk.imi.i.u-tokyo.ac.jp is CNAME of musca.jsk.... maybe this is the cause of following error

    [/message_store /opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py:753] [ERROR] [1681119907.337053]: bad callback: <bound method MessageStore.insert_ros_msg of <__main__.M
essageStore object at 0x7f750d1860>>                                                                                                                                                 Traceback (most recent call last):                                                                                                                                                   
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback                                                                                     cb(msg)                                                                                 
  File "/home/spot/ws/src/mongodb_store/mongodb_store/scripts/message_store_node.py", line 103, in insert_ros_msg                                                                        self.insert_ros_srv(msg)                                                                                                                                                         
  File "/home/spot/ws/src/mongodb_store/mongodb_store/scripts/message_store_node.py", line 152, in insert_ros_srv                                                                        dc_util.store_message(extra_collection, obj, meta, obj_id)                                                                                                                       
  File "/home/spot/ws/src/mongodb_store/mongodb_store/src/mongodb_store/util.py", line 258, in store_message                                                                             return collection.insert(doc)                                                                                                                                                    
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 2941, in insert                                                                                                      check_keys, manipulate, write_concern)                                                                                                                                           
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 599, in _insert                                                                                                      bypass_doc_val, session)                                                                                                                                                         
  File "/usr/lib/python3/dist-packages/pymongo/collection.py", line 580, in _insert_one                                                                                                  _check_write_command_response(result)                                                       
  File "/usr/lib/python3/dist-packages/pymongo/helpers.py", line 207, in _check_write_command_response                                                                               
    _raise_last_write_error(write_errors)                                                                                                                                              File "/usr/lib/python3/dist-packages/pymongo/helpers.py", line 188, in _raise_last_write_error                                                                                     
    raise DuplicateKeyError(error.get("errmsg"), 11000, error)                                                                                                                       pymongo.errors.DuplicateKeyError: E11000 duplicate key error collection: jsk_robot_lifelog.strelka index: _id_ dup key: { : ObjectId('6433daa31cf4582bb939adf7') }                   
tkmtnt7000 commented 1 year ago

There may be side effects on replication that works in Fetch and PR2 if this PR is merged.

https://github.com/jsk-ros-pkg/jsk_robot/blob/93919243019ae06be43874022062abbeee00349e/jsk_robot_common/jsk_robot_startup/lifelog/mongodb.launch#L11-L12 https://github.com/jsk-ros-pkg/jsk_robot/blob/93919243019ae06be43874022062abbeee00349e/jsk_robot_common/jsk_robot_startup/lifelog/mongodb.launch#L18-L24

For example, Fetch uses default yaml path to replicate to musca. https://github.com/jsk-ros-pkg/jsk_robot/blob/93919243019ae06be43874022062abbeee00349e/jsk_fetch_robot/jsk_fetch_startup/launch/fetch_lifelog.xml#L8-L19

knorth55 commented 1 year ago

im not sure but is it really cname of musca?

FYI the server is added by furuta-san, and i dont remember what the robot-database is

k-okada commented 1 year ago

actually robot-database was not listed on DNS and added CNAME 1 hours ago. @knorth55 please ask @furushchev

knorth55 commented 1 year ago

i see i think robot-database was a server which mount ist cloud server in the ancient time. i dont know how furuta-san ran the server.