Watchdog wird immer gestoppt

suissi

Benutzer
Mitglied seit
06. Dez 2009
Beiträge
4
Punkte für Reaktionen
0
Punkte
1
Hallo zusammen. bei mir läuft seit ein paar Tagen Wtchdog nicht mehr. Ich kann es im Portainer uptaden, es startet auch aber dann wird es wieder geschlossen.
Ich habe Watchdog schon deinstalliert und wieder installiert, gleiches Ergebniss. Es lief vorher wunderbar, habe keinen Eingriff ins System gemacht.
Danke für die Unterstützung. LG Suissi

Logs im Portainer:
time="2023-08-27T04:02:54Z" level=info msg="Watchtower 1.5.3"
time="2023-08-27T04:02:54Z" level=info msg="Using no notifications"
time="2023-08-27T04:02:54Z" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2023-08-27T04:02:54Z" level=info msg="Running a one time update."
time="2023-08-27T04:02:59Z" level=info msg="Session done" Failed=0 Scanned=7 Updated=0 notify=no
time="2023-08-27T04:02:59Z" level=info msg="Waiting for the notification goroutine to finish" notify=no

Inspect im portainer:
{
"AppArmorProfile": "docker-default",
"Args": [
"--cleanup",
"--include-stopped",
"--run-once"
],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"--cleanup",
"--include-stopped",
"--run-once"
],
"DDSM": false,
"Domainname": "",
"Entrypoint": [
"/watchtower"
],
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"ExposedPorts": {
"8080/tcp": {}
},
"Hostname": "KublaeCloud",
"Image": "containrrr/watchtower:latest",
"Labels": {
"com.centurylinklabs.watchtower": "true"
},
"OnBuild": null,
"OpenStdin": false,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": null,
"WorkingDir": "/"
},
"Created": "2023-08-27T04:02:49.508864071Z",
"Driver": "btrfs",
"ExecIDs": null,
"GraphDriver": {
"Data": null,
"Name": "btrfs"
},
"HostConfig": {
"AutoRemove": false,
"Binds": [
"/var/run/docker.sock:/var/run/docker.sock"
],
"BlkioDeviceReadBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceWriteIOps": null,
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"CapAdd": null,
"CapDrop": null,
"Cgroup": "",
"CgroupParent": "",
"CgroupnsMode": "host",
"ConsoleSize": [
0,
0
],
"ContainerIDFile": "",
"CpuCount": 0,
"CpuPercent": 0,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpuShares": 0,
"CpusetCpus": "",
"CpusetMems": "",
"DeviceCgroupRules": null,
"DeviceRequests": null,
"Devices": [],
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"ExtraHosts": null,
"GroupAdd": null,
"IOMaximumBandwidth": 0,
"IOMaximumIOps": 0,
"IpcMode": "private",
"Isolation": "",
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"Links": null,
"LogConfig": {
"Config": {},
"Type": "db"
},
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"NanoCpus": 0,
"NetworkMode": "host",
"OomKillDisable": false,
"OomScoreAdj": 0,
"PidMode": "",
"PidsLimit": null,
"PortBindings": {},
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
],
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": "no"
},
"Runtime": "runc",
"SecurityOpt": null,
"ShmSize": 67108864,
"UTSMode": "",
"Ulimits": null,
"UsernsMode": "",
"VolumeDriver": "",
"VolumesFrom": null
},
"HostnamePath": "/volume1/@Docker/containers/302aa95ce06c5dbad2ace1b5ea3811189a20cdd281456297f8ffbfa27718dc51/hostname",
"HostsPath": "/volume1/@Docker/containers/302aa95ce06c5dbad2ace1b5ea3811189a20cdd281456297f8ffbfa27718dc51/hosts",
"Id": "302aa95ce06c5dbad2ace1b5ea3811189a20cdd281456297f8ffbfa27718dc51",
"Image": "sha256:f847e1adb570c2cc11d1e613cad97baf3cdfe83ddd3c1a29ada848cfbd4f7f3f",
"LogPath": "/volume1/@Docker/containers/302aa95ce06c5dbad2ace1b5ea3811189a20cdd281456297f8ffbfa27718dc51/log.db",
"MountLabel": "",
"Mounts": [
{
"Destination": "/var/run/docker.sock",
"Mode": "",
"Propagation": "rprivate",
"RW": true,
"Source": "/var/run/docker.sock",
"Type": "bind"
}
],
"Name": "/watchtower",
"NetworkSettings": {
"Bridge": "",
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"HairpinMode": false,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"MacAddress": "",
"Networks": {
"host": {
"Aliases": null,
"DriverOpts": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAMConfig": null,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"Links": null,
"MacAddress": "",
"NetworkID": "9330c03a76a1ab356e19865fbaf6f56cf3aedf4f9a34b77db630c980ba5d7887"
}
},
"Ports": {},
"SandboxID": "e851a18605bfe99178c42a774c7461da5528faf9bd70f8980bda70e78956559b",
"SandboxKey": "/var/run/docker/netns/default",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null
},
"Path": "/watchtower",
"Platform": "linux",
"ProcessLabel": "",
"ResolvConfPath": "/volume1/@Docker/containers/302aa95ce06c5dbad2ace1b5ea3811189a20cdd281456297f8ffbfa27718dc51/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "2023-08-27T04:02:59.700647278Z",
"FinishedTs": 1693108979,
"OOMKilled": false,
"Paused": false,
"Pid": 0,
"Restarting": false,
"Running": false,
"StartedAt": "2023-08-27T04:02:53.028127001Z",
"StartedTs": 1693108973,
"Status": "exited"
}
}
 

alexhell

Benutzer
Sehr erfahren
Mitglied seit
13. Mai 2021
Beiträge
2.605
Punkte für Reaktionen
758
Punkte
154
Erstmal macht es was es soll, es hat gescannt und gab nix zu updaten.
Poste mal deinen Stack und was du eigentlich genau machen willst. Ist wahrscheinlich nur ein Fehler in der Konfiguration
 

haydibe

Benutzer
Sehr erfahren
Mitglied seit
12. Apr 2016
Beiträge
1.481
Punkte für Reaktionen
364
Punkte
103
Wenn man sich die Teile aus dem Container Inspect annsieht:

Grundsätzlich wird /watchtower ausgeführt:
Code:
"Entrypoint": [
"/watchtower"
],

Wenn "Args" übergeben werden, ersetzen sie "Command", was in dem Fall wurscht ist, weil beides identisch ist:
Code:
 "Args": [
"--cleanup",
"--include-stopped",
"--run-once"
],
"Config": {
  ...
  "Cmd": [
    "--cleanup",
    "--include-stopped",
    "--run-once"
  ],
...
}

Sprich, wenn der Container gestartet wird, wird /watchtower --cleanup --include-stopped --run-once ausgeführt.

Deine Konfiguration ist, dass Watchtower einmal läuft und sich dann beendet. Deine Erwartungshaltung passt nicht zu Deiner Konfiguration.

Bitte beim nächsten Mal Terminal-Ausgaben (bspw. docker inspect) in einen Code-Block packen, sonst macht es das nur unnötig schwerer zu lesen.
 
  • Like
Reaktionen: alexhell


 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat