mobidata-bw/postgis-gtfs-importer

investigate possible curl-mirror bug (IPL bwgesamt GTFS import)

Open

#10 ouverte le 29 oct. 2024

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)JavaScript (1 fork)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (6 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

In >1 IPL deployment, the following error occurred when mirroring and importing the "bwgesamt" GTFS feed:

+ unzip -d /var/gtfs/gtfs /var/gtfs/gtfs.zip
warning [/var/gtfs/gtfs.zip]: 3428352 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 3428352
(attempting to re-compensate)
inflating: /var/gtfs/gtfs/agency.txt
error: not enough memory for bomb detection

A bug in curl-mirror seems likely that

  • either causes parts of new and old versions of the zip file to be "merged" (written into the same file); or
  • doesn't properly continue previously aborted downloads.

However, it could also be that the "bwgesamt" zip file isn't getting updated atomically, in which case a curl-mirror run "caught" the update process right while it had been happening. @NVBWSeifert can you rule out this cause?

Guide contributeur