Giter Club home page Giter Club logo

Comments (2)

bonicim avatar bonicim commented on August 16, 2024

The agent configuration for this Volttron Central Agent is an yaml file that has no yaml objects, not even an empty object. Because the config file is empty, the Volttron platform is returning a NoneType for the 'config' object, thus failing this installation when the agent code is trying to get a property on a None object. To resolve this, ensure that the Volttron Agent config file has at least an empty dictionary.

from volttron-docker.

bonicim avatar bonicim commented on August 16, 2024

I uncommented the VOLTTRON Central Agent code in the platform_config.yml file and when I run vctl status I am getting a status of 1. Searching through the logs I found the following error:

2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: Traceback (most recent call last): 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: "main", mod_spec) 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: File "/usr/lib/python3.7/runpy.py", line 85, in _run_code 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: exec(code, run_globals) 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: File "/home/volttron/.volttron/agents/eee54433-f080-45c4-bfc5-5d64993fdba1/volttroncentralagent-5.2/volttroncentral/agent.py", line 1022, in 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: sys.exit(main()) 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: File "/home/volttron/.volttron/agents/eee54433-f080-45c4-bfc5-5d64993fdba1/volttroncentralagent-5.2/volttroncentral/agent.py", line 1016, in main 2021-11-22 17:22:16,828 (volttroncentralagent-5.2 177) ERROR: version=version) 2021-11-22 17:22:16,829 (volttroncentralagent-5.2 177) ERROR: File "/code/volttron/volttron/platform/agent/utils.py", line 459, in vip_main 2021-11-22 17:22:16,829 (volttroncentralagent-5.2 177) ERROR: message_bus=message_bus, **kwargs) 2021-11-22 17:22:16,829 (volttroncentralagent-5.2 177) ERROR: File "/home/volttron/.volttron/agents/eee54433-f080-45c4-bfc5-5d64993fdba1/volttroncentralagent-5.2/volttroncentral/agent.py", line 109, in init_volttron_central 2021-11-22 17:22:16,829 (volttroncentralagent-5.2 177) ERROR: users = config.get('users', None) 2021-11-22 17:22:16,829 (volttroncentralagent-5.2 177) ERROR: AttributeError: 'NoneType' object has no attribute 'get'

@judymin88 Try adding your own Volttron config file and using it for the agent config for Volttron Central Agent. See my solution in #51

from volttron-docker.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.