Skip to content

Conversation

retlehs
Copy link
Member

@retlehs retlehs commented Apr 2, 2025

Something that happens fairly frequently for folks is a network failure when Trellis tries to add the PPA for PHP, MariaDB, or Nginx. The failure looks like this:

TASK [php : Add PHP PPA] *******************************************************
fatal: [default]: FAILED! => {"changed": false, "msg": "failed to fetch PPA information, error was: Connection failure: The read operation timed out"}

The provisioning will sometimes continue a bit further before ending in a failure, and you're left with an unusable VM. Almost always, immediately trying to re-provision will work without an issue.

This PR adds 3 retries to any failures when trying to add a PPA.

@retlehs retlehs self-assigned this Apr 2, 2025
@retlehs retlehs merged commit 7a4d492 into master Apr 2, 2025
2 checks passed
@retlehs retlehs deleted the ppa-retry branch April 2, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants