Skip to content

Issue with writing to /usr/share/elasticsearch/data/elasticsearch #42

@jobrieniii

Description

@jobrieniii

Unable to launch elasticsearch container when trying to mount data to volume using Docker version 1.6.2, build 7c8fca2.

Simple example as shown in docs:

docker run -v "$PWD/esdata":/usr/share/elasticsearch/data elasticsearch

returns error (in this case I was using boot2docker):

- ElasticsearchIllegalStateException[Failed to obtain node lock, is the following location writable?: [/usr/share/elasticsearch/data/elasticsearch]]
    IOException[failed to obtain lock on /usr/share/elasticsearch/data/elasticsearch/nodes/49]
        IOException[Cannot create directory: /usr/share/elasticsearch/data/elasticsearch/nodes/49]

I also had tried similar command on centos 7 and get similar error (always goes back to the inability to write).

I had been running similar container run command with Docker version 1.5.0-dev, build fc0329b/1.5.0 a week or so ago - and had no problems.

Anyone seen this in recent docker builds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions