europe.osm.pbf File per täglichem Diff-Abgleich aktuell halten

wenn die beiden temps zu unübersichtlich sind:

grep PATH /tmp/_env.txt*

vergleicht die wichtigste Variable PATH

ansonsten möchte ich dir noch einen Trick verraten. Ich benutze “Geplane Aufgaben” nicht, nehme aber an, dass der in Endeffekt einen Cronjob absetzt. Ich starte meine Cronjobs nach dem folgenden Schema:

*/1 * * * * /home/walter/osm/db/planet2/updatepl planet2 400 >> /home/walter/osm/db/planet2/cron.log 2>&1

also Startzeiten, Befehl mit Argumenten, Output nach cron.log und - das ist der Trick - alle Fehlermeldungen mit 2>&1 auch in das Logfile.

Im Cronjob mach ich

*#!/bin/bash

#set -x

cd /home/walter/osm/db/planet2*

und wenn es ganz eng wird

*#!/bin/bash

set -x

cd /home/walter/osm/db/planet2*

Damit bin ich eigentlich ganz gut zurecht gekommen (war auch mal Linux-Newbie, ist nur einige Jährchen her). Daher gratuliere ich dir nachträglich zu dieser Entscheidung, die dir langfristig viel bringen wird. Entspricht in etwa einem Umstieg auf Josm - der tut am Anfang auch ein wenig weh.

Gruss
walter

ach ja: bei >> ist kein Lehrzeichen dazwischen, das sieht nur so aus.

Hallo

Also wenn ich richtig verstanden habe:

Habe ich das genommen:

#!/bin/bash
#
set -x
#
cd ~/Dokumente/mkgmap
osmupdate -v deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Ergebnis bricht ab:

+ cd /home/marko/Dokumente/mkgmap
+ osmupdate -v deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.


Ich denke das ein Fehler in Osmupdate ist, obwohl es ja manuell geht?
Das Programm holt sich wie den Zeitfaktor nicht?

Beste Grüße

Für den Zeitstempel ruft osmupdate wieder ein externes Tool (wget) auf, was wohl als Job irgendwie nicht funktioniert.
Wir brauchen da mehr Logging Infos. Setz mal vorübergehend den Logging Level von 1 auf 3 hoch, probier das ganze nochmal und poste hier die Ausgabe.

Alt:


osmupdate -v deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Neu:


osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

ick klink mich aus solange ich nicht den Diff der PATH-Variablen sehe. Mehr als 5x von verschiedenen Postern kann man da nicht nachfragen.

walter

Hallo

Ich schrieb ich hab keine Ahnung bekam das Script nur.

Danke für die neue Zeile.

Script:

#!/bin/bash
#
set -x
#
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Ergebnis:

+ cd /home/marko/Dokumente/mkgmap
+ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.


Besten Dank für den neuen Test.

Jetzt lief etwas mehr durch ?
Beste Grüße

OK, danke für die Infos!

Nunja, wir haben etwas mehr Diagnose-Infos, aber der Fehler ist natürlich noch da. Dummerweise sagt das Log nicht, warum wget nicht ausgeführt werden konnte (die Fehlermeldung wird unterdrückt).

Ich denke, es macht am meisten Sinn, mal folgende Anleitung zu konsultieren:

Wenn Du dann crontab -e auf der Konsole aufrufst, sollte aktuell mindestens ein Eintrag für dein Script drin sein, richtig? Steht da auch was mit PATH=…?
Falls nicht, bau mal die Zeile 5 aus der Anleitung oben mit rein, also:

Dann nochmal testen und es sollte laufen…

Hallo
Cron bedarf einer Überarbeitung ?

Ich habe das so verstanden:

#!/bin/bash --login
#
set -x
#
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

mit Login bring die selbe Fehler Meldung wie im letzten Post.
Beste Grüße
Marko

Ja genau, Du musst deinem crontab noch den Pfad beibringen. Das hatte ich in Post #73 doch geschrieben.

Äh, nein. Ich meinte nicht Login, sondern Logging. Das bedetet soviel wie mehr Infos ausgeben, damit man eher sieht wo es klemmt.
Damit sind wir aber fertig.

Schau Dir nochmal die Anleitung für crontab an, die ich oben gepostet habe und prüfe, ob dort am Anfang ein Eintrag für PATH zu finden ist.
Wichtig: Wenn nicht, dann wie beschrieben den PATH ergänzen.

Crontab ist eine Textdatei, in der drinsteht, wann auf deinem System welches Script ausgeführt werden soll.
Dem crontab kannst Du auch sagen, wo es nach Dateien suchen soll (das wäre dann der PATH).
Daran hapert es im Moment.

Prinzip jetzt klarer?

Kannst Du das –login am Ende der Zeile wieder entfernen? Das war nicht verlangt und bringt uns nicht weiter.

Hallo

Ich habe jetzt folgenden Befehl:

#!/bin/bash
#
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
#
set -x
#
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Ergebnis ist:

+ cd /home/marko/Dokumente/mkgmap
+ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.

Beste Grüße

Und Besten Dank für die Hilfe

Ok, kein Problem. Wir machen mal was anderes:

Ändere mal:

ab in:


export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11

und teste nochmal.

Hallo
Und Danke schön für die neue Zeile.

Wollte mal die KDE Anwendung testen, die in Ubuntuusers/cron steht, die kann ich aber nicht starten unter Gnome?

Test gestartet aus"Geplante Aufgaben" mit:

#!/bin/bash
#
export PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
#
set -x
#
cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

Ergebnis , dauert gefühlt länger bis das Ende kommt?

Ergebnis:

+ cd /home/marko/Dokumente/mkgmap
+ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.


Wie geschrieben der rest bis zur Kartenerstellung geht alles in “Geplante Aufgaben” getestet.

Beste Grüße

wollte mich ja raushalten, aber solange das mit den Diff-Files nach dem Server-Crash heute Nacht nicht gefixt ist, würde ich die Finger von dem Update lassen. Der kann eigentlich gerade überhaupt nicht funktionieren.

walter

Hallo

Danke für die Info, ich teste ab morgen alles noch mal.

Gerade manuell im Terminal getestet, da geht es wieder:

Neuer Stempel vom 18.04.

marko@marko-desktop:~$ #!/bin/sh
marko@marko-desktop:~$ cd ~/Dokumente/mkgmap
marko@marko-desktop:~/Dokumente/mkgmap$ osmupdate -v deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: newest hourly timestamp: 2014-04-18T00:00:00Z
osmupdate: newest daily timestamp: 2014-04-18T00:00:00Z
osmupdate: daily changefile 583: downloading
osmupdate: daily changefile 582: 2014-04-17T00:00:00Z
osmupdate: daily changefile 582: downloading
osmupdate: daily changefile 581: 2014-04-16T00:00:00Z
osmupdate: daily changefile 581: downloading
osmupdate: daily changefile 580: 2014-04-15T00:00:00Z
osmupdate: Merging changefiles.
osmupdate: Creating output file.


Beste Grüße

dazu kommt noch, dass gnome-schedule einmalige Aufgaben mit ‘at’ einplant, nur mehrmalige Aktionen werden über ‘crontab’ eingeplant.
Jetzt müsste man noch wissen, wie der Test genau ausgesehen hat…

diffs sollten wieder gehen.

Hallo
Die Aufgabe habe Ich drin

Täglich. 
Zeit 6.30
Befehl osmupdate-1
Name osmupdate-1
Anwendung X-Anwendung

Test Script manuell:

cd ~/Dokumente/mkgmap
osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly

geht

Ergebnis:

marko@marko-desktop:~$ cd ~/Dokumente/mkgmap
marko@marko-desktop:~/Dokumente/mkgmap$ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Fri Apr 18 18:02:08 UTC 2014
sequenceNumber=14003
timestamp=2014-04-18T18\:00\:00Z

osmupdate: newest hourly timestamp: 2014-04-18T18:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/day/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Fri Apr 18 00:06:15 UTC 2014
sequenceNumber=583
timestamp=2014-04-18T00\:00\:00Z

osmupdate: newest daily timestamp: 2014-04-18T00:00:00Z
osmupdate: hourly changefile 14003: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/003.osc.gz -O "osmupdate_temp/temp.h000014003.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:19:21 URL:http://planet.openstreetmap.org/replication/hour/000/014/003.osc.gz [3648122/3648122] -> "osmupdate_temp/temp.h000014003.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/002.state.txt -O "osmupdate_temp/temp.h000014002.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:19:24 URL:http://planet.openstreetmap.org/replication/hour/000/014/002.state.txt [84/84] -> "osmupdate_temp/temp.h000014002.txt" [1]

osmupdate: hourly changefile 14002: 2014-04-18T17:00:00Z
osmupdate: hourly changefile 14002: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/002.osc.gz -O "osmupdate_temp/temp.h000014002.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:19:30 URL:http://planet.openstreetmap.org/replication/hour/000/014/002.osc.gz [3731573/3731573] -> "osmupdate_temp/temp.h000014002.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/001.state.txt -O "osmupdate_temp/temp.h000014001.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:19:34 URL:http://planet.openstreetmap.org/replication/hour/000/014/001.state.txt [84/84] -> "osmupdate_temp/temp.h000014001.txt" [1]

osmupdate: hourly changefile 14001: 2014-04-18T16:00:00Z
osmupdate: hourly changefile 14001: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/001.osc.gz -O "osmupdate_temp/temp.h000014001.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:19:40 URL:http://planet.openstreetmap.org/replication/hour/000/014/001.osc.gz [4445044/4445044] -> "osmupdate_temp/temp.h000014001.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/000.state.txt -O "osmupdate_temp/temp.h000014000.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:19:43 URL:http://planet.openstreetmap.org/replication/hour/000/014/000.state.txt [84/84] -> "osmupdate_temp/temp.h000014000.txt" [1]

osmupdate: hourly changefile 14000: 2014-04-18T15:00:00Z
osmupdate: hourly changefile 14000: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/000.osc.gz -O "osmupdate_temp/temp.h000014000.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:19:48 URL:http://planet.openstreetmap.org/replication/hour/000/014/000.osc.gz [3374988/3374988] -> "osmupdate_temp/temp.h000014000.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/999.state.txt -O "osmupdate_temp/temp.h000013999.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:19:51 URL:http://planet.openstreetmap.org/replication/hour/000/013/999.state.txt [84/84] -> "osmupdate_temp/temp.h000013999.txt" [1]

osmupdate: hourly changefile 13999: 2014-04-18T14:00:00Z
osmupdate: hourly changefile 13999: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/999.osc.gz -O "osmupdate_temp/temp.h000013999.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:20:01 URL:http://planet.openstreetmap.org/replication/hour/000/013/999.osc.gz [9528476/9528476] -> "osmupdate_temp/temp.h000013999.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/998.state.txt -O "osmupdate_temp/temp.h000013998.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:20:05 URL:http://planet.openstreetmap.org/replication/hour/000/013/998.state.txt [84/84] -> "osmupdate_temp/temp.h000013998.txt" [1]

osmupdate: hourly changefile 13998: 2014-04-18T13:00:00Z
osmupdate: hourly changefile 13998: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/998.osc.gz -O "osmupdate_temp/temp.h000013998.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:20:08 URL:http://planet.openstreetmap.org/replication/hour/000/013/998.osc.gz [119/119] -> "osmupdate_temp/temp.h000013998.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/997.state.txt -O "osmupdate_temp/temp.h000013997.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:20:12 URL:http://planet.openstreetmap.org/replication/hour/000/013/997.state.txt [84/84] -> "osmupdate_temp/temp.h000013997.txt" [1]

osmupdate: hourly changefile 13997: 2014-04-18T12:00:00Z
osmupdate: hourly changefile 13997: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/997.osc.gz -O "osmupdate_temp/temp.h000013997.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:20:22 URL:http://planet.openstreetmap.org/replication/hour/000/013/997.osc.gz [10355512/10355512] -> "osmupdate_temp/temp.h000013997.osc.gz" [1]
Wget Command Ok

osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.h000013997.osc.gz" "osmupdate_temp/temp.h000013998.osc.gz" "osmupdate_temp/temp.h000013999.osc.gz" "osmupdate_temp/temp.h000014000.osc.gz" "osmupdate_temp/temp.h000014001.osc.gz" "osmupdate_temp/temp.h000014002.osc.gz" "osmupdate_temp/temp.h000014003.osc.gz" --timestamp=2014-04-18T18:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/996.state.txt -O "osmupdate_temp/temp.h000013996.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:20:37 URL:http://planet.openstreetmap.org/replication/hour/000/013/996.state.txt [84/84] -> "osmupdate_temp/temp.h000013996.txt" [1]

osmupdate: hourly changefile 13996: 2014-04-18T11:00:00Z
osmupdate: hourly changefile 13996: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/996.osc.gz -O "osmupdate_temp/temp.h000013996.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-18 20:20:41 URL:http://planet.openstreetmap.org/replication/hour/000/013/996.osc.gz [119/119] -> "osmupdate_temp/temp.h000013996.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/995.state.txt -O "osmupdate_temp/temp.h000013995.txt" 2>&1
osmupdate: Got shell command result:
2014-04-18 20:20:45 URL:http://planet.openstreetmap.org/replication/hour/000/013/995.state.txt [84/84] -> "osmupdate_temp/temp.h000013995.txt" [1]

osmupdate: hourly changefile 13995: 2014-04-18T10:00:00Z
osmupdate: hourly changefile 13995: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/013/995.osc.gz -O "osmupdate_temp/temp.h000013995.osc.gz" 2>&1 && echo "Wget Command Ok"

Abgekürzt da läuft was, was ich hab keine Ahnung.
Beste Grüße

Beste Grüße

Ich denke wir kommen der Lösung näher, ich konnte das jetzt auf meiner Kiste reproduzieren…

Der Hund liegt hier begraben:

In crontab wird dafür irgendein Wrapper eingeplant (/usr/bin/python /usr/share/gnome-schedule/xwrapper.py), der wohl irgendwie dummes Zeug macht.

Vorschlag: Ändere mal X-Anwendung auf “Vorgegebenes Verhalten” um.

Hallo
Habe jetzt alles auf “Vorgegebenes Verhalten” gesetzt.

Ergebnis:

+ cd /home/marko/Dokumente/mkgmap
+ osmupdate -v=3 deu-old.osm.pbf --hour --day --keep-tempfiles deu.osm.pbf -B=deu.poly
osmupdate Parameter: deu-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: deu.osm.pbf
osmupdate Parameter: -B=deu.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "deu-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-15T04:00:00Z

osmupdate: timestamp of deu-old.osm.pbf: 2014-04-15T04:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:

osmupdate: newest hourly timestamp: (no timestamp)
osmupdate Error: Could not get the newest hourly timestamp from the Internet.
Press ENTER to continue and close this window.


Beste Grüße

Also hier sieht das so aus (Ausschnitt). Der Zeitstempel “#Fri Apr 18 19:02:09 UTC 2014” kommt sauber nach dem “osmupdate: Got shell command result:”.
Bei Dir ist dort nur eine leere Zeile, also klappt der Aufruf wohl nicht.


...
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Fri Apr 18 19:02:09 UTC 2014
sequenceNumber=14004
timestamp=2014-04-18T19\:00\:00Z

osmupdate: newest hourly timestamp: 2014-04-18T19:00:00Z
...

Schick nochmal die Ausgabe von:


crontab -l

auf der Kommandozeile (kleines L am Ende).

Hallo

crontab -l kommt.

Ergebnis nichts:

bash-4.3$ crontab -l
bash-4.3$ 

Das bash ist nur weil mkgmap noch läuft aus “Geplante Aufgaben”

Hier mal von Heute manuell im Terminal die benelux Karte in Arbeit. eventuell hilft es ?

Lief sauber durch

marko@marko-desktop:~$ cd ~/Dokumente/mkgmap
marko@marko-desktop:~/Dokumente/mkgmap$ osmupdate -v=3 d-dk-nl-b-l-old.osm.pbf --hour --day --keep-tempfiles d-dk-nl-b-l.osm.pbf -B=d-dk-nl-b-l.poly
osmupdate Parameter: d-dk-nl-b-l-old.osm.pbf
osmupdate Parameter: --hour
osmupdate Parameter: --day
osmupdate Parameter: --keep-tempfiles
osmupdate Parameter: d-dk-nl-b-l.osm.pbf
osmupdate Parameter: -B=d-dk-nl-b-l.poly
osmupdate: Executing shell command:
./osmconvert --out-timestamp "d-dk-nl-b-l-old.osm.pbf" 2>&1
osmupdate: Got shell command result:
2014-04-18T00:00:00Z

osmupdate: timestamp of d-dk-nl-b-l-old.osm.pbf: 2014-04-18T00:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/hour/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Sat Apr 19 06:02:06 UTC 2014
sequenceNumber=14015
timestamp=2014-04-19T06\:00\:00Z

osmupdate: newest hourly timestamp: 2014-04-19T06:00:00Z
osmupdate: Executing shell command:
wget -q http://planet.openstreetmap.org/replication/day/state.txt -O - 2>&1
osmupdate: Got shell command result:
#Sat Apr 19 00:06:19 UTC 2014
sequenceNumber=584
timestamp=2014-04-19T00\:00\:00Z

osmupdate: newest daily timestamp: 2014-04-19T00:00:00Z
osmupdate: hourly changefile 14015: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/015.osc.gz -O "osmupdate_temp/temp.h000014015.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:02:36 URL:http://planet.openstreetmap.org/replication/hour/000/014/015.osc.gz [987673/987673] -> "osmupdate_temp/temp.h000014015.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/014.state.txt -O "osmupdate_temp/temp.h000014014.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:02:36 URL:http://planet.openstreetmap.org/replication/hour/000/014/014.state.txt [84/84] -> "osmupdate_temp/temp.h000014014.txt" [1]

osmupdate: hourly changefile 14014: 2014-04-19T05:00:00Z
osmupdate: hourly changefile 14014: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/014.osc.gz -O "osmupdate_temp/temp.h000014014.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:02:37 URL:http://planet.openstreetmap.org/replication/hour/000/014/014.osc.gz [966967/966967] -> "osmupdate_temp/temp.h000014014.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/013.state.txt -O "osmupdate_temp/temp.h000014013.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:02:37 URL:http://planet.openstreetmap.org/replication/hour/000/014/013.state.txt [84/84] -> "osmupdate_temp/temp.h000014013.txt" [1]

osmupdate: hourly changefile 14013: 2014-04-19T04:00:00Z
osmupdate: hourly changefile 14013: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/013.osc.gz -O "osmupdate_temp/temp.h000014013.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:02:37 URL:http://planet.openstreetmap.org/replication/hour/000/014/013.osc.gz [743977/743977] -> "osmupdate_temp/temp.h000014013.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/012.state.txt -O "osmupdate_temp/temp.h000014012.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:02:37 URL:http://planet.openstreetmap.org/replication/hour/000/014/012.state.txt [84/84] -> "osmupdate_temp/temp.h000014012.txt" [1]

osmupdate: hourly changefile 14012: 2014-04-19T03:00:00Z
osmupdate: hourly changefile 14012: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/012.osc.gz -O "osmupdate_temp/temp.h000014012.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:02:38 URL:http://planet.openstreetmap.org/replication/hour/000/014/012.osc.gz [1055183/1055183] -> "osmupdate_temp/temp.h000014012.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/011.state.txt -O "osmupdate_temp/temp.h000014011.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:02:38 URL:http://planet.openstreetmap.org/replication/hour/000/014/011.state.txt [84/84] -> "osmupdate_temp/temp.h000014011.txt" [1]

osmupdate: hourly changefile 14011: 2014-04-19T02:00:00Z
osmupdate: hourly changefile 14011: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/011.osc.gz -O "osmupdate_temp/temp.h000014011.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:02:39 URL:http://planet.openstreetmap.org/replication/hour/000/014/011.osc.gz [1060570/1060570] -> "osmupdate_temp/temp.h000014011.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/010.state.txt -O "osmupdate_temp/temp.h000014010.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:02:39 URL:http://planet.openstreetmap.org/replication/hour/000/014/010.state.txt [84/84] -> "osmupdate_temp/temp.h000014010.txt" [1]

osmupdate: hourly changefile 14010: 2014-04-19T01:00:00Z
osmupdate: hourly changefile 14010: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/010.osc.gz -O "osmupdate_temp/temp.h000014010.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:02:40 URL:http://planet.openstreetmap.org/replication/hour/000/014/010.osc.gz [1537361/1537361] -> "osmupdate_temp/temp.h000014010.osc.gz" [1]
Wget Command Ok

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/hour/000/014/009.state.txt -O "osmupdate_temp/temp.h000014009.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:02:40 URL:http://planet.openstreetmap.org/replication/hour/000/014/009.state.txt [84/84] -> "osmupdate_temp/temp.h000014009.txt" [1]

osmupdate: hourly changefile 14009: 2014-04-19T00:00:00Z
osmupdate: daily changefile 584: downloading
osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/584.osc.gz -O "osmupdate_temp/temp.d000000584.osc.gz" 2>&1 && echo "Wget Command Ok"
osmupdate: Got shell command result:
2014-04-19 08:03:14 URL:http://planet.openstreetmap.org/replication/day/000/000/584.osc.gz [67779183/67779183] -> "osmupdate_temp/temp.d000000584.osc.gz" [1]
Wget Command Ok

osmupdate: Merging changefiles.
osmupdate: Executing shell command:
./osmconvert --merge-versions  "osmupdate_temp/temp.d000000584.osc.gz" "osmupdate_temp/temp.h000014010.osc.gz" "osmupdate_temp/temp.h000014011.osc.gz" "osmupdate_temp/temp.h000014012.osc.gz" "osmupdate_temp/temp.h000014013.osc.gz" "osmupdate_temp/temp.h000014014.osc.gz" "osmupdate_temp/temp.h000014015.osc.gz" --timestamp=2014-04-19T06:00:00Z --out-o5c >"osmupdate_temp/temp.9"
osmupdate: Got shell command result:

osmupdate: Executing shell command:
wget -nv -c http://planet.openstreetmap.org/replication/day/000/000/583.state.txt -O "osmupdate_temp/temp.d000000583.txt" 2>&1
osmupdate: Got shell command result:
2014-04-19 08:03:38 URL:http://planet.openstreetmap.org/replication/day/000/000/583.state.txt [82/82] -> "osmupdate_temp/temp.d000000583.txt" [1]

osmupdate: daily changefile 583: 2014-04-18T00:00:00Z
osmupdate: Creating output file.
osmupdate: Executing shell command:
./osmconvert  "-B=d-dk-nl-b-l.poly" "d-dk-nl-b-l-old.osm.pbf" "osmupdate_temp/temp.8" --out-pbf >"d-dk-nl-b-l.osm.pbf"
osmupdate: Got shell command result:

osmupdate: Keeping temporary files.
osmupdate: Completed successfully.
marko@marko-desktop:~/Dokumente/mkgmap$