Comments (5)
@jak42 Sorry for the late response. To confirm the use case and to help reproduce this issue, does this error occur when the user would create the container on the first try, then stop the container, and then restart the container?
In other words, what are the steps (i.e. docker-compose commands) to reproduce this problem?
from volttron-docker.
from volttron-docker.
I reproduced the bug and verified that this container is not reentrant. Below are the steps and expected output.
docker-compose up
docker-compose stop
docker-compose start
# OUTPUT
Requirement already satisfied: pycparser in ./.local/lib/python3.7/site-packages (from cffi>=1.0.0->argon2-cffi==20.1.0) (2.21)
Traceback (most recent call last):
File "/home/volttron/.local/bin/volttron", line 11, in <module>
load_entry_point('volttron', 'console_scripts', 'volttron')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/code/volttron/volttron/platform/main.py", line 87, in <module>
from .control import ControlService
File "/code/volttron/volttron/platform/control.py", line 111, in <module>
message_bus = utils.get_messagebus()
File "/code/volttron/volttron/platform/agent/utils.py", line 233, in get_messagebus
config = load_platform_config()
File "/code/volttron/volttron/platform/agent/utils.py", line 177, in load_platform_config
parser.read(path)
File "/usr/lib/python3.7/configparser.py", line 696, in read
self._read(fp, filename)
File "/usr/lib/python3.7/configparser.py", line 1091, in _read
fpname, lineno)
configparser.DuplicateOptionError: While reading from '/home/volttron/.volttron/config' [line 10]: option 'web-ssl-cert' in section 'volttron' already exists
After running docker-compose start, the container eventually exits and is no longer running. To allow users to restart containers that we're already created, I will update the bootstart script based on @jak42 previous comments and submit a PR.
from volttron-docker.
@jak42 I created a PR #62 off of your bootstart.txt to fix this issue. FYI, if you want to update code on this repo, feel free to create a PR. Also, if you plan on contributing code to Volttron, please fill out this Eclipse user form (only need to be done once): https://www.eclipse.org/legal/ECA.php
from volttron-docker.
from volttron-docker.
Related Issues (20)
- realpath not a thing anymore HOT 1
- docker-compose-rmq.yml HOT 4
- mount host VOLTTRON_HOME
- rmq certification is changed HOT 7
- Please mention how to install on ARM. HOT 8
- Docker installation does not set proper permissions on socket HOT 3
- VOLTTRON Central Agent Showing status of 1 HOT 2
- The agent install priority in the setup-platform.py file is hard coded HOT 1
- Error on ZMQ socket bind() needs more information, patch attached. HOT 3
- Unable to access VOLTTRON central HOT 6
- Update Volttron image to 9.0
- Unable to build Volttron docker image HOT 6
- publish_to_dhub.yml action not working as expected
- stopping and start local docker container causes config error
- Cannot login into vc on volttron-docker container
- Can't find eclipsevolttron/volttron:v3 image
- Empty platform.driver list leads to type error
- Cython errors out with syntax error in Cython file
- Setup doesn't create the correct permissions on VOLTTRON_HOME directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volttron-docker.