Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [volttron-dev] Challenges using the Forward Historian
  • From: "Allwardt, Craig H" <Craig.Allwardt@xxxxxxxx>
  • Date: Wed, 30 Oct 2024 22:09:06 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=pnnl.gov; dmarc=pass action=none header.from=pnnl.gov; dkim=pass header.d=pnnl.gov; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7J+wRQbU0tYU6vPQwcPk4WyOL6wvU9f1mRR/pNjfnns=; b=cYgEUTO64mb4q/PQBKxi+fTTRnh1b94Y6CvEqPB/fxzFSuFBst03Sk2aviMAp7FxWf+8bYC6A0sB5gu3elp4sqJEHuySGxS9Ic/Y1mBpOEsdDc/ypDDeVH+pG2qEyrJktG9NeNYdCZeyLAgY0b3SEcC5mdpl7YDqRR0AAv5wt3/1IkcXT7o1sgY+JSEpZJV7rGT6/4jSHUkV+6QFMIBGeQxxPVL3pKh56fcoo5FbZZKb2YKi80gUPOCR8UMhK0mtqa2DtbmdU27Oy5XUtZJF1q85V6ULXHjKm8HFRJ7IYF1HILCgb4CbZj/NrdiXCshFVFOUD29/jjrLSVgv1Eqc/g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=luUpGVKch5Yy/0ifaXKjglBfYP0/Y6hicG+mboi3QoOLlNQ7aoHel1O2o+LV7UD5pdRm6p0Tw9v4UbF7w5Dh2DD0GEZxKEz2BILlHHD2cB+prmP8sxUVxB77IkQE5Xf5ntVqipuX2kQVCczawIQU8xowwfS2M8EeLAG34GEZ0RE/J4R9oJ4yaSKnk/V5RWMXCH3LXkYCWQAFppa4JJKJviSa+3yuMIYzlxDf4tbHKJRrQ1cuxq4bgFQKq/1IsCZuhSm0pr82DJZgYuTQFjOI2rXDhaDAxa8rpQncRJ8GBk7dm/vF02JUvNlD/nJEpsKffucgDW05tmReWo0e6Ia2yw==
  • Delivered-to: volttron-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/volttron-dev/>
  • List-help: <mailto:volttron-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/volttron-dev>, <mailto:volttron-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/volttron-dev>, <mailto:volttron-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHbKusuEVEqJfu0QUacx1k8ut0uVLKfnxWggAATLwCAACYsAA==
  • Thread-topic: [volttron-dev] Challenges using the Forward Historian

Ok now to actually answer the question you posed.

 

No the address should just be 192.168.55.55

 

This will populate the record on the receiver’s auth.json file such as the following:

    {

      "domain": null,

      "address": "127.0.0.1",

      "mechanism": "CURVE",

      "credentials": "VqtDy03vqbgRZL8p0UdamVSP4O4OLtis9qAAp6-wbDI",

      "groups": [],

      "roles": [],

      "capabilities": {},

      "rpc_method_authorizations": {},

      "comments": null,

      "user_id": "9059a437-e399-4813-990a-36ac953753b9",

      "identity": "forward_from_first",

      "enabled": true

    }

 

In my example I use 127.0.0.1 but that could be any address.  Note if you are not seeing ANY connection at all on the receiver then it is likely that your serverkey is not correct in the forwarder config itself.

To get that serverkey, you use the receiver volttron and execute vctl auth serverkey

 

 

If you have a failure then you know that the server key is correct, but either you have the ip address incorrect or the publickey of the sender volttron isn’t authorized on the receiver.   You will see the following error in the receiver’s logs

 

2024-10-30 14:51:39,192 () volttron.platform.auth.auth_protocols.auth_zmq [263] INFO: authentication failure: userid='6fcade90-ed17-4c8b-b94e-f18bdff752c8', domain='vip', address='127.0.0.1', mechanism='CURVE', credentials=['VqtDy03vqbgRZL8p0UdamVSP4O4OLtis9qAAp6-wbDI']

 

Verify that the credentials are the publickey of the forwarder using the sender volttron’s command vctl auth publickey uuid

 

{

    "destination-vip": "tcp://127.0.0.2:22918",

    "destination-serverkey": "NNInd2qabB75mW3uweg2NZrXGinqCk3yNRCYN74FAHY"

}

 

Successful connection on the receiver should look like the following

 

 

 

 

 

 

From: Lazlo Paul <lazlopaul17@xxxxxxxxx>
Sent: Wednesday, October 30, 2024 12:44 PM
To: Allwardt, Craig H <Craig.Allwardt@xxxxxxxx>
Cc: volttron developer discussions <volttron-dev@xxxxxxxxxxx>
Subject: Re: [volttron-dev] Challenges using the Forward Historian

 

Yes! I am including the credential. I just did not reproduce it here because I did not have a question on it. 

 

On Wed, Oct 30, 2024 at 11:36 AM Allwardt, Craig H <Craig.Allwardt@xxxxxxxx> wrote:

Just checking, but the line you mentioned continues past what you wrote here…

 

vctl auth add --address <address of source instance where forwarder is installed> --credentials <publickey of installed forwarder agent>

 

The credentials are what is 100% required.  The address is added protection.

 

Craig

 

From: volttron-dev <volttron-dev-bounces@xxxxxxxxxxx> On Behalf Of Lazlo Paul via volttron-dev
Sent: Wednesday, October 30, 2024 9:46 AM
To: volttron-dev@xxxxxxxxxxx
Cc: Lazlo Paul <lazlopaul17@xxxxxxxxx>
Subject: [volttron-dev] Challenges using the Forward Historian

 

Check twice before you click! This email originated from outside PNNL.

 

Hi All,

 

I am setting up two volttron instances on the same LAN, both are using ZMQ. I have one main volttron instance on a more performant computer, and one volttron instance running on a Raspberry Pi. Both are running Volttron 9.0

 

I am attempting to set up the Forward Historian, but can not make the connection from the platform on the Raspberry Pi to the main platform. I have followed the instructions in the following documentation: https://volttron.readthedocs.io/en/9.0.1/agent-framework/historian-agents/forwarder/forward-historian.html.

 

Is there something I might be missing? For the step in the documentation that calls for `vctl auth add --address <address of source instance where forwarder is installed>` should the address be in the format 192.168.55.55:22916? Is there a method for me to more productively debug this? 

 

Thank you for your help!
Lazlo


Back to the top