Permission denied to volume directory
I've set a custom a custom
ELASTICSEARCH_DATADIR
ARG in my Dockerfile /data
which is the same directory my volume is configured to /data
However when I deploy I get the following error
Any ideas what might be the issue here? The volume is definitely connected to the service using it.19 Replies
Project ID:
c2e25e3f-aa2f-4b0b-8aa3-0367ede8a6dd
c2e25e3f-aa2f-4b0b-8aa3-0367ede8a6dd
send the dockerhub page for the docker image youre using please
https://hub.docker.com/r/bitnami/elasticsearch
My Dockerfile looks like this
I've also tried
ELASTICSEARCH_DATA_DIR_LIST
but that gives the same permission denied errorwhy are you using a dockerfile for that?
just deploy the image
Don't I need to specify a custom data directory for my volume?
what is the data directory elasticsearch defaults to?
Not sure tbh.. let me check
If you've installed ES on Linux, the default data folder is in /var/lib/elasticsearch (CentOS) or /var/lib/elasticsearch/data (Ubuntu)
So
/var/lib/elasticsearch/data
I would assume?Oh...
Should I make the volume be at /bitnami then?
yes
Gotcha.. let me try that π
forego the dockerfile please
just deploy the image
Ok yeah sorry.. i'm still learning π
Trying to get ES working on Temporal π
you will also need a service variable
RAILWAY_RUN_UID
set to 0
Ok I think it's using the volume now?
π
I think? Gotta wait and see if the disk usage goes up I guess
you are, railway does indeed use a zvol
Sweet!!! Thanks so much for your help! ππ»
no problem!