Open toton6868 opened 5 years ago
Thanks for the great project!
I had the same error and I managed to solve it with on Debian 10, node v10.19.0 and Tileserver-GL v3.0.0 and v3.1.0 by installing these packages and following these steps, as outlined in the Dockerfile:
sudo apt-get -y --no-install-recommends install \
apt-transport-https \
curl \
unzip \
build-essential \
libcairo2-dev \
libgles2-mesa-dev \
libgbm-dev \
libllvm7 \
libprotobuf-dev \
libgles2-mesa \
libegl1 \
xvfb \
xauth
Installing the server with:
export NODE_ENV="production"
npm install --production
And running the server with:
export CHOKIDAR_USEPOLLING=1
export CHOKIDAR_INTERVAL=500
xvfb-run -a --server-args="-screen 0 1024x768x24" -- node . -p 8080
When running the same steps in Ubuntu 20.04, I get the previous error:
terminate called after throwing an instance of 'std::runtime_error'
what(): eglInitialize() failed.
Do you know what could be the cause of the issue or what needs to be additionally installed?
@njanakiev Try two things:
xfvb-run
wrapper, see https://github.com/maptiler/tileserver-gl/issues/336#issuecomment-451099438xfvb
with loaded GLX
, i.e. follow the run.sh
https://github.com/maptiler/tileserver-gl/blob/8126b31081bce168e9714e9b7d67ad09b399aaf1/run.sh#L19you can debug egl with setting EGL_LOG_LEVEL=debug
in your environment.
in my case egl wanted to use gbm for whatever reason, but i could convince it by explicitly setting EGL_PLATFORM=x11
in the environment.
I have built tileserver earlier and it was running fine. Recently I reboot the server and made an update. After the update I was not able to run Tileserver-GL. Its showing the following error