Hi Team, I am getting below sql error while stating render. Request you yo help me understand issue and fix for it.
asked 22 May '18, 12:13 jiten19851985 SomeoneElse ♦ |
I wrote this code and I was testing it on Ubuntu 18.04 without problems. In the past we had some problems with database compatibility: https://github.com/gravitystorm/openstreetmap-carto/pull/3078 I'm not familiar with databases, so please open the ticket here: https://github.com/gravitystorm/openstreetmap-carto/issues If you find the right solution, I will test it on my setup and merge the code as soon as possible. answered 24 May '18, 11:32 kocio 2
Hi, upgraded postgres to 9.5 and all ok now. Thanks a lot your help on this. Thanks
(24 May '18, 13:35)
jiten19851985
|
Your pasted message is hardly legible. The problem might be helped by putting parentheses around any occurrence of answered 22 May '18, 13:59 Frederik Ramm ♦ |
I suspect that the style that you're using requires hstore and you haven't created it. See https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/ where it says " answered 23 May '18, 08:18 SomeoneElse ♦ hstore is there in the DB gis gis=# gis=# gis=# \dx List of installed extensions Name | Version | Schema | Description ---------+---------+------------+--------------------------------------------------------------------- hstore | 1.1 | public | data type for storing sets of (key, value) pairs plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language postgis | 2.0.7 | public | PostGIS geometry, geography, and raster spatial types and functions (3 rows) gis=#
(23 May '18, 09:35)
jiten19851985
We'd probably need a bit more information about how you got to where you are? What was installed, and on what OS? Did you update from a previous version (perhaps you've got two versions of postgres/postgis, one with hstore, one without)?
(23 May '18, 09:39)
SomeoneElse ♦
this is a fresh installation on RHEL 7.4 by following steps from below two links. https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ https://www.keisan.io/knowledgebase/centos-7-open-street-map-tile-server below is the version of postgres * postgis [root@mapsrv ~]# rpm -qa | grep postg postgresql-devel-9.2.23-3.el7_4.x86_64 postgresql-9.2.23-3.el7_4.x86_64 postgis-utils-2.0.7-1.el7.x86_64 postgresql-server-9.2.23-3.el7_4.x86_64 postgis-docs-2.0.7-1.el7.x86_64 postgresql-contrib-9.2.23-3.el7_4.x86_64 postgis-debuginfo-2.0.7-1.el7.x86_64 postgresql-libs-9.2.23-3.el7_4.x86_64 postgis-2.0.7-1.el7.x86_64 [root@mapsrv ~]#
(23 May '18, 11:37)
jiten19851985
You've got further than me on Centos then :) (I couldn't get Mapnik to build cleanly there)
(23 May '18, 11:46)
SomeoneElse ♦
I had a hard time installing mapnik but was able to install it finally. now I am stuck at this issue. :(
(23 May '18, 11:48)
jiten19851985
Hi Team, I am still facing the issue, any help on this much appreciated. Thanks
(24 May '18, 09:17)
jiten19851985
It's hardly surprising that no-one has looked at this again in the last 21 hours :) As you have discovered, there isn't an "out of the box" solution on Redhat-based distributions. There are for Ubuntu (the last 2 long term support releases have good support). Other options might include Docker (though I'd personally think twice before running that in production; and you're not removing the Ubuntu dependancy there, just hiding it).
(24 May '18, 10:06)
SomeoneElse ♦
1
This error is clearly a PostgreSQL one. Follow standard methods to resolve queries which generate errors on any DB package (i.e., take the actual query, run it in isolation vs the db, break it down to isolate the offending clause, review the DDL of tables/views used in the query, etc.) Also avoid posting large screeds of error messages here, they arent particularly readable).
(24 May '18, 11:29)
SK53 ♦
Hi Guys, Thanks for your help
(24 May '18, 13:36)
jiten19851985
showing 5 of 9
show 4 more comments
|
This snapshot may help