Hi everyone,
I am trying to deploy broker on ubuntu 18. Installation of opendxl-environment was successfull, it running smoothl. Installation of broker also was successfull, but it exited after starting.
Code
- ruslan@ODXL:~$ sudo docker ps -a
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 72684f73c293 opendxl/opendxl-broker "/dxlbroker/startup_…" 20 minutes ago Exited (1) 4 minutes ago opendxl-broker
- 9730a4933c9e opendxl/opendxl-environment "/dxlenvironment/sta…" 22 minutes ago Up 4 minutes 0.0.0.0:8000->8000/tcp opendxl-environment
Same result if I start it manually.
Code
- ruslan@ODXL:~$ sudo docker start opendxl-broker
- [sudo] password for ruslan:
- opendxl-broker
- ruslan@ODXL:~$ sudo docker ps -a
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 72684f73c293 opendxl/opendxl-broker "/dxlbroker/startup_…" 38 minutes ago Exited (1) 3 seconds ago opendxl-broker
- 9730a4933c9e opendxl/opendxl-environment "/dxlenvironment/sta…" 39 minutes ago Up 22 minutes 0.0.0.0:8000->8000/tcp opendxl-environment
If use -i docker says that opendxl broker doesn't have permission to write files to opendxl/opendxl-broker folder:
Code
- ruslan@ODXL:~$ sudo docker start -i opendxl-broker
- Creating config directory...
- mkdir: cannot create directory '/dxlbroker-volume/config': Permission denied
- Error creating config directory.
- Exiting.
- Error opening default configuration file: /dxlbroker-volume/config/dxlbroker.conf.defaults
- 1559899127: Broker library forced exit (main).
How to fix it?