Opened 8 years ago

Closed 7 years ago

#10719 closed Bug Report - General (Fixed)

Theme download using ftp:// fails when http_proxy is set

Reported by: pmhahn@… Owned by: cpinkham
Priority: minor Milestone: unknown
Component: Services - Theme Downloads Version: 0.25-fixes
Severity: medium Keywords: qt proxy ftp
Cc: Ticket locked: no

Description

When I try to download the Arclight theme in the ThemeDownload?, I just see something popup for just some micro seconds and then I'm back to the list of themes. Only running "mythfrontend --loglevel debug -v file,network" shows the following failure:

2012-05-13 08:56:24.977495 D  DownloadManager: queueDownload('ftp://ftp.osuosl.org/pub/mythtv/themes/0.25/Arclight-25.12_0.25.zip', '/home/pmhahn/.mythtv/tmp/Arclight-25.12_0.25.zip', 140443762908032)
2012-05-13 08:56:24.977664 D  Checking cache for ftp://ftp.osuosl.org/pub/mythtv/themes/0.25/Arclight-25.12_0.25.zip
2012-05-13 08:56:24.977839 D  DownloadManager: downloadError 103 No suitable proxy found
2012-05-13 08:56:24.977851 D  DownloadManager: downloadProgress(0, 0) (for reply 12024880)
2012-05-13 08:56:24.977865 D  DownloadManager: downloadProgress: ftp://ftp.osuosl.org/pub/mythtv/themes/0.25/Arclight-25.12_0.25.zip to /home/pmhahn/.mythtv/tmp/Arclight-25.12_0.25.zip is at 0 of 0 bytes downloaded
2012-05-13 08:56:24.977877 D  downloadProgress(ftp://ftp.osuosl.org/pub/mythtv/themes/0.25/Arclight-25.12_0.25.zip): sending event to caller
2012-05-13 08:56:24.977898 D  DownloadManager: downloadFinished(12024880)
2012-05-13 08:56:24.977903 D  DownloadManager: redirectUrl()
2012-05-13 08:56:24.977909 D  downloadFinished(140443794297232): COMPLETE: ftp://ftp.osuosl.org/pub/mythtv/themes/0.25/Arclight-25.12_0.25.zip
2012-05-13 08:56:24.978000 D  downloadFinished(140443794297232): COMPLETE: ftp://ftp.osuosl.org/pub/mythtv/themes/0.25/Arclight-25.12_0.25.zip, sending event to caller

That "No suitable proxy found" comes from Qt <http://qt.gitorious.net/qt/qtbase/blobs/43b6320a5a1e740e7b3dbc8fe623bd83903ad172/src/network/access/qnetworkreplyhttpimpl.cpp#line605>, but all downloads using ftp:// seem to fail. I have http_proxy=http://localhost:80 configured to use my local apache as proxy, which has only proxy_http but not proxy_ftp enabled. Unsetting http_proxy makes it work (even thou I have to select a theme twice to get it activated; it seems to be downloaded twice?)

MythTV should at least provide a more prominent hint on what went wrong.

Change History (2)

comment:1 Changed 7 years ago by Brendan Shanks <mrpippy@…>

I had the same problem on Windows with 0.25-fixes when an HTTP proxy is set.

comment:2 Changed 7 years ago by cpinkham

Resolution: Fixed
Status: newclosed

The easiest solution to this is to just use http://ftp.osuosl.org to download themes rather than ftp://ftp.osuosl.org. I have modified the theme packaging script and regenerated the themeinfo.xml files and themes.zip index files on the server. The FTP proxy issue should not be a problem anymore. The Theme Chooser (via MythDownloadManager?) should now use your HTTP proxy to get to the themes packages.

Note: See TracTickets for help on using tickets.