Skip to content

PostgreSQL Bad Connection During OSM Import #1237

Closed

Description

@Rub21

During import of diff #1878797, the process failed while handling a Modify operation on osm.Node (pointer 0xc0034518c0). The error occurred on DELETE query from "public"."osm_transport_lines" WHERE "osm_id" = 200522816, reporting "SQL Error: driver: bad connection". This suggests a PostgreSQL connection dropout during a long-running transaction. Process element #1878797 involving transport_lines table.

logs:

[2025-11-29T03:06:15Z] 0:14:55 [error] Importing #1878797: delete element osm.Diff{Create:false, Modify:true, Delete:false, Node:(*osm.Node)(0xc001751fb0), Way:(*osm.Way)(nil), Rel:(*osm.Relation)(nil)}: deleting 200522816 from "transport_lines": SQL Error: driver: bad connection in query DELETE FROM "public"."osm_transport_lines" WHERE "osm_id" = $1 (200522816)
[2025-11-29T03:06:15Z] 0:14:55 [info] Retrying in 5m0s
[2025-11-29T03:06:15Z] 0:14:55 [error] Importing #1878797: delete element osm.Diff{Create:false, Modify:true, Delete:false, Node:(*osm.Node)(0xc0031ce540), Way:(*osm.Way)(nil), Rel:(*osm.Relation)(nil)}: deleting 200522816 from "transport_lines": SQL Error: driver: bad connection in query DELETE FROM "public"."osm_transport_lines" WHERE "osm_id" = $1 (200522816)
[2025-11-29T03:06:15Z] 0:14:55 [info] Retrying in 5m0s
[2025-11-29T03:06:15Z] 0:14:55 [error] Importing #1878797: delete element osm.Diff{Create:false, Modify:true, Delete:false, Node:(*osm.Node)(0xc0031ceae0), Way:(*osm.Way)(nil), Rel:(*osm.Relation)(nil)}: deleting 200522816 from "transport_lines": SQL Error: driver: bad connecti^C
[2025-11-29T03:06:15Z] 0:14:55 [info] Retrying in 5m0s
[

Ref: omniscale/imposm3#170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions