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

Set DPkg lock timeout to 400. #1827

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration_test/gce/gce_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ func attemptCreateInstance(ctx context.Context, logger *log.Logger, options VMOp
// TODO(b/369656678): We see frequent errors like "Waiting for cache lock:
// Could not get lock /var/lib/dpkg/lock-frontend", so add a generous timeout.
if IsDebianBased(vm.ImageSpec) {
if _, err := RunRemotely(ctx, logger, vm, "echo 'DPkg::Lock::Timeout=300' | sudo tee /etc/dpkg/dpkg.cfg.d/cache-lock-timeout.cfg"); err != nil {
if _, err := RunRemotely(ctx, logger, vm, "echo 'DPkg::Lock::Timeout=600' | sudo tee /etc/dpkg/dpkg.cfg.d/cache-lock-timeout.cfg"); err != nil {
return nil, fmt.Errorf("setting increased dpkg cache lock timeout failed: %w", err)
}
}
Expand Down
Loading