shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.85k stars 334 forks source link

Improve error reporting when ubuntu launchpad is down? #834

Closed SystemKeeper closed 1 month ago

SystemKeeper commented 3 months ago

Describe the feature

Today ubuntu launchpad went into maintenance (see https://ubuntu.social/@launchpadstatus/112286753813553221) and installation of php failed because of that:

image

I am wondering if it would be possible to output a message that indicates why the installation failed in that case?

Version

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.

shivammathur commented 3 months ago

@SystemKeeper

I plan to add a mirror for the PPA we use as a fallback to avoid this in future.

rukaelin commented 3 months ago

Hi there, we experienced the same issue last week. it's great to see that you are working on this, thank you @shivammathur 🙏

samansupriadi commented 1 month ago

Hi i have similiar issue

image

thank you @shivammathur

shivammathur commented 1 month ago

@samansupriadi Please create a separate issue with details about your workflow.

dac-humi commented 1 month ago

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.

shivammathur commented 1 month ago

@dac-humi

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.

shivammathur commented 1 month ago

Added a fallback mirror in 2.31.0.