volttron.platform.vip.agent.core ERROR: Possible conflicting identity

后端 未结 1 1665
滥情空心
滥情空心 2021-01-26 01:07

I have been working towards building my agent development skills in Volttron. I am completely new to the platform and trying to understand how to create basic agents that publis

相关标签:
1条回答
  • 2021-01-26 01:40

    I am assuming that you are running this from eclipse and not through the installation process. The installation of the agent would specify an identity that would remain for the life of the agent.

    The remaining answer is specific to running within the eclipse environment.

    def main(argv=sys.argv):
        '''Main method called by the eggsecutable.'''
        try:
            # This is where the change is.
            utils.vip_main(testagent1, identity='Thisidentity')
        except Exception as e:
            _log.exception('unhandled exception')
    

    You will have to authorize the agent to be able to connect to the message bus by adding the agent publickey through the auth mechanism. Or you can add the wildcard /.*/ to the credentials of an entry through volttron-ctl auth add.

    Thank you for asking this question. We will are updating the documentation to highlight this.

    You will need to do the following at the command line:

    volttron-ctl auth add
    domain []: 
    address []: 
    user_id []: 
    capabilities (delimit multiple entries with comma) []: 
    roles (delimit multiple entries with comma) []: 
    groups (delimit multiple entries with comma) []: 
    mechanism [CURVE]: 
    credentials []: /.*/
    comments []: 
    enabled [True]: 
    added entry domain=None, address=None, mechanism='CURVE', credentials=u'/.*/', user_id='ff6fea8e-53bd-4506-8237-fbb718aca70d'
    
    0 讨论(0)
提交回复
热议问题