nilsnolde / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
257 stars 74 forks source link

Error while running the container on centos 8 system #176

Closed Rishikeshsynosys closed 2 days ago

Rishikeshsynosys commented 4 days ago

When I tried to start the container on my server which has a centOs operating system of version 8, I got the below error, can anyone help me to fix this issue please

ERROR :: 2024/11/26 09:22:05.674866 [WARN] Traffic tile extract could not be loaded Too many open files (src/epoll.cpp:38)

chrstnbwnkl commented 3 days ago

It's possible you are using loads of threads (valhalla will try using all by default), and each thread gets a graph reader that reads parts of the graph. Usually this should be only one file if you use the tile extract (i.e. tar mode), but might be more likely to happen if you use the tile_dir instead. So try 1) building the tile extract, 2) using fewer threads for the service, or 3) setting ulimit in your OS.

Edit: by default this image already uses the tar, so that should not be the issue unless you've changed it.

Rishikeshsynosys commented 3 days ago

ulimit -n 104096

The ulimit is already set to a high number and I am using the same image without any modifications but still I can see the container exiting with the error : "Too many open files"

Is there any other cause for this issue, I am running with the tar mode.

chrstnbwnkl commented 3 days ago

Does it also happen if you only use a single thread?

Rishikeshsynosys commented 3 days ago

I have passed the server_threads=1 while running the container and it worked. Thankyou.