Issues with bash

I am fairly new to using openrouteservice and I have recently transitioned to using the locally hosted version. I am having issues when I compose up. When I compose up, I end up with this message:

Attaching to ors-app
': No such file or directorye 'bash
ors-app exited with code 127

And then it automatically exits. I am on a Windows computer and I downloaded the Windows distribution a few months ago (I believe in June). I have no idea what is causing this issue or how to fix it.

Any advice is appreciated.

Hey,

we usually use docker compose up -d to detach the container from the process starting it, but that’s just a sidenote.

Are you using the latest docker compose file?
Check our backend documentation on running with docker, possibly getting your docker-compose file from here:

https://github.com/GIScience/openrouteservice/releases/download/v8.1.3/docker-compose.yml

Best regards

Unfortunately I’ve already tried all of this and it hasn’t fixed the issue. Any other thoughts?

Hi,

could you please give some more information on what exactly you tried?

Besides the detailed explanations in our ‘running with docker’ page (see link in jschnell’s post)
there a is a shorter installation description in the readme.

Make sure, you also created the sub directories in your local directory ors-docker, which is mounted as volume in the docker compose file. Inside the container, this directory has the name ‘/home/ors’ and is expected to have some specific sub folders. The error you posted could be caused by a missing directory.

You can create the directories with your file explorer, in a bash shell this could also be done as described in the readme with

mkdir -p ors-docker/config ors-docker/elevation_cache ors-docker/graphs ors-docker/files ors-docker/logs

In the directory where you have saved the docker-compose file, you should have this directory structure:

├── docker-compose.yml
└── ors-docker
    ├── config
    ├── elevation_cache
    ├── files
    ├── graphs
    └── logs
1 Like

I have that file directory set up. Should my docker-entrypoint.sh be in the ors-docker directory as well?

Here is what I have tried:

  • Commenting out the version in the docker-compose.yml to get rid of the “Version obsolete” error.
  • renamed docker-entrypoint.sh to entrypoint.sh to match what it is called elsewhere in the default setup provided.
  • Run docker compose up --force-recreate -build to ensure it rebuilds with changes
  • Tried modifying the ENTRPOINT in the Dockerfile
  • Tried commenting out various lines in the .dockerignore file to make sure my files are not being ignored.

A lot of this has been based on various posts on Stackoverflow from similar errors, but none seem to be exactly the same.

Currently, I am getting this error message: failed to solve: failed to compute cache key: failed to calculate checksum of ref

And I’m not sure what this means or how to fix it.

Let me know if there’s other detail I should provide.

Ah, just to be on the same page: You did not try the way with the docker-compose.yml from the release assets (e.g. https://github.com/GIScience/openrouteservice/releases/download/v8.2.0/docker-compose.yml) - you cloned the repository and tried to run docker compose in the project directory, right? This should work as well, i just tried it successfully. Renaming the entrypoint script is not necessary.

On which version is your local repo? Perhaps post the output of git status.

You could also set the debug levels to DEBUG. Change these properties in docker-compose.yml:

ors-app:
  environment:
    CONTAINER_LOG_LEVEL: DEBUG   # line 29
    logging.level.org.heigit: DEBUG             # line 55

Maybe you find a hint in the logs, or post the whole logging output.