iambus / xunlei-lixian

迅雷离线下载脚本
Other
1.97k stars 378 forks source link

执行命令就会有错误提示:IOError: CRC check failed #350

Open vincentpenn opened 10 years ago

vincentpenn commented 10 years ago

用这个脚本一年多了,简直成了生活中不可或缺的一部分,非常感谢作者!但是就在前几天,突然出现问题,参考了 issue334 https://github.com/iambus/xunlei-lixian/issues/334 ,安装最新的xunlei-lixian脚本也没法解决。 (ps:我一直都是按照这个博主的手把手教程安装的:http://blog.liukangxu.info/archives/389

错误报告如下: \ 执行list命令 **

root@Tomato-arctic:/opt# xunlei list Traceback (most recent call last): File "/opt/bin/xunlei", line 63, in execute_command() File "/opt/bin/xunlei", line 60, in execute_command commandscommand File "/opt/bin/lixian/lixian_cli_parser.py", line 165, in parse return f(parser(args_list, _args, _kwargs)) File "/opt/bin/lixian/lixian_commands/list.py", line 49, in list_task tasks = lixian_query.search_tasks(client, args) File "/opt/bin/lixian/lixian_query.py", line 429, in search_tasks base.query_search() File "/opt/bin/lixian/lixian_query.py", line 161, in query_search self.download_jobs += query.query_search() File "/opt/bin/lixian/lixian.py", line 192, in len self.touch() File "/opt/bin/lixian/lixian.py", line 116, in touch self.hit_page(0) File "/opt/bin/lixian/lixian.py", line 121, in hit_page info = self.fetch_page(page, self.page_size) File "/opt/bin/lixian/lixian.py", line 485, in fetch_page = lambda page_index, page_size: self.read_task_page_info_by_page_index(type_id, page_index, page_size) File "/opt/bin/lixian/lixian.py", line 443, in read_task_page_info_by_page_index return self.read_task_page_info_by_url(self.to_page_url(type_id, page_index, page_size)) File "/opt/bin/lixian/lixian.py", line 21, in withretry return f(_args, _kwargs) File "/opt/bin/lixian/lixian.py", line 427, in read_task_page_info_by_url page = self.urlread(url).decode('utf-8', 'ignore') File "/opt/bin/lixian/lixian.py", line 266, in urlread data = self.urlread1(url, **args) File "/opt/bin/lixian/lixian.py", line 260, in urlread1 data = ungzip(data) File "/opt/bin/lixian/lixian.py", line 1026, in ungzip return f.read() File "/opt/lib/python2.7/gzip.py", line 249, in read self._read(readsize) File "/opt/lib/python2.7/gzip.py", line 303, in _read self._read_eof() File "/opt/lib/python2.7/gzip.py", line 342, in _read_eof hex(self.crc))) IOError: CRC check failed 0x4d5a != 0xbc35d7f2L root@Tomato-arctic:/opt#

\ 执行download命令 ** root@Tomato-arctic:/opt# xunlei download --all Traceback (most recent call last): File "/opt/bin/xunlei", line 63, in execute_command() File "/opt/bin/xunlei", line 60, in execute_command commandscommand File "/opt/bin/lixian/lixian_cli_parser.py", line 165, in parse return f(parser(args_list, _args, _kwargs)) File "/opt/bin/lixian/lixian_commands/download.py", line 277, in download_task query.query_once() File "/opt/bin/lixian/lixian_query.py", line 155, in query_once self.download_jobs += query.query_once() File "/opt/bin/lixian/lixian.py", line 192, in len self.touch() File "/opt/bin/lixian/lixian.py", line 116, in touch self.hit_page(0) File "/opt/bin/lixian/lixian.py", line 121, in hit_page info = self.fetch_page(page, self.page_size) File "/opt/bin/lixian/lixian.py", line 485, in fetch_page = lambda page_index, page_size: self.read_task_page_info_by_page_index(type_id, page_index, page_size) File "/opt/bin/lixian/lixian.py", line 443, in read_task_page_info_by_page_index return self.read_task_page_info_by_url(self.to_page_url(type_id, page_index, page_size)) File "/opt/bin/lixian/lixian.py", line 21, in withretry return f(_args, _kwargs) File "/opt/bin/lixian/lixian.py", line 427, in read_task_page_info_by_url page = self.urlread(url).decode('utf-8', 'ignore') File "/opt/bin/lixian/lixian.py", line 266, in urlread data = self.urlread1(url, **args) File "/opt/bin/lixian/lixian.py", line 260, in urlread1 data = ungzip(data) File "/opt/bin/lixian/lixian.py", line 1026, in ungzip return f.read() File "/opt/lib/python2.7/gzip.py", line 249, in read self._read(readsize) File "/opt/lib/python2.7/gzip.py", line 303, in _read self._read_eof() File "/opt/lib/python2.7/gzip.py", line 342, in _read_eof hex(self.crc))) IOError: CRC check failed 0x3fcbedf != 0x79b1c4a9L root@Tomato-arctic:/opt#

iambus commented 10 years ago

这个错误一般由于迅雷服务器不稳定。你那边出现这个错误的频率如何?任务列表里一共有多少任务? 如果是最新的代码可以加两个参数看看有没有缓解lx list --limit=100 --page-size=10

vincentpenn commented 10 years ago

近一个星期都是这种错误,任务列表里任务一般是10-30个,今天只留下一个任务也是这样,按照上面加了参数,还是这样。我的宽带是移动的,本身网速就很不好,莫非和这个有关?

在 2013年11月21日下午4:09,Boyu Guo notifications@github.com写道:

这个错误一般由于迅雷服务器不稳定。你那边出现这个错误的频率如何?任务列表里一共有多少任务? 如果是最新的代码可以加两个参数看看有没有缓解lx list --limit=100 --page-size=10

— Reply to this email directly or view it on GitHubhttps://github.com/iambus/xunlei-lixian/issues/350#issuecomment-28964580 .

iambus commented 10 years ago

有可能吧。而且最近一个星期迅雷的服务确实非常差,说在服务器维护什么的。要不然你运行下这个命令:

lx list --log-path=./lixian.log --log-level=trace

然后把当前目录的lixian.log文件发到我的邮箱看看:iambus@gmail.com

vincentpenn commented 10 years ago

log已发送。另:刚换了一条有线通的宽带测试,一切恢复正常。