NEWS
Cloud - cron fehler
-
Ich habe via gui eingestellt er soll alle 2 stunden neustarten - macht er nicht, macht er minütlich und alle 2 stunden
hab kurz recherchiert, da ich kein linux profi bin..
Cron für alle 2 stunden:
- */2 * * *
sollte eigentlich alle 2 stunden sein
stell ich das via gui ein kommt ebenfalls:
- */2 * * *
wie es sein sollte
problem:
darunter die "Übersetzung" sagt:
Jede Minute von 0, 3, 6, 9, 12, 15, 18 und 21 Stunde
was ja ganz einfach falsch ist.
weshalb mein Log wiederum so aussieht:
` > host.raspberrypi 2017-02-05 10:27:01.576 info instance system.adapter.cloud.0 started with pid 6367
host.raspberrypi 2017-02-05 10:27:00.538 info Restart adapter system.adapter.cloud.0 because enabled
host.raspberrypi 2017-02-05 10:27:00.537 error instance system.adapter.cloud.0 terminated with code 156 ()
cloud.0 2017-02-05 10:27:00.485 info Connection changed: DISCONNECTED
cloud.0 2017-02-05 10:27:00.475 info Scheduled restart.
cloud.0 2017-02-05 10:26:07.283 info Connection changed: CONNECTED
MEINE-DEVICES-ENUMERATION
cloud.0 2017-02-05 10:26:06.690 info 2017-02-05T10:26:06.689Z Connected system.user.admin
cloud.0 2017-02-05 10:26:06.501 info Connecting with https://iobroker.net:10555 with "meinem_zauberwort"
cloud.0 2017-02-05 10:26:06.448 debug ****Schedule restart: * */2 * * *****
cloud.0 2017-02-05 10:26:06.401 info starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.cloud, node: v4.7.3
cloud.0 2017-02-05 10:26:06.319 debug statesDB connected
cloud.0 2017-02-05 10:26:06.178 debug objectDB connected
host.raspberrypi 2017-02-05 10:26:02.111 info instance system.adapter.cloud.0 started with pid 6357
host.raspberrypi 2017-02-05 10:26:01.079 info Restart adapter system.adapter.cloud.0 because enabled
host.raspberrypi 2017-02-05 10:26:01.077 error instance system.adapter.cloud.0 terminated with code 156 ()
cloud.0 2017-02-05 10:26:01.053 info terminating
cloud.0 2017-02-05 10:26:01.030 info Connection changed: DISCONNECTED
cloud.0 2017-02-05 10:26:01.016 info Scheduled restart.
cloud.0 2017-02-05 10:25:06.756 info Connection changed: CONNECTED
MEINE-DEVICES-ENUMERATION
cloud.0 2017-02-05 10:25:06.212 info 2017-02-05T10:25:06.211Z Connected system.user.admin
cloud.0 2017-02-05 10:25:06.023 info Connecting with https://iobroker.net:10555 with "meinem_zauberwort"
cloud.0 2017-02-05 10:25:05.970 debug ****Schedule restart: * */2 * * *****
cloud.0 2017-02-05 10:25:05.923 info starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.cloud, node: v4.7.3
cloud.0 2017-02-05 10:25:05.841 debug statesDB connected
cloud.0 2017-02-05 10:25:05.700 debug objectDB connected
host.raspberrypi 2017-02-05 10:25:01.626 info instance system.adapter.cloud.0 started with pid 6347
host.raspberrypi 2017-02-05 10:25:00.604 info Restart adapter system.adapter.cloud.0 because enabled
host.raspberrypi 2017-02-05 10:25:00.603 error instance system.adapter.cloud.0 terminated with code 156 ()
cloud.0 2017-02-05 10:25:00.576 info terminating
cloud.0 2017-02-05 10:25:00.545 info Connection changed: DISCONNECTED
cloud.0 2017-02-05 10:25:00.531 info Scheduled restart.
cloud.0 2017-02-05 10:24:06.353 info Connection changed: CONNECTED
MEINE-DEVICES-ENUMERATION
cloud.0 2017-02-05 10:24:05.741 info 2017-02-05T10:24:05.740Z Connected system.user.admin
cloud.0 2017-02-05 10:24:05.551 info Connecting with https://iobroker.net:10555 with "meinem_zauberwort"
cloud.0 2017-02-05 10:24:05.499 debug ****Schedule restart: * */2 * * *****
cloud.0 2017-02-05 10:24:05.453 info starting. Version 0.6.3 in /opt/iobroker/node_modules/iobroker.cloud, node: v4.7.3
cloud.0 2017-02-05 10:24:05.371 debug statesDB connected
cloud.0 2017-02-05 10:24:05.231 debug objectDB connected `
what does the fox saaay?
Edit
btw: wenn man auf log level debug ist, muss man oft erst händisch nochmals neuladen drücken um alle einträge zu sehen.
Stört mich nicht sonderlich, aber mühsig wenn man fehler sucht.
-
Ich bin zwar auch nur Linux-Stümper, aber IMO müßte der Cronjob für das was Du willst so aussehen:
0 */2 * * *
Wenn der erste Eintrag ein * ist bedeutet das ja wirklich dass der Job jede Minute ausgeführt wird. So sagt es ja auch die von Dir zitierte Übersetzung "Jede Minute". Du musst ihm schon sagen, dass der Job eben nur zur Vollen Stunde (deshalb Minute: 0 oder eine beliebige andere Minute) ausgeführt werden soll.
-
stimmt!
ich war da auf einer falschen seite.. man sollte sich eben nicht auf nur eine antwort verlassen lol
0 */2 * * * ist dann ebenfalls wo anders zu lesen
aber witzig, via gui bekomme ich das nicht hin? du?
-
Falls du mit GUI das hier meinst:
JA