chaoss / augur

Python library and web service for Open Source Software Health and Sustainability metrics & data collection. You can find our documentation and new contributor information easily here: https://oss-augur.readthedocs.io/en/main/ and learn more about Augur at our website https://augurlabs.io
https://oss-augur.readthedocs.io/en/main/
MIT License
579 stars 846 forks source link

Installation script assumes egress port 53 is allowed. #2781

Closed ggolin closed 2 months ago

ggolin commented 2 months ago

Observed in v0.63.3 on a clean install with docker-compose.

This check attempts to connect to Google's DNS server. In a corporate setting accessing an external DNS server is not always allowed. This check fails in my case and the configuration never completes:

root@ba7968d86e9e:/augur# nc 8.8.8.8 53
Ncat: TIMEOUT.
GaryPWhite commented 2 months ago

may be resolved by #2782 -- using httpx to check if the outside internet (namely, chaoss.community) is available -- configurable with standard _PROXY variables.

ggolin commented 2 months ago

Thanks for taking a look at this. The linked PR will solve this problem. Locally I modified the code to try and resolve a hostname rather than attempting to connect to an external DNS server.