Error ISO not found - but it's there

Bug #526674 reported by glepore70
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
TestDrive
Fix Released
High
Dustin Kirkland 
testdrive (Ubuntu)
Fix Released
High
Dustin Kirkland 

Bug Description

Getting the error below, but the iso is definitely there, verified with HTTP and wget.

  10. Other (prompt for ISO URL)

Select an ISO to testdrive: 10

Enter an ISO URL to testdrive: http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso
INFO: Using KVM for virtual machine hosting...

INFO: Syncing the specified ISO...

      http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso

ERROR: ISO not found at [http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso]

Changed in testdrive:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Dustin Kirkland (kirkland)
Changed in testdrive (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
importance: Medium → High
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package testdrive - 1.23-0ubuntu1

---------------
testdrive (1.23-0ubuntu1) lucid; urgency=low

  * testdrive: wget's output is on stdout, handle. LP: #526674
 -- Dustin Kirkland <email address hidden> Tue, 23 Feb 2010 12:27:52 -0600

Changed in testdrive (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
glepore70 (greg-rhobard) wrote :

I don't think the commit fixed the problem, at least I'm still getting the exact same output.

Select an ISO to testdrive: 10

Enter an ISO URL to testdrive: http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso
INFO: Using KVM for virtual machine hosting...

INFO: Syncing the specified ISO...

      http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso

ERROR: ISO not found at [http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso]

lepore@upstairs:~$ testdrive -v
INFO: testdrive 1.23-0ubuntu1~ppa4

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 526674] Re: Error ISO not found - but it's there

Could you paste the output of

  wget -q --spider -S
http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso

Thanks.

Revision history for this message
glepore70 (greg-rhobard) wrote :

Running wget with the quiet option produces no output. Running it with the verbose option yields:

wget -v --spider -S http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso
Spider mode enabled. Check if remote file exists.
--2010-02-24 15:35:53-- http://cdimage.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-amd64.iso
Resolving cdimage.ubuntu.com... 91.189.88.39
Connecting to cdimage.ubuntu.com|91.189.88.39|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Wed, 24 Feb 2010 20:36:08 GMT
  Server: Apache/2.2.8 (Ubuntu)
  Last-Modified: Wed, 24 Feb 2010 19:33:23 GMT
  ETag: "1634346-2ae15800-4805dbd4b86c0"
  Accept-Ranges: bytes
  Content-Length: 719411200
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Content-Type: application/x-iso9660-image
Length: 719411200 (686M) [application/x-iso9660-image]
Remote file exists.

So the file is there, but testdrive still can't locate it.

Revision history for this message
Phissica (phissica) wrote :

Same problem here. I'm running Karmic on an 64bit system.
I'm getting the same massages as glepore70.
I've installed testdrive just today and configured it to use virtualbox. But I do not think that the latter caused the bug.

Revision history for this message
glepore70 (greg-rhobard) wrote :

The problem appears to be occurring in line 256 of /usr/bin/testdrive:
if run("wget -q --spider -S %s 2>&1 | grep 'HTTP/1.. 200 OK'" % ISO_URL) != 0:
removing the "-q" quiet option from this line enables testdrive to properly download the Kubuntu ISO.

I'm not a code guru, but it appears the -q option is conflicting with the redirect "2>&1", one says quiet and the other says send the error output to stdout. I think the quiet option wins that fight. Also, the grep statement won't find anything to search if the -q option is specified.

Anyway, forgive the backseat coding, removing the -q in line 256 fixes the immediate problem, without apparently causing any other issues.

Changed in testdrive:
status: Fix Committed → In Progress
Changed in testdrive (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Awesome, thanks for tracking that down. I'll upload a fix.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package testdrive - 1.24-0ubuntu1

---------------
testdrive (1.24-0ubuntu1) lucid; urgency=low

  * testdrive:
    - fix iso-not-found errors, LP: #526674
    - fix archecture detection logic, LP: #526701
 -- Dustin Kirkland <email address hidden> Tue, 23 Feb 2010 18:35:38 -0600

Changed in testdrive (Ubuntu):
status: In Progress → Fix Released
Changed in testdrive:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.