Overv / openstreetmap-tile-server

Docker file for a minimal effort OpenStreetMap tile server
Apache License 2.0
1.23k stars 487 forks source link

hangs on startup #399

Open Eric-Arz opened 1 year ago

Eric-Arz commented 1 year ago

import succeeds without any errors. when trying to start the server with the run command it just hangs on loading:

** INFO: 10:56:08.379: Rendering daemon started
** INFO: 10:56:08.380: Initialising request_queue
** INFO: 10:56:08.380: Parsing section renderd
** INFO: 10:56:08.380: Parsing render section 0
** INFO: 10:56:08.380: Parsing section mapnik
** INFO: 10:56:08.380: Parsing section default
** INFO: 10:56:08.380: config renderd: unix socketname=/run/renderd/renderd.sock
** INFO: 10:56:08.380: config renderd: num_threads=4
** INFO: 10:56:08.380: config renderd: num_slaves=0
** INFO: 10:56:08.380: config renderd: tile_dir=/var/cache/renderd/tiles
** INFO: 10:56:08.380: config renderd: stats_file=/run/renderd/renderd.stats
** INFO: 10:56:08.380: config mapnik:  plugins_dir=/usr/lib/mapnik/3.1/input
** INFO: 10:56:08.380: config mapnik:  font_dir=/usr/share/fonts
** INFO: 10:56:08.380: config mapnik:  font_dir_recurse=1
** INFO: 10:56:08.380: config renderd(0): Active
** INFO: 10:56:08.380: config renderd(0): unix socketname=/run/renderd/renderd.sock
** INFO: 10:56:08.381: config renderd(0): num_threads=4
** INFO: 10:56:08.381: config renderd(0): tile_dir=/var/cache/renderd/tiles
** INFO: 10:56:08.381: config renderd(0): stats_file=/run/renderd/renderd.stats
** INFO: 10:56:08.381: config map 0:   name(default) file(/home/renderer/src/openstreetmap-carto/mapnik.xml) uri(/tile/) htcp() host(localhost)
** INFO: 10:56:08.381: Initialising unix server socket on /run/renderd/renderd.sock
** INFO: 10:56:08.381: Renderd is using mapnik version 3.1.0
** INFO: 10:56:08.627: Running in foreground mode...
** INFO: 10:56:08.627: Loading parameterization function for 
** INFO: 10:56:08.627: Loading parameterization function for 
** INFO: 10:56:08.628: Loading parameterization function for 
** INFO: 10:56:08.628: Loading parameterization function for 
gyiptgyipt commented 1 year ago

I also have that issue, I run it in my local machine(ubuntu 22.04) without using docker by following tutorial (link). Please, let me know if you solved this problem. Thanks.

Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.739: config renderd(0): tile_dir=/var/cache/renderd/tiles
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.739: config renderd(0): stats_file=/run/renderd/renderd.stats
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.739: config map 0:   name(default) file(/home/osm/openstreetmap-carto/style.xml) uri(/osm/) htcp() hos>
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.739: Initialising unix server socket on /run/renderd/renderd.sock
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.739: Renderd is using mapnik version 3.1.0
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.906: Running in foreground mode...
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.907: Loading parameterization function for
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.911: Loading parameterization function for
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.912: Loading parameterization function for
Nov 05 01:20:56 dev renderd[26552]: ** INFO: 01:20:56.913: Loading parameterization function for
Nov 05 01:27:32 dev systemd[1]: Stopping Daemon that renders map tiles using mapnik...
Nov 05 01:27:33 dev systemd[1]: renderd.service: Deactivated successfully.
Nov 05 01:27:33 dev systemd[1]: Stopped Daemon that renders map tiles using mapnik.
Nov 05 01:27:33 dev systemd[1]: renderd.service: Consumed 2.902s CPU time.
Nov 05 01:27:33 dev systemd[1]: Started Daemon that renders map tiles using mapnik.
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: Rendering daemon started
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: Initialising request_queue
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: Parsing section renderd
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: Parsing render section 0
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: Parsing section mapnik
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: Parsing section default
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd: unix socketname=/run/renderd/renderd.sock
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd: num_threads=4
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd: num_slaves=0
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd: tile_dir=/var/cache/renderd/tiles
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd: stats_file=/run/renderd/renderd.stats
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config mapnik:  plugins_dir=/usr/lib/mapnik/3.1/input
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config mapnik:  font_dir=/usr/share/fonts/truetype
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config mapnik:  font_dir_recurse=1
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd(0): Active
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd(0): unix socketname=/run/renderd/renderd.sock
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.101: config renderd(0): num_threads=4
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.102: config renderd(0): tile_dir=/var/cache/renderd/tiles
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.102: config renderd(0): stats_file=/run/renderd/renderd.stats
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.102: config map 0:   name(default) file(/home/osm/openstreetmap-carto/style.xml) uri(/osm/) htcp() hos>
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.102: Initialising unix server socket on /run/renderd/renderd.sock
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.102: Renderd is using mapnik version 3.1.0
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.365: Running in foreground mode...
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.366: Loading parameterization function for
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.366: Loading parameterization function for
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.366: Loading parameterization function for
Nov 05 01:27:33 dev renderd[28104]: ** INFO: 01:27:33.366: Loading parameterization function for 
Eric-Arz commented 1 year ago

@Htet-Wai-Yan-HWY We were not able to resolve it. Flat out doesn't work on some machines, including our production server. We are currently working on setting up the Tileserver ourselves so we no longer rely on this container.

gyiptgyipt commented 1 year ago

@Eric-Arz Thanks for the reply.

waseigo commented 2 months ago

3 different VMs, plus one bare-metal server -- all 4 show stuck "Loading parameterization function for", and using curl with the right parameters shows that a connection is established but then nothing happens. @Overv, would you happen to have any ideas?