DO Agent failing with `error code 100`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- shell
- Domain
- devops, infrastructure
Research direction
Start with /opt/digitalocean/droplet-agent/scripts/update.sh and the /var/log/droplet-agent.update.log output shown in the issue. Reproduce or inspect the update path around the apt lock failure across affected hosts. Done means the cause of the locks and the expected update behavior are established.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Hurl
- Stars
- 124
- Forks
- 67
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python/psf-salt
-
codespeed
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
infra mail
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
python/psf-salt#618 · 12 comments · 1 reaction · 1 assignee ·
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
vicharanashala/fln#564 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
haskell-actions/setup#152 ·
-
feature-request helm
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gravitational/teleport#69785 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Openarea: ci bug perceived difficulty: 3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
TencentCloud/Octop#1007 ·