Skip to Content.
Sympa Menu

overpass - Re: [overpass] replicate id jump + db corruption

Subject: Overpass API developpement

List archive

Re: [overpass] replicate id jump + db corruption


Chronological Thread 
  • From: marc marc <>
  • To: "" <>
  • Subject: Re: [overpass] replicate id jump + db corruption
  • Date: Fri, 29 Sep 2017 15:01:35 +0000
  • Accept-language: fr-BE, en-US
  • Authentication-results: listes.openstreetmap.fr; dkim=none (message not signed) header.d=none;listes.openstreetmap.fr; dmarc=none action=none header.from=hotmail.com;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hello,

Le 29. 09. 17 à 06:51, Roland Olbricht a écrit :
> I'm sorry for the late answer. We moved from a flat to a house.

Happy moving :)

> Could you please figure out which version is running?

it should be 0.74.9. Binary was build on sept. 16 15:28

> the newest release 0.7.54.10 does show version numbers
> by bin/osm3s_query --version
> and in every output file in the first lines.

thank you for this addition which will facilitate debuging.

>> Reading XML file ... finished reading relations.
>> Flushing to database....... done.
>> terminate called after throwing an instance of 'File_Error'
>> 283.osc.gz [154664/154664] ->
>> "/tmp/osm-3s_update_iGmwJT/002631283.osc.gz" [1]
>
> The last two lines look rather like a log from wget than to be related
> to the error. If they were indeed from wget then either the version of
> update_from_dir is so old that it still may produce return value zero on
> error. Or changes in the fetch.. script conflict with return value
> evaluation.

I checked the small changes I made in the script,
nothing conflicts with return value.
I took the opportunity to add an error message
apply_minute_diffs()
{
./update_from_dir --osc-dir=$1 --version=$DATA_VERSION $META
--flush-size=0
EXITCODE=$?
while [[ $EXITCODE -ne 0 ]];
do
{
+ echo "`date -u '+%F %T'`: ERROR: update_from_dir return an
EXITCODE $EXITCODE. sleep 60 and try again."
sleep 60
./update_from_dir --osc-dir=$1 --version=$DATA_VERSION $META
--flush-size=0
EXITCODE=$?
};
done

what is the easiest way to transmit the changes?
I show them here and/or I post issue/commit/PR ?

Regards,
Marc



Archive powered by MHonArc 2.6.19+.

Top of Page