Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

cnchi freezes if it can't connect to build.antergos.com #985

Open trixytrix opened 6 years ago

trixytrix commented 6 years ago

Describe the bug Cnchi froze, I had to kill it. Running it from the terminal revealed that it was trying to connect to build.antergos.com. When I pinged build.antergos.com, it didn't reply because IPv6 doesn't work for some reason. When I rebooted I disabled IPv6 from grub and then the installation run fine.

Expected behavior Cnchi doesn't just freeze when it can't connect to build.antergos.com, but at least prints an error message.

karasu commented 6 years ago

Hi @pbelanyi

Cnchi needs an Internet connection to run. It checks three different sites and if one works, it goes on (one of them being the build server). I'll recheck the code but could it be that you didn't have a functioning connection at the time?

trixytrix commented 6 years ago

The problem is that my internet connection appeared to work, since I could use the browser, but the connection to the build server failed because it was trying IPv6, and that often works unreliably for me.

My suggestion is mostly to improve the user experience. Cnchi did show that it needs an internet connection, and I thought I had one, but there were some hidden issues, so it just froze. I think a short timeout for trying to connect would be nice, and then display the error message that there are connection issues, instead of just hanging.

eleius commented 5 years ago

The same thing happens on my company's network where the ips used in has_connection (and maybe build.antergos.com, sometimes it seems to work, sometimes not) appear to be blocked at the firewall level, but the mirrors work just fine. So I can install Antergos at home but not at work...