Tiles don't render or it takes too long - leaflet
The problem:
tiles are being rendered extremly long time (1 day or never)
The question:
What to do to make tiles loading and loading quickly? How to solve this problem?
The description:
While trying to increase tiles render speed I did reclustering described in this web site https://www.paulnorman.ca/blog/2016/06/improving-speed-with-reclustering/.
After doing this the tiles on my map started to generate even longer (tile rendering was slow even before).
Interesting that http://my_localhost/osm/0/0/0.png is loading quickly, and some tiles on 6-8 zoom are also loading. All the other tiles are not loading.
Renderd shows DEBUG: Connection 0, fd 34 closed, now 29 left.
I was looking for solution on the Internet, but I didn't find the solution.
renderd.conf:
[renderd]
stats_file=/var/run/renderd/renderd.stats
socketname=/var/run/renderd/renderd.sock
num_threads=10
tile_dir=/var/lib/mod_tile
[mapnik]
plugins_dir=/usr/lib/mapnik/2.0/input
font_dir=/usr/share/fonts/truetype/ttf-dejavu
font_dir_recurse=false
[default]
URI=/osm/
TILEDIR=/var/lib/mod_tile
XML=/etc/mapnik-osm-data/osm.xml
DESCRIPTION=This is the standard osm mapnik style
Part of sites-available/tileserver.conf
LoadTileConfigFile /etc/renderd.conf
ModTileRequestTimeout 300
ModTileMissingRequestTimeout 1800
ModTileMaxLoadOld 2
ModTileMaxLoadMissing 5
ModTileRenderdSocketName /var/run/renderd/renderd.sock
renderd[30436]: Rendering daemon started
renderd[30436]: Initiating request_queue
renderd[30436]: Parsing section renderd
renderd[30436]: Parsing render section 0
renderd[30436]: Parsing section mapnik
renderd[30436]: Parsing section default
renderd[30436]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[30436]: config renderd: num_threads=10
renderd[30436]: config renderd: num_slaves=0
renderd[30436]: config renderd: tile_dir=/var/www/maps/tiles/cache
renderd[30436]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[30436]: config mapnik: plugins_dir=/usr/lib/mapnik/3.0/input
renderd[30436]: config mapnik: font_dir=/usr/share/fonts/truetype/dejavu
renderd[30436]: config mapnik: font_dir_recurse=0
renderd[30436]: config renderd(0): Active
renderd[30436]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[30436]: config renderd(0): num_threads=10
renderd[30436]: config renderd(0): tile_dir=/var/www/maps/tiles/cache
renderd[30436]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[30436]: config map 0: name(default) file(/var/www/maps/tiles/styles/osm_bright/map_bright.xml) uri(/osm/) htcp() host()
renderd[30436]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[30436]: Created server socket 3
renderd[30436]: Renderd is using mapnik version 3.0.22
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Italic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-ExtraLight.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuMathTeXGyre.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-BoldOblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
Running in foreground mode...
renderd[30436]: Starting stats thread
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
...
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(621), y(352), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(621), y(353), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(620), y(352), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(625), y(352), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(625), y(353), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(621), y(354), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(626), y(353), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(620), y(352), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(626), y(352), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(625), y(354), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(620), y(353), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(626), y(354), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(623), y(354), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(620), y(354), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
renderd[30436]: DEBUG: Got incoming connection, fd 61, number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default), z(10), x(624), y(353), mime(image/png), options()
renderd[30436]: DEBUG: Connection 48, fd 61 closed, now 48 left
Could you help me, please? Have a nice day.
Related
Streaming replication postgresql cluster
I am setting up a postgresql cluster through pgpool-II. Right now the pgpool part seems to be ok, in the sense that it does not report any error and all the commands return successfully after setting up the first follower. This is what I am running: on the primary: SELECT pg_create_physical_replication_slot('pg_1'); on a completely empty database, through a connection from pgpool: rm -rf /var/lib/postgresql/data/* /var/lib/postgresql/archivedir/* pg_basebackup -h pg-0 -U replicator -p 5432 -D /var/lib/postgresql/data -X stream create /var/lib/postgresql/data/myrecovery.conf with this contents: primary_conninfo = 'host=pg-0 port=5432 user=replicator application_name=pg-1 passfile=''/var/lib/postgresql/.pgpass''' recovery_target_timeline = 'latest' restore_command = 'scp pg-0:/var/lib/postgresql/archivedir/%f %p' primary_slot_name = 'pg_1' (note: this file is already include_if_exists on the postgresql config file) the file /var/lib/postgresql/data/standby.signal gets touched. on the just created database, through a connection from pgpool: pg_ctl -l /dev/null -w -D /var/lib/postgresql/data status || pg_ctl -l /dev/null -D /var/lib/postgresql/data -o '--config-file=/etc/postgresl/postgresql.conf' start Now: I can see that the server on pg-1 is just waiting for the connection to succeed. On the other hand, on pg-0 I get the following output, repeated every few seconds: [1] DEBUG: reaping dead processes [1] DEBUG: server process (PID 3196) exited with exit code 255 [1] LOG: server process (PID 3196) exited with exit code 255 [1] LOG: terminating any other active server processes [1] DEBUG: sending SIGQUIT to process 3194 [1] DEBUG: sending SIGQUIT to process 3190 [1] DEBUG: sending SIGQUIT to process 3189 [1] DEBUG: sending SIGQUIT to process 3191 [1] DEBUG: sending SIGQUIT to process 3192 [1] DEBUG: sending SIGQUIT to process 3193 [1] DEBUG: reaping dead processes [3193] DEBUG: writing stats file "pg_stat/global.stat" [1] DEBUG: reaping dead processes [3193] DEBUG: shmem_exit(-1): 0 before_shmem_exit callbacks to make [3193] DEBUG: shmem_exit(-1): 0 on_shmem_exit callbacks to make [3193] DEBUG: proc_exit(-1): 0 callbacks to make [1] DEBUG: reaping dead processes [1] LOG: all server processes terminated; reinitializing [1] DEBUG: shmem_exit(1): 0 before_shmem_exit callbacks to make [1] DEBUG: shmem_exit(1): 5 on_shmem_exit callbacks to make [1] DEBUG: cleaning up dynamic shared memory control segment with ID 899647808 [1] DEBUG: invoking IpcMemoryCreate(size=15769600) [1] DEBUG: mmap(16777216) with MAP_HUGETLB failed, huge pages disabled: Out of memory [1] DEBUG: dynamic shared memory system will support 674 segments [1] DEBUG: created dynamic shared memory control segment 1156494630 (26976 bytes) [1] DEBUG: forked new backend, pid=3198 socket=9 [3197] LOG: database system was interrupted; last known up at 2022-06-08 16:50:23 GMT [3197] DEBUG: removing all temporary WAL segments [3198] FATAL: the database system is in recovery mode [3198] DEBUG: shmem_exit(1): 0 before_shmem_exit callbacks to make [3198] DEBUG: shmem_exit(1): 0 on_shmem_exit callbacks to make [3198] DEBUG: proc_exit(1): 1 callbacks to make [3198] DEBUG: exit(1) [3198] DEBUG: shmem_exit(-1): 0 before_shmem_exit callbacks to make [3198] DEBUG: shmem_exit(-1): 0 on_shmem_exit callbacks to make [3198] DEBUG: proc_exit(-1): 0 callbacks to make [1] DEBUG: reaping dead processes [1] DEBUG: server process (PID 3198) exited with exit code 1 [1] DEBUG: reaping dead processes [1] DEBUG: server process (PID 3200) exited with exit code 255 [3197] DEBUG: checkpoint record is at 0/3005530 [3197] DEBUG: redo record is at 0/3005530; shutdown true [3197] DEBUG: next transaction ID: 736; next OID: 24576 [3197] DEBUG: next MultiXactId: 1; next MultiXactOffset: 0 [3197] DEBUG: oldest unfrozen transaction ID: 727, in database 1 [3197] DEBUG: oldest MultiXactId: 1, in database 1 [3197] DEBUG: commit timestamp Xid oldest/newest: 0/0 [3197] DEBUG: transaction ID wrap limit is 2147484374, limited by database with OID 1 [3197] DEBUG: MultiXactId wrap limit is 2147483648, limited by database with OID 1 [3197] DEBUG: starting up replication slots [3197] DEBUG: restoring replication slot from "pg_replslot/pg_1/state" [3197] DEBUG: starting up replication origin progress state [3197] LOG: database system was not properly shut down; automatic recovery in progress [3197] DEBUG: resetting unlogged relations: cleanup 1 init 0 [3197] LOG: invalid record length at 0/30055A8: wanted 24, got 0 [3197] LOG: redo is not required [3197] DEBUG: resetting unlogged relations: cleanup 0 init 1 [3197] DEBUG: performing replication slot checkpoint [3197] DEBUG: attempting to remove WAL segments older than log file 000000000000000000000002 [3197] DEBUG: MultiXactId wrap limit is 2147483648, limited by database with OID 1 [3197] DEBUG: MultiXact member stop limit is now 4294914944 based on MultiXact 1 [3197] DEBUG: shmem_exit(0): 1 before_shmem_exit callbacks to make [3197] DEBUG: shmem_exit(0): 7 on_shmem_exit callbacks to make [3197] DEBUG: proc_exit(0): 2 callbacks to make [3197] DEBUG: exit(0) [3197] DEBUG: shmem_exit(-1): 0 before_shmem_exit callbacks to make [3197] DEBUG: shmem_exit(-1): 0 on_shmem_exit callbacks to make [3197] DEBUG: proc_exit(-1): 0 callbacks to make [1] DEBUG: reaping dead processes [3201] DEBUG: checkpointer updated shared memory configuration values [3204] DEBUG: autovacuum launcher started [1] DEBUG: starting background worker process "logical replication launcher" [3204] DEBUG: InitPostgres [3204] DEBUG: my backend ID is 1 [1] LOG: database system is ready to accept connections [3204] DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: logical replication launcher started [3204] DEBUG: CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: InitPostgres [3207] DEBUG: my backend ID is 2 [3206] DEBUG: received inquiry for database 0 [3206] DEBUG: writing stats file "pg_stat_tmp/global.stat" [3207] DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 [3207] DEBUG: CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 [3204] DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 [3204] DEBUG: CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 [1] DEBUG: forked new backend, pid=3208 socket=9 [3208] DEBUG: InitPostgres [3208] DEBUG: my backend ID is 3 [3208] DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0 [3208] DEBUG: processing received SASL response of length 50 [3208] DEBUG: sending SASL challenge of length 84 [3208] DEBUG: processing received SASL response of length 104 [3208] DEBUG: sending SASL challenge of length 46 [3208] DEBUG: CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGRESS, xid/subid/cid: 0/1/0 [3208] DEBUG: shmem_exit(0): 1 before_shmem_exit callbacks to make I am completely lost: what is going on?
Mojo::UserAgent fails to verify certificate, where LWP::UserAgent succeeds
I have a simple perl script that uses LWP::UserAgent to connect to a secure site. It works fine. When I use Mojo::UserAgent, it fails to validate the certificate. This is reliable and repeatable. The basic Perl code is: use strict; use warnings; use IO::Socket::SSL 1.980; use LWP::UserAgent; use Mojo::UserAgent; $IO::Socket::SSL::DEBUG=3; my $dst = "<DOMAIN>"; my $url = "<URL-AT-DOMAIN>"; my $A_OR_B = 1; my $ua; if ($A_OR_B) { $ua = Mojo::UserAgent->new(); $ua->connect_timeout(20); } else { $ua = LWP::UserAgent->new(); } my $resp = $ua->get($url); if ($A_OR_B) { print $resp->result->message; print $resp; } else { print $resp->status_line."\n"; } The output from the IO::Socket debugging is: For the Mojo (failure): DEBUG: .../IO/Socket/SSL.pm:3010: new ctx 48892560 DEBUG: .../IO/Socket/SSL.pm:1638: don't start handshake: IO::Socket::SSL=GLOB(0x2e957d8) DEBUG: .../IO/Socket/SSL.pm:787: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:829: using SNI with hostname <DOMAIN> DEBUG: .../IO/Socket/SSL.pm:864: request OCSP stapling DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:907: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:2911: did not get stapled OCSP response DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:907: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:907: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:2864: ok=0 [3] /O=Digital Signature Trust Co./CN=DST Root CA X3/O=Digital Signature Trust Co./CN=DST Root CA X3 DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:900: SSL connect attempt failed DEBUG: .../IO/Socket/SSL.pm:900: local error: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed DEBUG: .../IO/Socket/SSL.pm:903: fatal SSL error: SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed DEBUG: .../IO/Socket/SSL.pm:3059: free ctx 48892560 open= DEBUG: .../IO/Socket/SSL.pm:3063: free ctx 48892560 callback DEBUG: .../IO/Socket/SSL.pm:3070: OK free ctx 48892560 SSL connect attempt failed error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /home/briefly/bad.pl line 26. and the output for the LWP version (success), is: DEBUG: .../IO/Socket/SSL.pm:3010: new ctx 41136976 DEBUG: .../IO/Socket/SSL.pm:762: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:764: socket connected DEBUG: .../IO/Socket/SSL.pm:787: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:829: using SNI with hostname <DOMAIN> DEBUG: .../IO/Socket/SSL.pm:864: request OCSP stapling DEBUG: .../IO/Socket/SSL.pm:880: set socket to non-blocking to enforce timeout=180 DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:907: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:917: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:937: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:2911: did not get stapled OCSP response DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:907: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:917: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:937: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:2864: ok=1 [2] /C=US/O=Internet Security Research Group/CN=ISRG Root X1/C=US/O=Internet Security Research Group/CN=ISRG Root X1 DEBUG: .../IO/Socket/SSL.pm:2864: ok=1 [1] /C=US/O=Internet Security Research Group/CN=ISRG Root X1/C=US/O=Let's Encrypt/CN=R3 DEBUG: .../IO/Socket/SSL.pm:2864: ok=1 [0] /C=US/O=Let's Encrypt/CN=R3/CN=tls.automattic.com DEBUG: .../IO/Socket/SSL.pm:1840: scheme=www cert=41975232 DEBUG: .../IO/Socket/SSL.pm:1850: identity=< **VERY LONG LIST OF DOMAINS** > DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:907: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:917: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:937: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:894: call Net::SSLeay::connect DEBUG: .../IO/Socket/SSL.pm:897: done Net::SSLeay::connect -> 1 DEBUG: .../IO/Socket/SSL.pm:952: ssl handshake done DEBUG: .../IO/Socket/SSL.pm:3059: free ctx 41136976 open= DEBUG: .../IO/Socket/SSL.pm:3063: free ctx 41136976 callback DEBUG: .../IO/Socket/SSL.pm:3070: OK free ctx 41136976 200 OK Does anyone have any insights?
I would suggest that LWP:UserAgent and Mojo::UserAgent use different trust stores. LWP::UserAgent will default to using Mozilla::CA while Mojo::UserAgent not. Try to enforce the use of Mozilla::CA with Mojo::UserAgent with $ua->ca(Mozilla::CA::SSL_ca_file());
Unable to make SSL connecting with vimeo api URL
I am running Debian Jessie. I have a script that was working perfectly a couple of weeks ago on a virtual machine but has now stopped working suddenly. I can't think of any perl module updates I made that would have broken this. And if I run the script from another Jessie server, it works fine. Here is the relevant code: use LWP::UserAgent; my $browser = LWP::UserAgent->new; my $url = 'https://api.vimeo.com/oauth/authorize/client'; my $response = $browser->post($url, { grant_type => 'client_credentials' }, 'Authorization' => ' basic ' . encode_base64('CLIENT_ID:CLIENT_SECRET') ); if ($response->code ne '200') { logf("There was a problem with the server response from Vimeo while requesting an access token.\nServer response: " . $response->decoded_content); } The error thrown is coming from /usr/share/perl5/LWP/Protocol/http.pm line 49 and reads: Can't connect to api.vimeo.com:443 When I run the script with use IO::Socket::SSL qw(debug3); here's what I get for output: DEBUG: .../IO/Socket/SSL.pm:2537: new ctx 56137248 DEBUG: .../IO/Socket/SSL.pm:529: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:531: socket connected DEBUG: .../IO/Socket/SSL.pm:553: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:586: using SNI with hostname api.vimeo.com DEBUG: .../IO/Socket/SSL.pm:621: request OCSP stapling DEBUG: .../IO/Socket/SSL.pm:640: set socket to non-blocking to enforce timeout=180 DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=58104432 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=59040416 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=58950080 DEBUG: .../IO/Socket/SSL.pm:1548: scheme=www cert=58950080 DEBUG: .../IO/Socket/SSL.pm:1558: identity=api.vimeo.com cn=*.vimeo.com alt=2 *.vimeo.com 2 vimeo.com DEBUG: .../IO/Socket/SSL.pm:2443: got stapled OCSP response run basic verify at /usr/share/perl5/IO/Socket/SSL.pm line 2450. found issuer in chain at /usr/share/perl5/IO/Socket/SSL.pm line 2457. got issuer at /usr/share/perl5/IO/Socket/SSL.pm line 2457. DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:1769: SSL connect attempt failed DEBUG: .../IO/Socket/SSL.pm:1774: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:659: fatal SSL error: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:529: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:531: socket connected DEBUG: .../IO/Socket/SSL.pm:553: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:586: using SNI with hostname api.vimeo.com DEBUG: .../IO/Socket/SSL.pm:621: request OCSP stapling DEBUG: .../IO/Socket/SSL.pm:640: set socket to non-blocking to enforce timeout=180 DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=58104432 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=61018848 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=61025968 DEBUG: .../IO/Socket/SSL.pm:1548: scheme=www cert=61025968 DEBUG: .../IO/Socket/SSL.pm:1558: identity=api.vimeo.com cn=*.vimeo.com alt=2 *.vimeo.com 2 vimeo.com DEBUG: .../IO/Socket/SSL.pm:2443: got stapled OCSP response run basic verify at /usr/share/perl5/IO/Socket/SSL.pm line 2450. found issuer in chain at /usr/share/perl5/IO/Socket/SSL.pm line 2457. got issuer at /usr/share/perl5/IO/Socket/SSL.pm line 2457. DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:1769: SSL connect attempt failed DEBUG: .../IO/Socket/SSL.pm:1774: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:659: fatal SSL error: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:529: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:531: socket connected DEBUG: .../IO/Socket/SSL.pm:553: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:586: using SNI with hostname api.vimeo.com DEBUG: .../IO/Socket/SSL.pm:621: request OCSP stapling DEBUG: .../IO/Socket/SSL.pm:640: set socket to non-blocking to enforce timeout=180 DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=58104432 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=59035200 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=61025968 DEBUG: .../IO/Socket/SSL.pm:1548: scheme=www cert=61025968 DEBUG: .../IO/Socket/SSL.pm:1558: identity=api.vimeo.com cn=*.vimeo.com alt=2 *.vimeo.com 2 vimeo.com DEBUG: .../IO/Socket/SSL.pm:2443: got stapled OCSP response run basic verify at /usr/share/perl5/IO/Socket/SSL.pm line 2450. found issuer in chain at /usr/share/perl5/IO/Socket/SSL.pm line 2457. got issuer at /usr/share/perl5/IO/Socket/SSL.pm line 2457. DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:1769: SSL connect attempt failed DEBUG: .../IO/Socket/SSL.pm:1774: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:659: fatal SSL error: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:529: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:531: socket connected DEBUG: .../IO/Socket/SSL.pm:553: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:586: using SNI with hostname api.vimeo.com DEBUG: .../IO/Socket/SSL.pm:621: request OCSP stapling DEBUG: .../IO/Socket/SSL.pm:640: set socket to non-blocking to enforce timeout=180 DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=58104432 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=59044736 DEBUG: .../IO/Socket/SSL.pm:2393: ok=1 cert=61025968 DEBUG: .../IO/Socket/SSL.pm:1548: scheme=www cert=61025968 DEBUG: .../IO/Socket/SSL.pm:1558: identity=api.vimeo.com cn=*.vimeo.com alt=2 *.vimeo.com 2 vimeo.com DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:663: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:673: waiting for fd to become ready: SSL wants a read first DEBUG: .../IO/Socket/SSL.pm:693: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:2443: got stapled OCSP response run basic verify at /usr/share/perl5/IO/Socket/SSL.pm line 2450. found issuer in chain at /usr/share/perl5/IO/Socket/SSL.pm line 2457. got issuer at /usr/share/perl5/IO/Socket/SSL.pm line 2457. DEBUG: .../IO/Socket/SSL.pm:653: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:1769: SSL connect attempt failed DEBUG: .../IO/Socket/SSL.pm:1774: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:659: fatal SSL error: SSL connect attempt failed error:2707307E:OCSP routines:OCSP_check_validity:status not yet valid DEBUG: .../IO/Socket/SSL.pm:1758: IO::Socket::IP configuration failed DEBUG: .../IO/Socket/SSL.pm:2570: free ctx 56137248 open=56137248 DEBUG: .../IO/Socket/SSL.pm:2575: free ctx 56137248 callback DEBUG: .../IO/Socket/SSL.pm:2582: OK free ctx 56137248 The the $browser user agent is able to successfully execute a get request https://facebook.com without issue. It just doesn't seem to work for Vimeo.
fatal SSL error: ... :OCSP_check_validity:status not yet valid Vimeo uses OCSP stapling to ease revocation checks but attaches a OCSP response which your system considers as not yet valid. It might be that the time on your system is wrong so that it thinks that the timestamp in the response is in the future, whereas it is in the present. And if I run the script from another Jessie server, it works fine. If both servers run the same software then I guess that the problematic server has the wrong time.
Problems with assembly OSM
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux basil#debian:/$ sudo renderd -f -c /usr/local/etc/renderd.conf [sudo] password for basil: renderd[8219]: Rendering daemon started renderd[8219]: Initiating reqyest_queue renderd[8219]: Parsing section renderd renderd[8219]: Parsing render section 0 renderd[8219]: Parsing section mapnik renderd[8219]: Parsing section default renderd[8219]: config renderd: unix socketname=/var/run/renderd/renderd.sock renderd[8219]: config renderd: num_threads=4 renderd[8219]: config renderd: num_slaves=0 renderd[8219]: config renderd: tile_dir=/var/lib/mod_tile renderd[8219]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[8219]: config mapnik: plugins_dir=/usr/local/lib/mapnik/input renderd[8219]: config mapnik: font_dir=/usr/share/fonts/truetype/ttf-dejavu renderd[8219]: config mapnik: font_dir_recurse=1 renderd[8219]: config renderd(0): Active renderd[8219]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock renderd[8219]: config renderd(0): num_threads=4 renderd[8219]: config renderd(0): tile_dir=/var/lib/mod_tile renderd[8219]: config renderd(0): stats_file=/var/run/renderd/renderd.stats renderd[8219]: config map 0: name(default) file(/home/basil/src/mapnik-style/osm.xml) uri(/osm_tiles/) htcp() host(localhost) renderd[8219]: Initialising unix server socket on /var/run/renderd/renderd.sock renderd[8219]: Created server socket 4 renderd[8219]: Renderd is using mapnik version 2.0.3 renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Italic.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf renderd[8219]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf Running in foreground mode... renderd[8219]: Starting stats thread debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[8219]: Loading parameterization function for debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[8219]: Loading parameterization function for debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[8219]: Loading parameterization function for debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[8219]: Loading parameterization function for Postgis Plugin: SRID warning, using srid=-1 Postgis Plugin: SRID warning, using srid=-1 Postgis Plugin: SRID warning, using srid=-1 renderd[8219]: An error occurred while loading the map layer 'default': : ERROR: syntax error at or near "6.9357733912442328e-310" LINE 1: SELECT * FROM 6.9357733912442328e-310 LIMIT 0 ^ Full sql was: 'SELECT * FROM 6.9357733912442328e-310 LIMIT 0' (encountered during parsing of layer 'landcover' in map '/home/basil/src/mapnik-style/osm.xml') renderd[8219]: An error occurred while loading the map layer 'defaul`enter code here`t': : ERROR: syntax error at or near "6.9357767068626562e-310" LINE 1: SELECT * FROM 6.9357767068626562e-310 LIMIT 0 ^ Full sql was: 'SELECT * FROM 6.9357767068626562e-310 LIMIT 0' (encountered during parsing of layer 'landcover' in map '/home/basil/src/mapnik-style/osm.xml') Postgis Plugin: SRID warning, using srid=-1 renderd[8219]: An error occurred while loading the map layer 'default': : ERROR: syntax error at or near "6.9357833380995029e-310" LINE 1: SELECT * FROM 6.9357833380995029e-310 LIMIT 0 ^ Full sql was: 'SELECT * FROM 6.9357833380995029e-310 LIMIT 0' (encountered during parsing of layer 'landcover' in map '/home/basil/src/mapnik-style/osm.xml') renderd[8219]: An error occurred while loading the map layer 'default': : ERROR: syntax error at or near "6.9357800224810796e-310" LINE 1: SELECT * FROM 6.9357800224810796e-310 LIMIT 0 ^ Full sql was: 'SELECT * FROM 6.9357800224810796e-310 LIMIT 0' (encountered during parsing of layer 'landcover' in map '/home/basil/src/mapnik-style/osm.xml') ================ what could it be? renderd[8219]: An error occurred while loading the map layer 'default': : ERROR: syntax error at or near "6.9357733912442328e-310" LINE 1: SELECT * FROM 6.9357733912442328e-310 LIMIT 0 can not quite build this system what could be the problem? Thanks for the help
How to solve my authentication issue (osm server creation)
i'm trying to set up an Openstreetmap server on my ubuntu server, which is on a virtual machine. According to this: http://tuts.syrinxoon.net/tuts/installer-un-serveur-cartographique-avec-openstreetmap, i've done everything. still it doesn't work. I checked the rendered log. Here is what comes from the ouput of renderd -f renderd[13129]: Rendering daemon started renderd[13129]: Parsing section renderd renderd[13129]: Parsing render section 0 renderd[13129]: Parsing section mapnik renderd[13129]: Parsing section default renderd[13129]: config renderd: unix socketname=/var/run/renderd/renderd.sock renderd[13129]: config renderd: num_threads=4 renderd[13129]: config renderd: num_slaves=0 renderd[13129]: config renderd: tile_dir=/var/lib/mod_tile renderd[13129]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[13129]: config mapnik: plugins_dir=/usr/lib/mapnik/2.0/input renderd[13129]: config mapnik: font_dir=/usr/share/fonts/truetype/ttf-dejavu renderd[13129]: config mapnik: font_dir_recurse=0 renderd[13129]: config renderd(0): Active renderd[13129]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock renderd[13129]: config renderd(0): num_threads=4 renderd[13129]: config renderd(0): tile_dir=/var/lib/mod_tile renderd[13129]: config renderd(0): stats_file=/var/run/renderd/renderd.stats renderd[13129]: config map 0: name(default) file(/etc/mapnik-osm-data/osm.xml) uri(/osm/) htcp() host() renderd[13129]: Initialising unix server socket on /var/run/renderd/renderd.sock renderd[13129]: Created server socket 4 renderd[13129]: Renderd is using mapnik version 2.0.0 renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Italic.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf Running in foreground mode... renderd[13129]: Starting stats thread renderd[13129]: An error occurred while loading the map layer 'default': : FATAL: password authentication failed for user "osm" FATAL: password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml') renderd[13129]: An error occurred while loading the map layer 'default': : FATAL: password authentication failed for user "osm" FATAL: password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml') renderd[13129]: An error occurred while loading the map layer 'default': : FATAL: password authentication failed for user "osm" FATAL: password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml') renderd[13129]: An error occurred while loading the map layer 'default': : FATAL: password authentication failed for user "osm" FATAL: password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml') I believe the problem is at the end of this log. authentication failed for user osm, but i don't really know what it means. the user osm has a password, which is also "osm" So does someone has an idea of what could be wrong ? thank you guys for helping.
It's failing to connect to your database - you need to make sure the database username and password in your mapnik stylesheet are correct.
Got it ;) i just needed to modify that file /etc/mapnik-osm-data/inc/datasource-settings.xml.inc to fill it with right informations about database ;)