FS#15906 - Selecting package crashes setup if network not set

Attached to Project: Release Engineering
Opened by maxi jac (maxi_jac) - Tuesday, 11 August 2009, 16:23 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Friday, 05 March 2010, 20:42 GMT
Task Type Bug Report
Category AIF
Status Closed
Assigned To Gerhard Brauer (GerBra)
Dieter Plaetinck (Dieter_be)
Architecture i686
Severity High
Priority Normal
Reported Version 2009.08
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Using the 2009.08 core i686 installer.
(I always use the core installer to do my netinstall installs, in case I have no network I still can use core packages from disc)

When you start the install from FTP/HTTP and do not set your network interface, selecting package will tell you an error because it can't access the repository and crashes. You must then restart the installer and go again through all the hard disk setup etc...

(I think it's severity high, because that's really disappointing to have to go again through all the process of partitionning.. etc...)
Tested on i686 but surely reproducible on x64.

This task depends upon

Closed by  Dieter Plaetinck (Dieter_be)
Friday, 05 March 2010, 20:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  should be fixed
Comment by Gerhard Brauer (GerBra) - Tuesday, 11 August 2009, 17:57 GMT
But why do you say: I will FTP/HTTP install and don't setup your network?

That like: you blame your car vendor when you forgot to put fuel into the tank ;-)

Ok, maybe we could add a statement that checks if network is up/configured when using netinstall as source...
Before starting the package download...
Comment by Dieter Plaetinck (Dieter_be) - Tuesday, 11 August 2009, 18:58 GMT
we already warn the user that network has to be OK before doing a netinstall.
why warn twice? if the user ignores the first warning he could just as well ignore the 2nd.
Comment by maxi jac (maxi_jac) - Tuesday, 11 August 2009, 20:07 GMT
  • Field changed: Percent Complete (100% → 0%)
Even if user has been warned it is frustrating to see the installer simply crash and forcing you to restart the setup from scratch.

I set my network before the installation but the link broke (wifi).

I think the error should be caught preventing the installer from crashing but going back to main menu
Comment by Dieter Plaetinck (Dieter_be) - Tuesday, 11 August 2009, 20:08 GMT
maxi_jac how do you mean "crashing and forcing you to start over" ? provide screenshots, error messages and/or debug logs (run aif -p interactive -d and look in /var/log/aif)

What should happen: pacman should fail and you should get notified about this. but you would still be in the installer and you could go back to the configure network step or whichever step you want
Comment by maxi jac (maxi_jac) - Wednesday, 12 August 2009, 05:35 GMT
I'll try to provide logs or screenshots but the installer won't wok with my VirtualBox :s

Anyway, I meant yes You are warned told me I was not connected and he could not contact the repository but right after I typed Enter it crashed
When I say "crash" that's return to console ! Sorry if I don't explain very well, english is not my main language.

I'll try to reproduce it and collect more informations.
Comment by maxi jac (maxi_jac) - Friday, 14 August 2009, 15:47 GMT
What I did :
Boot on the installer
login as root
/arch/setup
source : net, choose mirror (did not "set netnork", anyway, usually I do it in another tty)
prepare hard drive
select packages => Error at accessing repo Anywway, selecting base => crash

The first time the bug occured I did not unset my network intentionnally, my WiFi lost the connection.
I mean, normally nobody would try to install from ftp without netowrk set but:
1-Network (wifi or even ethernet or other) can lost connection without you know it
2-An error like this should be avoided in any program, you see what I mean ?

I think the error should be caught and avoided, because now it simply crashes and the user has to do every step again to go back to the "select source" step.
Comment by Dieter Plaetinck (Dieter_be) - Friday, 05 March 2010, 20:42 GMT
okay maxi jac, i finally had the time to look at this.
i believe i have fixed it (though i didn't test it myself yet), see http://projects.archlinux.org/aif.git/commit/?h=experimental

Loading...