Configuring-tls-docker - permission denied

Hi,

I'm following the instructions on https://www.elastic.co/guide/en/elasticsearch/reference/6.0/configuring-tls-docker.html

docker-compose -f create-certs.yml up

results in:

Creating create_certs ... 
Creating create_certs ... done
Attaching to create_certs
create_certs    | mkdir: cannot create directory 'config/x-pack/certificates/certs': Permission denied
create_certs    | Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config/x-pack/certificates/certs/bundle.zip
create_certs    |       at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
create_certs    |       at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
create_certs    |       at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
create_certs    |       at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
create_certs    |       at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
create_certs    |       at java.nio.file.Files.newOutputStream(Files.java:216)
create_certs    |       at org.elasticsearch.xpack.ssl.CertificateTool.fullyWriteFile(CertificateTool.java:431)
create_certs    |       at org.elasticsearch.xpack.ssl.CertificateTool.generateAndWriteSignedCertificates(CertificateTool.java:381)
create_certs    |       at org.elasticsearch.xpack.ssl.CertificateTool.execute(CertificateTool.java:187)
create_certs    |       at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:69)
create_certs    |       at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134)
create_certs    |       at org.elasticsearch.cli.Command.main(Command.java:90)
create_certs    |       at org.elasticsearch.xpack.ssl.CertificateTool.main(CertificateTool.java:158)
create_certs    | unzip:  cannot find or open config/x-pack/certificates/certs/bundle.zip, config/x-pack/certificates/certs/bundle.zip.zip or config/x-pack/certificates/certs/bundle.zip.ZIP.
create_certs    | chgrp: cannot access 'config/x-pack/certificates/certs': No such file or directory
create_certs exited with code 1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.