Hi odfe community,
I have been playing around with odfe and was trying to setup it using the official docker-compose example taken from here: Docker - Open Distro Documentation. It work well as it should be but then moved one level up and trying to setup the security and mounting the data and custom-conf* files via mounted volume on docker-compose. While doing so (even chenging the chmod to the one requested by the odfe) I’m getting an issue that it can;t access the
'/usr/share/supervisor/supervisord.log'
.
Note: I’m also running it with a different user (pid) which doesn;t have root access and isn’t; mounted to default user elasticsearch which mean the only changes to the docker-compose file above are the
--user ${PID}
and
volumes:
- ($pwd)/data:/usr/share/elasticsearch/data
I did follow the docker-compose.yml.j2
template from opendistro-for-elasticsearch/opendistro-build
repo for these changes.
See the error below:
Traceback (most recent call last):
File "/usr/bin/supervisord", line 9, in <module>
load_entry_point('supervisor==4.2.0', 'console_scripts', 'supervisord')()
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/supervisord.py", line 361, in main
go(options)
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/supervisord.py", line 371, in go
d.main()
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/supervisord.py", line 72, in main
self.options.make_logger()
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/options.py", line 1476, in make_logger
backups=self.logfile_backups,
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/loggers.py", line 417, in handle_file
handler = RotatingFileHandler(filename, 'a', maxbytes, backups)
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/loggers.py", line 213, in __init__
FileHandler.__init__(self, filename, mode)
File "/usr/lib/python2.7/site-packages/supervisor-4.2.0-py2.7.egg/supervisor/loggers.py", line 160, in __init__
self.stream = open(filename, mode)
IOError: [Errno 13] Permission denied: '/usr/share/supervisor/supervisord.log'
Any help would be more than welcome, any if you were able to setup the odfe using a different user without following the instructions here: Docker - Open Distro Documentation (this works as soon as we use named volumes for the data and pass the configurations files).
Best regards,