Closed GHYOON closed 3 years ago
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
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.
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.
Hi bonicim
I moved develop branch and build docker container locally (VOLTTRON branch: develop)
and it works well. Thanks
I got the following issue when running "docker-compose -f docker-compose-rmq.yml up" script.