Giter Club home page Giter Club logo

Comments (4)

bonicim avatar bonicim commented on July 17, 2024

Hi GHYOON,

Volttron recently changed the name of MasterDriverAgent to PlatfromDriverAgent and that is most likely the reason that docker-compose failed.

What branch did you use so that I can recreate the bug on my end?

I currently have a PR, #22, addressing this name change. If you're curious, you can check out my feature branch and try running docker-compose on that version: https://github.com/bonicim/volttron-docker/tree/add-docker-image-test-scripts

from volttron-docker.

GHYOON avatar GHYOON commented on July 17, 2024

Hi bonicim,

Issue branch is "main"

and I moved your repository and got following issues;

volttron1   | Platform instance name set to: volttron1
volttron1   | Platform bind web address set to: https://0.0.0.0:8443
volttron1   | Installing packages for web platform: ['ws4py', 'PyJWT', 'Jinja2', 'passlib', 'argon2-cffi', 'Werkzeug']
volttron1   | Creating rabbitmq conifg file at /home/volttron/.volttron/rabbitmq_config.yml
volttron1   | dumpfile is :{'certificate-data': {'country': 'US', 'state': 'Washington', 'location': 'Richland', 'organization': 'PNNL', 'organization-unit': 'VOLTTRON Team', 'common-name': 'volttron1-root-ca'}, 'host': 'volttron1'}
volttron1   | Traceback (most recent call last):
volttron1   |   File "/startup/setup-platform.py", line 96, in <module>
volttron1   |     yaml.dump(rabbit_config, outfile, default_flow_style=False)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/__init__.py", line 290, in dump
volttron1   |     return dump_all([data], stream, Dumper=Dumper, **kwds)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/__init__.py", line 278, in dump_all
volttron1   |     dumper.represent(data)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/representer.py", line 28, in represent
volttron1   |     self.serialize(node)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/serializer.py", line 54, in serialize
volttron1   |     self.serialize_node(node, None, None)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/serializer.py", line 108, in serialize_node
volttron1   |     self.serialize_node(value, node, key)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/serializer.py", line 107, in serialize_node
volttron1   |     self.serialize_node(key, node, None)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/serializer.py", line 90, in serialize_node
volttron1   |     style=node.style))
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 115, in emit
volttron1   |     self.state()
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 393, in expect_first_block_mapping_key
volttron1   |     return self.expect_block_mapping_key(first=True)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 403, in expect_block_mapping_key
volttron1   |     self.expect_node(mapping=True, simple_key=True)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 244, in expect_node
volttron1   |     self.expect_scalar()
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 268, in expect_scalar
volttron1   |     self.process_scalar()
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 533, in process_scalar
volttron1   |     self.write_plain(self.analysis.scalar, split)
volttron1   |   File "/home/volttron/.local/lib/python3.7/site-packages/yaml/emitter.py", line 1132, in write_plain
volttron1   |     self.stream.write(data)
volttron1   | TypeError: a bytes-like object is required, not 'str'
volttron1   | error running setup-platform.py
volttron1 exited with code 1

In your add-docker-image-test-scripts, it works !
when I change docker image from volttron/volttron:develop to bonicim/volttron:develop.

I think there is issue in volttron official image.

from volttron-docker.

bonicim avatar bonicim commented on July 17, 2024

Hi GHYOON,

I realized that issue and made some changes to that branch. I've merged the latest into this repo's branch 'develop'. Try that branch and let me know how it goes. The docker-compose files do not pull from the volition official image and rather builds the image locally. Develop branch: https://github.com/VOLTTRON/volttron-docker/tree/develop

NOTE: When you pull in the branch, be sure to initialize the git submodule using: git submodule update --init --recursive. The instructions are also in the branch's README.md.

from volttron-docker.

GHYOON avatar GHYOON commented on July 17, 2024

Hi bonicim

I moved develop branch and build docker container locally (VOLTTRON branch: develop)

and it works well. Thanks

from volttron-docker.

Related Issues (20)

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.