Now I have bellow output
amila@amila-HP-ProBook-440-G5:~/Projects/osm/abc-maps/Final_maps$ osmium check-refs abc.osm.pbf
[======================================================================] 100%
There are 14563037 nodes, 1934442 ways, and 3202 relations in this file.
Nodes in ways missing: 0
But still I got the same issue.
[2019-11-27T14:44:34+01:00] 0:00:10 [step] Finished: Reading OSM data in 10.114401104s
[2019-11-27T14:44:34+01:00] 0:00:10 [step] Starting: Importing OSM data
[2019-11-27T14:44:34+01:00] 0:00:10 [step] Starting: Writing OSM data
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x575a96]
goroutine 145 [running]:
github.com/omniscale/imposm3/cache.(*coordsBunch).GetCoord(0x0, 0xffffffffffffffc2, 0x2, 0xc00432b540, 0x2)
/go/src/github.com/omniscale/imposm3/cache/delta.go:27 +0x26
github.com/omniscale/imposm3/cache.(*DeltaCoordsCache).FillWay(0xc000a96240, 0xc0001f5180, 0xc00432b4f0, 0x1)
/go/src/github.com/omniscale/imposm3/cache/delta.go:187 +0x16d
github.com/omniscale/imposm3/writer.(*WayWriter).loop.func1(0xc0001f5180, 0xc0001f5180)
/go/src/github.com/omniscale/imposm3/writer/ways.go:83 +0x56
github.com/omniscale/imposm3/writer.(*WayWriter).loop(0xc00a4ce960)
/go/src/github.com/omniscale/imposm3/writer/ways.go:98 +0x4de
created by github.com/omniscale/imposm3/writer.(*OsmElemWriter).Start
/go/src/github.com/omniscale/imposm3/writer/writer.go:52 +0x85
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x575a96]
goroutine 143 [running]:
github.com/omniscale/imposm3/cache.(*coordsBunch).GetCoord(0x0, 0xffffffffffffffc8, 0x8, 0xc0000d5680, 0x8)
/go/src/github.com/omniscale/imposm3/cache/delta.go:27 +0x26
github.com/omniscale/imposm3/cache.(*DeltaCoordsCache).FillWay(0xc000a96240, 0xc0001f52c0, 0xc000dc8910, 0x1)
/go/src/github.com/omniscale/imposm3/cache/delta.go:187 +0x16d
github.com/omniscale/imposm3/writer.(*WayWriter).loop.func1(0xc0001f52c0, 0xc0001f52c0)
/go/src/github.com/omniscale/imposm3/writer/ways.go:83 +0x56
github.com/omniscale/imposm3/writer.(*WayWriter).loop(0xc00a4ce960)
/go/src/github.com/omniscale/imposm3/writer/ways.go:98 +0x4de
created by github.com/omniscale/imposm3/writer.(*OsmElemWriter).Start
/go/src/github.com/omniscale/imposm3/writer/writer.go:52 +0x85
Traceback (most recent call last):
File "./run.py", line 30, in <module>
run()
File "./run.py", line 23, in run
import_osm()
File "/osmnames/osmnames/import_osm/import_osm.py", line 13, in import_osm
import_pbf_file()
File "/osmnames/osmnames/import_osm/import_osm.py", line 54, in import_pbf_file
"-overwritecache",
File "/osmnames/osmnames/logger.py", line 30, in logged_check_call
check_call(parameters)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['imposm', 'import', '-connection', 'postgis://osm@postgres/osm', '-mapping', '/osmnames/osmnames/import_osm/mapping.yml', '-dbschema-import', 'public', '-read', '/osmnames/data/import/abc.osm.pbf', '-write', '-overwritecache']' returned non-zero exit status 2.
and here is the postgress log
postgres_1 | 2019-11-27T13:15:13.522331678Z
postgres_1 | 2019-11-27T13:15:13.532252970Z 2019-11-27 13:15:13.532 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2019-11-27T13:15:13.532269021Z 2019-11-27 13:15:13.532 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2019-11-27T13:15:13.535637461Z 2019-11-27 13:15:13.535 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2019-11-27T13:15:13.547342910Z 2019-11-27 13:15:13.547 UTC [90] LOG: database system was shut down at 2019-11-27 13:15:13 UTC
postgres_1 | 2019-11-27T13:15:13.551587740Z 2019-11-27 13:15:13.551 UTC [1] LOG: database system is ready to accept connections
postgres_1 | 2019-11-27T13:44:49.631472230Z 2019-11-27 13:44:49.631 UTC [219] ERROR: unexpected EOF on client connection with an open transaction
postgres_1 | 2019-11-27T13:44:49.631515069Z 2019-11-27 13:44:49.631 UTC [219] CONTEXT: COPY osm_polygon, line 12923
postgres_1 | 2019-11-27T13:44:49.631521179Z 2019-11-27 13:44:49.631 UTC [219] STATEMENT: COPY "public"."osm_polygon" ("osm_id", "geometry", "type", "imported_country_code", "name", "all_tags", "wikipedia", "wikidata", "admin_level") FROM STDIN
postgres_1 | 2019-11-27T13:44:49.631528279Z 2019-11-27 13:44:49.631 UTC [218] ERROR: unexpected EOF on client connection with an open transaction
postgres_1 | 2019-11-27T13:44:49.631533578Z 2019-11-27 13:44:49.631 UTC [218] CONTEXT: COPY osm_linestring, line 224754
postgres_1 | 2019-11-27T13:44:49.631538058Z 2019-11-27 13:44:49.631 UTC [218] STATEMENT: COPY "public"."osm_linestring" ("osm_id", "geometry", "type", "name", "all_tags", "wikipedia", "wikidata", "admin_level") FROM STDIN
postgres_1 | 2019-11-27T13:44:49.631657886Z 2019-11-27 13:44:49.631 UTC [216] ERROR: unexpected EOF on client connection with an open transaction
postgres_1 | 2019-11-27T13:44:49.631673675Z 2019-11-27 13:44:49.631 UTC [216] CONTEXT: COPY osm_relation, line 1
postgres_1 | 2019-11-27T13:44:49.631679424Z 2019-11-27 13:44:49.631 UTC [216] STATEMENT: COPY "public"."osm_relation" ("osm_id", "name", "type", "street") FROM STDIN
postgres_1 | 2019-11-27T13:44:49.631685575Z 2019-11-27 13:44:49.631 UTC [217] ERROR: unexpected EOF on client connection with an open transaction
postgres_1 | 2019-11-27T13:44:49.631691244Z 2019-11-27 13:44:49.631 UTC [217] CONTEXT: COPY osm_relation_member, line 4817
postgres_1 | 2019-11-27T13:44:49.631696174Z 2019-11-27 13:44:49.631 UTC [217] STATEMENT: COPY "public"."osm_relation_member" ("osm_id", "member_id", "role", "member_type", "relation_type", "name") FROM STDIN
postgres_1 | 2019-11-27T13:44:49.631701824Z 2019-11-27 13:44:49.631 UTC [213] ERROR: unexpected EOF on client connection with an open transaction
postgres_1 | 2019-11-27T13:44:49.631706574Z 2019-11-27 13:44:49.631 UTC [213] CONTEXT: COPY osm_point, line 1
postgres_1 | 2019-11-27T13:44:49.631710984Z 2019-11-27 13:44:49.631 UTC [213] STATEMENT: COPY "public"."osm_point" ("osm_id", "geometry", "type", "name", "all_tags", "wikipedia", "wikidata", "admin_level") FROM STDIN
postgres_1 | 2019-11-27T13:44:49.631717894Z 2019-11-27 13:44:49.631 UTC [215] ERROR: unexpected EOF on client connection with an open transaction
postgres_1 | 2019-11-27T13:44:49.631723443Z 2019-11-27 13:44:49.631 UTC [215] CONTEXT: COPY osm_housenumber, line 886
postgres_1 | 2019-11-27T13:44:49.631728813Z 2019-11-27 13:44:49.631 UTC [215] STATEMENT: COPY "public"."osm_housenumber" ("osm_id", "geometry", "name", "street", "housenumber", "place") FROM STDIN
postgres_1 | 2019-11-27T13:44:49.632155382Z 2019-11-27 13:44:49.632 UTC [216] FATAL: terminating connection because protocol synchronization was lost
postgres_1 | 2019-11-27T13:44:49.632168002Z 2019-11-27 13:44:49.632 UTC [213] FATAL: terminating connection because protocol synchronization was lost
postgres_1 | 2019-11-27T13:44:49.632182122Z 2019-11-27 13:44:49.632 UTC [216] LOG: could not send data to client: Broken pipe
postgres_1 | 2019-11-27T13:44:49.632186821Z 2019-11-27 13:44:49.632 UTC [213] LOG: could not send data to client: Broken pipe
postgres_1 | 2019-11-27T13:44:49.632235410Z 2019-11-27 13:44:49.632 UTC [217] FATAL: terminating connection because protocol synchronization was lost
postgres_1 | 2019-11-27T13:44:49.632243541Z 2019-11-27 13:44:49.632 UTC [215] FATAL: terminating connection because protocol synchronization was lost
postgres_1 | 2019-11-27T13:44:49.632270420Z 2019-11-27 13:44:49.632 UTC [217] LOG: could not send data to client: Broken pipe
postgres_1 | 2019-11-27T13:44:49.632276370Z 2019-11-27 13:44:49.632 UTC [215] LOG: could not send data to client: Broken pipe
postgres_1 | 2019-11-27T13:44:49.637007478Z 2019-11-27 13:44:49.636 UTC [219] FATAL: terminating connection because protocol synchronization was lost
postgres_1 | 2019-11-27T13:44:49.637032058Z 2019-11-27 13:44:49.636 UTC [219] LOG: could not send data to client: Broken pipe
postgres_1 | 2019-11-27T13:44:49.658300413Z 2019-11-27 13:44:49.658 UTC [218] FATAL: terminating connection because protocol synchronization was lost
postgres_1 | 2019-11-27T13:44:49.658321043Z 2019-11-27 13:44:49.658 UTC [218] LOG: could not send data to client: Broken pipe
I cant image whats is going on now. Are there any solution to solve this issue (config change at postgress or any other configuration change)
You can get the file by clicking bellow link
https://drive.google.com/file/d/1O13RGt5xzvVYKe_y0nRjCqPOGSL-HxBN/view?usp=sharing
