VOLTTRON / volttron

VOLTTRON Distributed Control System Platform
https://volttron.readthedocs.io/
Other
457 stars 216 forks source link

Sometimes volttron-ctl is not closing the vip connection used by the temporary agent it starts #754

Open schandrika opened 8 years ago

schandrika commented 8 years ago

Sometimes volttron-ctl is not closing the vip connection used by the temporary agent it starts. This leads to the following error on any volttron-ctl command.

(volttron)[velo@osboxes myvolttron]$ volttron-ctl status
2016-09-16 10:01:09,357 () volttron.platform.vip.agent.core ERROR: No response to hello message after 10 seconds.
2016-09-16 10:01:09,357 () volttron.platform.vip.agent.core ERROR: A common reason for this is a conflicting VIP IDENTITY.
2016-09-16 10:01:09,357 () volttron.platform.vip.agent.core ERROR: Shutting down agent.
2016-09-16 10:01:09,357 () volttron.platform.vip.agent.core ERROR: Possible conflicting identity is: control.connection
^XKeyboardInterrupt

The only way to recover from this error is to kill all volttron processes and restart. For now modified the volttron-ctl code (volttron/platform/control.py) to specify any vip_id on start so that if there is a clash a new random id would be generated. However this doesn't fix the underlying problem of the orphaned connection

shwethanidd commented 4 years ago

@schandrika I don't think this is valid anymore. Please test and close.