Bug 8961

Summary: sudoku-savant does not get downloaded correctly
Product: [QA/Testing] Runtime Testing Reporter: Saul Wold <sgw>
Component: generalAssignee: Yi Zhao <yi.zhao>
Status: RESOLVED WORKSFORME QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, richard.purdie, ross.burton, yi.zhao
Version: 2.0.1   
Target Milestone: 2.0.3   
Hardware: x86   
OS: Multiple   
URL: http://errors.yoctoproject.org/Errors/Details/27469/
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Saul Wold 2016-01-20 17:05:36 UTC
Core error seems to be that wget is failing to get the tarball correctly.

The actual size is 232K, but it's trying to download 91M!

Saving to: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/testimage-sdk//sudoku/sudoku-savant-1.3.tar.bz2'

     0K                                                       100% 91.4M=0s

2016-01-15 12:58:53 (91.4 MB/s) - '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc/build/build/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/testimage-sdk//sudoku/sudoku-savant-1.3.tar.bz2' saved [639/639]

bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
ERROR
Comment 1 Yi Zhao 2016-09-21 06:41:21 UTC
Actually the 91M is not the size but the download speed calculate by wget (91.4 MB/s). Because it downloads a 639 Bytes file in a short time that make the download speed is very high. (I guess this file is an error page) 

When download file from the sourceforge, the server will redirect to a mirror and return the new URL to the client. But seems like the server returns a wrong URL:

Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|54.240.190.157|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://downloads.sourceforge.net/#!/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2 [following]  


The correct server response should be like below:

Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://heanet.dl.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2 [following]


So this issue maybe caused by a server error for sourceforge. But if it happens frequently, we can change the original URL to a mirror for download.
Comment 2 Richard Purdie 2017-01-12 16:23:21 UTC
This seems to be working at the moment, we can reopen if we start having problems.
Comment 3 Ross Burton 2017-01-12 16:25:33 UTC
FWIW oe-core 5e52f208a17e7122209675fa96de6e7807c62feb and 4a81b3f669073455c9b2ee1514c43b96df9f7faa removed soduku-savant from the test suites.