Bug#762014: XBMC fails to download any files (ERROR: CCurlFile::FillBuffer - Failed:, Timeout was reached)

2014-09-21 Thread Bálint Réczey
Hi Fabian,

2014-09-18 15:31 GMT+02:00 Fabian Grünbichler
fabian.gruenbich...@student.tuwien.ac.at:
 Hello again,

 after downgrading libcurl3-gnutls to version 7.37.1-1, everything works
 as expected again. I guess the problem lies either within xbmc's usage
 of libcurl or within libcurl, so I am leaving the bug as is for now.
The logs suggest that hostname resolution is broken in libcurl and
there were related fixes in the latest version which may have broken
something:
http://curl.haxx.se/changes.html#7_38_0

I checked the network traffic and the system using libcurl gets the response:
...
  4 5.0848150000.0.0.1 - 0.0.0.254   DNS 71 Standard query 0x066f
  thetvdb.com
  5 5.126175000   0.0.0.254 - 0.0.0.1DNS 151 Standard query
response 0xa625  A 190.93.240.81 A 141.101.113.81 A 141.101.123.81 A
190.93.242.81 A 190.93.241.81
...

OTOH libcurl reports error to XBMC:
... 22:02:40 T:2805492544INFO: easy_aquire - Created session to
http://thetvdb.com
22:02:40 T:2805492544   DEBUG: Curl::Debug - TEXT: Hostname was NOT
found in DNS cache
22:02:41 T:2741345088   DEBUG: webserver: request received for /jsonrpc
22:02:50 T:2805492544   DEBUG: Previous line repeats 9 times.
22:02:50 T:2805492544   DEBUG: Curl::Debug - TEXT: Resolving timed out
after 10050 milliseconds
...

Since libcurl worked well for XBMC for a long time and there is
nothing mentioning any intentional API changes in cURL's changelog I
reassing
this bug to curl for further analysis.

Dear curl maintainers, please check this issue.

Cheers,
Balint


 Thanks,
 Fabian

 --
 GPG: https://web.student.tuwien.ac.at/~e0828562/key.asc or on your
 favourite keyserver


___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#762014: XBMC fails to download any files (\ERROR: CCurlFile::FillBuffer - Failed:, Timeout was reached\)

2014-09-20 Thread Simon Chopin
OK, it seems I've been a bit too litteral on this. I only downgraded libcurl3
and not the -nss nor -gnutls versions. Once I also pinned those, it started
working again. Many thanks to Joe for pointing that out to me.

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#762014: XBMC fails to download any files (ERROR: CCurlFile::FillBuffer - Failed:, Timeout was reached)

2014-09-18 Thread Fabian Grünbichler
Hello again,

after downgrading libcurl3-gnutls to version 7.37.1-1, everything works
as expected again. I guess the problem lies either within xbmc's usage
of libcurl or within libcurl, so I am leaving the bug as is for now.

Thanks,
Fabian

-- 
GPG: https://web.student.tuwien.ac.at/~e0828562/key.asc or on your
favourite keyserver

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#762014: XBMC fails to download any files (ERROR: CCurlFile::FillBuffer - Failed:, Timeout was reached)

2014-09-18 Thread Simon Chopin
I experience the same bug. I have tried downgrading, but it didn't help.

Quoting Fabian Grünbichler (2014-09-18 15:31:28)
 Hello again,
 
 after downgrading libcurl3-gnutls to version 7.37.1-1, everything works
 as expected again. I guess the problem lies either within xbmc's usage
 of libcurl or within libcurl, so I am leaving the bug as is for now.
 
 Thanks,
 Fabian
 
 -- 
 GPG: https://web.student.tuwien.ac.at/~e0828562/key.asc or on your
 favourite keyserver
 
 ___
 pkg-multimedia-maintainers mailing list
 pkg-multimedia-maintainers@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#762014: XBMC fails to download any files (ERROR: CCurlFile::FillBuffer - Failed:, Timeout was reached)

2014-09-17 Thread Fabian Grünbichler
Package: xbmc-bin
Version: 2:13.1~rc1+dfsg1-1+b2
Severity: normal

Hello,

XBMC fails to download any file from the net using libcurl (i.e., no
updating of addons, no scraping of movies/tv-shows/music, ..). The
logfile repeats the following lines for every file it tries to download:

20:01:37 T:139868360406784   ERROR: CCurlFile::FillBuffer - Failed:
Timeout was reached(28)
20:01:37 T:139868360406784   ERROR: CCurlFile::CReadState::Connect,
didn't get any data from stream.

For example when scraping using thetvdb.com (actual show name anonymized):

20:01:27 T:139868360406784   DEBUG: FindMovie: Searching for 'The TV
Show' using The TVDB scraper (path:
'/home/abc/.xbmc/addons/metadata.tvdb.com', content: 'tvshows', version:
'1.5.8')
20:01:27 T:139868360406784   DEBUG: scraper: CreateSearchUrl returned
url
cache=cache-The%20TV%20Show-en.xmlhttp://thetvdb.com/api/GetSeries.php?seriesname=The%20TV%20Showamp;language=en/url
20:01:27 T:139868360406784   DEBUG: CurlFile::Open(0x6738040)
http://thetvdb.com/api/GetSeries.php?seriesname=The%20TV%20Showamp;language=en
20:01:27 T:139868360406784INFO: easy_aquire - Created session to
http://thetvdb.com
20:01:27 T:139868360406784   DEBUG: Curl::Debug - TEXT: Hostname was NOT
found in DNS cache
20:01:37 T:139868360406784   DEBUG: Curl::Debug - TEXT: Resolving timed
out after 10009 milliseconds
20:01:37 T:139868360406784   ERROR: CCurlFile::FillBuffer - Failed:
Timeout was reached(28)
20:01:37 T:139868360406784   ERROR: CCurlFile::CReadState::Connect,
didn't get any data from stream.
20:01:37 T:139868360406784   DEBUG: Curl::Debug - TEXT: Closing connection 0
20:01:37 T:139868360406784   ERROR: Run: Unable to parse web site
20:01:37 T:139868360406784   ERROR: Process: Error looking up item The
TV Show
20:01:37 T:139868360406784   DEBUG: Thread VideoInfoDownloader
139868360406784 terminating

Downloading the various failing urls using curl works fine, so I guess
the problem lies either with xbmc's usage of libcurl3-gnutls or some
(XBMC-internal?) DNS problem. I think the problem started to appear with
the recent (lib)curl upgrade to version 7.38.0-1 , but I am not 100% sure.

The problem is reproducable using a newly generated .xbmc folder. If
there are any other ways to manually debug this issue (besides enabling
the debug logging options using the settings GUI and the --debug command
line option), please tell me. I can also provide the full non-anonymized
debug log file, but I'd rather not upload it publicly.

Thanks for your work,
Fabian

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (510, 'unstable'), (310, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xbmc-bin depends on:
ii  libasound21.0.28-1
ii  libavahi-client3  0.6.31-4
ii  libavahi-common3  0.6.31-4
ii  libavcodec56  6:11-1
ii  libavfilter5  6:11-1
ii  libavformat56 6:11-1
ii  libavresample26:11-1
ii  libavutil54   6:11-1
ii  libbluetooth3 5.23-1
ii  libbz2-1.01.0.6-7
ii  libc6 2.19-11
ii  libcap2   1:2.24-4
ii  libcdio13 0.83-4.2
ii  libcurl3-gnutls   7.38.0-1
ii  libdbus-1-3   1.8.8-1
ii  libdvdread4   5.0.0-1
ii  libexpat1 2.1.0-6
ii  libfreetype6  2.5.2-1.1
ii  libfribidi0   0.19.6-2
ii  libftgl2  2.1.3~rc5-4+nmu1
ii  libgcc1   1:4.9.1-14
ii  libgl1-mesa-glx [libgl1]  10.2.6-1
ii  libglew1.10   1.10.0-3
ii  libglu1-mesa [libglu1]9.0.0-2
ii  libjasper11.900.1-debian1-2
ii  libjbig0  2.1-3
ii  libjpeg8  8d1-1
ii  liblzo2-2 2.08-1
ii  libmicrohttpd10   0.9.37+dfsg-1+b1
ii  libmysqlclient18  5.5.39-1
ii  libpcre3  1:8.35-3
ii  libpcrecpp0   1:8.35-3
ii  libpng12-01.2.50-2
ii  libpostproc52 6:0.git20120821-4
ii  libpulse0 5.0-6
ii  libpython2.7  2.7.8-7
ii  libsamplerate00.1.8-8
ii  libsdl-image1.2   1.2.12-5+b2
ii  libsdl1.2debian   1.2.15-10
ii  libsidplay2   2.1.1-14
ii  libsmbclient  2:4.1.11+dfsg-1
ii  libsqlite3-0  3.8.6-1
ii  libssh-4  0.6.3-3+b1
ii  libssl1.0.0   1.0.1i-2
ii  libstdc++64.9.1-14
ii  libswscale3   6:11-1
ii  libtag1c2a1.9.1-2.1
ii  libtiff5  4.0.3-10
ii  libtinyxml2.6.2   2.6.2-2
ii  libudev1  215-4
ii  libva-glx11.3.1-3
ii  libva11.3.1-3
ii  libx11-6  2:1.6.2-3
ii  libxext6