Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VROOM + ORS localhost:8080 error #89

Open
endmr11 opened this issue Nov 27, 2024 · 4 comments
Open

VROOM + ORS localhost:8080 error #89

endmr11 opened this issue Nov 27, 2024 · 4 comments

Comments

@endmr11
Copy link

endmr11 commented Nov 27, 2024

I'm sure ORS is running on my 8080 port. Example url: http://localhost:8080/ors/v2/directions/driving-car?start=8.681495,49.41461&end=8.687872,49.420318

But whenever I send a request to VROOM on port 3000, which I installed with the docker image, I get the following error:
{
"code": 3,
"error": "Failed to connect to 0.0.0.0:8080"
}

I am making the same sample request given on the ORS original website. Can you please help? Thank you very much.

My method of installing VROOM:
~ docker run -dt --name vroom -p 3000:3000 -v $PWD/conf:/conf -e VROOM_ROUTER=ors ghcr.io/vroom-project/vroom-docker:v1.14.0

My method of installing ORS:
wget https://github.com/GIScience/openrouteservice/releases/download/v8.0.0/docker-compose.yml
docker compose up -d

Example Request:
{ "jobs": [ { "id": 1, "service": 300, "delivery": [ 1 ], "location": [ 1.98465, 48.70329 ], "skills": [ 1 ], "time_windows": [ [ 32400, 36000 ] ] }, { "id": 2, "service": 300, "delivery": [ 1 ], "location": [ 2.03655, 48.61128 ], "skills": [ 1 ] }, { "id": 3, "service": 300, "delivery": [ 1 ], "location": [ 2.39719, 49.07611 ], "skills": [ 2 ] }, { "id": 4, "service": 300, "delivery": [ 1 ], "location": [ 2.41808, 49.22619 ], "skills": [ 2 ] }, { "id": 5, "service": 300, "delivery": [ 1 ], "location": [ 2.28325, 48.5958 ], "skills": [ 14 ] }, { "id": 6, "service": 300, "delivery": [ 1 ], "location": [ 2.89357, 48.90736 ], "skills": [ 14 ] } ], "vehicles": [ { "id": 1, "profile": "driving-car", "start": [ 2.35044, 48.71764 ], "end": [ 2.35044, 48.71764 ], "capacity": [ 4 ], "skills": [ 1, 14 ], "time_window": [ 28800, 43200 ] }, { "id": 2, "profile": "driving-car", "start": [ 2.35044, 48.71764 ], "end": [ 2.35044, 48.71764 ], "capacity": [ 4 ], "skills": [ 2, 14 ], "time_window": [ 28800, 43200 ] } ] }

@jcoupey
Copy link
Contributor

jcoupey commented Nov 28, 2024

Hum, if you have ORS accessible from the host machine with http://localhost:8080, I would not expect it to be accessible out of the box from within the VROOM container, or am I missing something?

@endmr11
Copy link
Author

endmr11 commented Nov 28, 2024

image

What path should I follow? @jcoupey

@jcoupey
Copy link
Contributor

jcoupey commented Nov 28, 2024

I don't use Docker so I wouldn't really know. I guess you have to do something so that port 8080 from the host is accessible from the container running VROOM.

@endmr11
Copy link
Author

endmr11 commented Nov 28, 2024

Can I do it by just running vroom express without using Docker? @jcoupey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants