maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.24k stars 639 forks source link

I have tried all the available solutions and they are not working for me. I am using debian 9 #595

Closed dmsput closed 2 years ago

dmsput commented 2 years ago

`root@dimas-VirtualBox:/# sudo systemctl status tileserver-gl.service × tileserver-gl.service Loaded: loaded (/etc/systemd/system/tileserver-gl.service; enabled; vendor preset: enab> Active: failed (Result: exit-code) since Tue 2022-08-02 14:20:02 WIB; 1s ago Process: 3177 ExecStart=/usr/bin/node /usr/lib/node_modules/tileserver-gl/src/main.js -c> Main PID: 3177 (code=exited, status=203/EXEC) CPU: 956us

Agu 02 14:20:02 dimas-VirtualBox systemd[1]: tileserver-gl.service: Scheduled restart job, r> Agu 02 14:20:02 dimas-VirtualBox systemd[1]: Stopped tileserver-gl.service. Agu 02 14:20:02 dimas-VirtualBox systemd[1]: tileserver-gl.service: Start request repeated t> Agu 02 14:20:02 dimas-VirtualBox systemd[1]: tileserver-gl.service: Failed with result 'exit> Agu 02 14:20:02 dimas-VirtualBox systemd[1]: Failed to start tileserver-gl.service. `

altilunium commented 2 years ago

Try this tutorial : https://altilunium.my.id/blog/osm_selfhost/

acalcutt commented 2 years ago

With the release of v4.0.0, Ubuntu 20.04, Debian 11, or Macos 12 X64 are required.

It looks like you are starting this with systemd. I do that like this in my environment https://github.com/acalcutt/wifidb-tileserver-gl/blob/master/tileserver-gl/systemd/Tileserver.service

If you are running headless you also need Xvfb. On my setup I made a seperate service for that https://github.com/acalcutt/wifidb-tileserver-gl/blob/master/tileserver-gl/systemd/Xvfb.service

I'm going to close this since it isn't relevant to the current release

Edit: note, node 16 is now recommened. My example used node 10 which will no longer work.