DO Agent failing with `error code 100`

Offen
#595 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
shell

Rechercherichtung

Beginne mit /opt/digitalocean/droplet-agent/scripts/update.sh und der in der Issue gezeigten Ausgabe von /var/log/droplet-agent.update.log. Reproduziere den Update-Pfad rund um den apt lock failure auf den betroffenen Hosts oder untersuche ihn. Die Aufgabe ist abgeschlossen, wenn die Ursache der Locks und das erwartete Update-Verhalten festgestellt sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

This is a tracking issue, some logs:

coffee@buildbot:~$ cat /var/log/droplet-agent.update.log
Waiting 799 seconds
Checking architecture support...OK
Preparing to check for update
Package Host: https://repos-droplet.digitalocean.com
Package Path: apt/droplet-agent/pool/main/main/d/droplet-agent/droplet-agent_
Keyring Path: apt/droplet-agent/pool/main/main/d/droplet-agent-keyring/droplet-agent-keyring_
Local Keyring:2.0.0
Local Version:1.2.11
Checking Latest Version...
Latest keyring package:2.0.0
Latest agent package:1.2.1
Updating droplet-agent deb package
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1708639 (apt-get)
E: Unable to lock directory /var/lib/apt/lists/

the logs do exist, are empty, but eventaully go away:

coffee@buildbot:~$ sudo /opt/digitalocean/droplet-agent/scripts/update.sh
Waiting 465 seconds
Checking architecture support...OK
Preparing to check for update
Package Host: https://repos-droplet.digitalocean.com
Package Path: apt/droplet-agent/pool/main/main/d/droplet-agent/droplet-agent_
Keyring Path: apt/droplet-agent/pool/main/main/d/droplet-agent-keyring/droplet-agent-keyring_
Local Keyring:2.0.0
Local Version:1.2.11
Checking Latest Version...
Latest keyring package:2.0.0
Latest agent package:1.2.1
Updating droplet-agent deb package
coffee@buildbot:~$ echo $?
0
coffee@buildbot:~$ cat /var/log/droplet-agent.update.log
Waiting 493 seconds
Checking architecture support...OK
Preparing to check for update
Package Host: https://repos-droplet.digitalocean.com
Package Path: apt/droplet-agent/pool/main/main/d/droplet-agent/droplet-agent_
Keyring Path: apt/droplet-agent/pool/main/main/d/droplet-agent-keyring/droplet-agent-keyring_
Local Keyring:2.0.0
Local Version:1.2.11
Checking Latest Version...
Latest keyring package:2.0.0
Latest agent package:1.2.1
Updating droplet-agent deb package

so i'm not really sure yet what's causing the locks across many hosts 🙃


https://costinstefan.ro/post/2020-02-16-how-to-fix-do-agent-exited/
https://www.digitalocean.com/community/questions/do-agent-exited-with-a-return-code-100

Vorherrschende Sprache
Hurl
Sterne
124
Forks
67
Ø Merge
8 Std. 40 Min.
Gemergte PRs (30 T.)
5

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus python/psf-salt

Alle Issues in python/psf-salt

Ähnliche Issues

Weitere Issues zu DevOps

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.