Self-hosted worker issue /mnt/space/system/entrypoint: No such file or directory

Hi,

I have configured a self-hosted worker using the docker setup in a host running Linux Alpine v3.16.2

If I setup the docker volume as described in the instructions:

-v /tmp/jetbrains/space/automation/worker:/tmp/jetbrains/space/automation/worker 

The job finish successfully, but if I try to use a different path for the local folder, like:

-v /space/worker:/tmp/jetbrains/space/automation/worker

The same job fails with the error:

[Bootstrap] Download from Space endpoint pipelines/system/docker/config into `system/docker/config.json`
18:03:03
/bin/sh: /mnt/space/system/entrypoint: No such file or directory

I have changed the permissions of the /space/worker folder with chmod 777 /space/worker, but it doesn't help

Is there a way to configure a different folder for the worker in the host?

Thanks

 

 

 

 

 

2 comments
Comment actions Permalink

Hi Petrus, if you'd like to change the directory path on the host, it's also necessary to change it within the container itself, e.g.:

-v /space/worker:/space/worker

Then it's also necessary to pass the following env variable to the container to let the worker know that the directory is changed:

-e SPACE_WORKER_DATADIR=/space/worker
0
Comment actions Permalink

Thanks Pavel, it works

0

Please sign in to leave a comment.