Improve error reporting when ubuntu launchpad is down?
SystemKeeper opened this issue · comments
Describe the feature
Today ubuntu launchpad went into maintenance (see https://ubuntu.social/@launchpadstatus/112286753813553221) and installation of php failed because of that:
![image](https://private-user-images.githubusercontent.com/1580193/323657846-88a46cd7-a515-4fa6-8cfc-6a3178008af5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI2MjY0MDcsIm5iZiI6MTcyMjYyNjEwNywicGF0aCI6Ii8xNTgwMTkzLzMyMzY1Nzg0Ni04OGE0NmNkNy1hNTE1LTRmYTYtOGNmYy02YTMxNzgwMDhhZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDJUMTkxNTA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzEzOTZlNjRiMWE5OTZjNmE0OTFlNDA4NTk1OWVmOTQ3NzhiMmQyYmIzMjlhZDEwNDZlZWZhNjQwNGI4NTM0YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MChwAq2RhIvqvwWgl44_zGiVc1BzRi7-yekx1Y4PDMc)
I am wondering if it would be possible to output a message that indicates why the installation failed in that case?
Version
- I have checked releases, and the feature is missing in the latest patch version of
v2
.
Describe alternatives
I guess there's no alternative instead of guessing what happens.
Are you willing to submit a PR?
Yes in general, but never looked at the setup-php code in more detail.
I plan to add a mirror for the PPA we use as a fallback to avoid this in future.
Hi there, we experienced the same issue last week. it's great to see that you are working on this, thank you @shivammathur 🙏
@samansupriadi Please create a separate issue with details about your workflow.
Hello, thank you for your work on this repo. It is very much appreciated. 🙏
Major PPA outage today triggering fail. Acknowledged by Canonical here.
Although you said:
I plan to add a mirror for the PPA we use as a fallback to avoid this in future.
I think this ticket is more about showing some logs when an incident like this occurs. Right now, we have to trigger by changing shivammathur/setup-php@2.30.5
to shivammathur/setup-php@verbose@verbose
Then I see a massive dump that includes the one line I care about:
Cannot initiate the connection to ppa.launchpad.net:80 (2620:2d:4000:1::81). - connect (101: Network is unreachable)
Would be nice if error was shown without verbose.
I understand that, but to display that error in the apt-get update
command it is required to change how logs are piped in the action and that change is not trivial, and I cannot work on that right now.
It would be much easier for me to maintain a fallback mirror for the PPA.
Added a fallback mirror in 2.31.0.