Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

falcon-linux-install.sh - DPKG race condition #374

Open
JamesLochheadCRWD opened this issue Oct 25, 2024 · 1 comment
Open

falcon-linux-install.sh - DPKG race condition #374

JamesLochheadCRWD opened this issue Oct 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request pinned Don't classify as stale

Comments

@JamesLochheadCRWD
Copy link

If you use falcon-linux-install.sh inside a userdata/cloudinit script that also installs other things using apt/dpkg, there is a race condition that will occasionally occur because other processes still have the dpkg lock. The end result of this is that the instance (occasionally) won't start unless you insert some polling for the dpkg lock prior to using this script.

A more elegant fix may be to to insert -o DPkg::Lock::Timeout=30 into the apt command on line 408:

DEBIAN_FRONTEND=noninteractive apt-get -qq install -y "$pkg" >/dev/null

This will mean that apt now waits up to 30 seconds for other processes to release the DPKG lock, rather than failing immediately.

@carlosmmatos carlosmmatos added the enhancement New feature or request label Oct 25, 2024
@carlosmmatos
Copy link
Contributor

@JamesLochheadCRWD Thanks for bringing this up! We'll look into it soon.

@carlosmmatos carlosmmatos self-assigned this Oct 30, 2024
@carlosmmatos carlosmmatos added pinned Don't classify as stale and removed no-issue-activity labels Nov 14, 2024
@CrowdStrike CrowdStrike deleted a comment from github-actions bot Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned Don't classify as stale
Projects
None yet
Development

No branches or pull requests

2 participants