-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Download #240
Comments
感谢反馈。 能贴出你用的命令吗?还有可以帮忙贴出加上 |
谢谢作者回复。-dv后的信息请见最后。 我试了download, downfile, downdir, syncdown,都不具体显示错误原因,只有5次重试。 麻烦您看一下了,再次感谢。 Loading Hash Cache File '/home/medrecon/.bypy/bypy.hashcache.json'... Hash Cache File loaded.Verbose level = 1 sys.stderr.encoding = UTF-8 Token loaded: On Tue, Mar 29, 2016 at 10:20 PM, Hou Tianze notifications@github.com
|
刚才又测试了一下,发现把下载的CHUNK降到10KB以下就可以下载了,可是这个10KB的下载的速度真是。。。而且还是会断线,并再也连不上了。。。 求问这个问题怎么解决? 断线前后 -dv信息如下 [____________________] 0% (250.0kB/31.6MB) Request all goes fine
|
这个有点奇怪,没有任何错误就重试。你现在用的已经是最新版?可以帮忙加上 |
是最新版,v1.2.17 刚试了 -dddv的结果如下,好像还是没有任何具体的错误信息。。。 Loading Hash Cache File '/home/medrecon/.bypy/bypy.hashcache.json'... Hash Cache File loaded.Verbose level = 1 sys.stderr.encoding = UTF-8 Token loaded:
u'session_secret': u'6b579e9f4aad1710875a74e3e177372e', u'scope': u'basic 6VC7txyscQStk8hMfL+bqST9Ws66+/NaQQapIFE9e4zVZdSdSpRkXKnwA+cufOdZr+3LKwccitNZK4m61',
__get_file_info(): rdir : /apps/bypy/new | rfile: =%2Fapps%2Fbypy%2Fnew&by=name&order=asc&method=list HTTP/1.1\r\nHost:
netdisk;5.2.7.2;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia\r\n\
reply: 'HTTP/1.1 200 OK\r\n' 2592000.1461851372.438898731-1572671&path=%2Fapps%2Fbypy%2Fnew&by=name&order=asc&method=list 2.438898731-1572671&path=%2Fapps%2Fbypy%2Fnew&by=name&order=asc&method=list
u'md5': u'c404cfa22570ad82c7e0e539e6c83d70', u'size': 33139712
u'fs_id': 925233447408042, u'mtime': 1459261421, u'path':
u'md5': u'cdc6da1b27079ac3f4b9900f0eb7a0bb', u'size': 1679}],
u'md5': u'c404cfa22570ad82c7e0e539e6c83d70', u'size': 33139712}
Getting info of remote file =%2Fapps%2Fbypy%2Fnew&by=name&order=asc&method=list HTTP/1.1\r\nHost:
netdisk;5.2.7.2;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia\r\n\
reply: 'HTTP/1.1 200 OK\r\n' 2592000.1461851372.438898731-1572671&path=%2Fapps%2Fbypy%2Fnew&by=name&order=asc&method=list 2.438898731-1572671&path=%2Fapps%2Fbypy%2Fnew&by=name&order=asc&method=list
u'md5': u'c404cfa22570ad82c7e0e539e6c83d70', u'size': 33139712
u'fs_id': 925233447408042, u'mtime': 1459261421, u'path':
u'md5': u'cdc6da1b27079ac3f4b9900f0eb7a0bb', u'size': 1679}],
u'md5': u'c404cfa22570ad82c7e0e539e6c83d70', u'size': 33139712} =%2Fapps%2Fbypy%2Fnew%2Fmeas_MID04224_FID171045_AdjCoilSens.dat&method=download
netdisk;5.2.7.2;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia\r\nConnection:
/\r\nAccept-Encoding: gzip, deflate\r\n\r\n' a7511&xcode=06de5f7e65c6cecb4d290e68ce73f4fbfdd5d27d42b8a41d0b2977702d3e6764&fid=438898731-1572671-18071544306835&time=1 459316517&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-CeKv%2B4eE1i102KDCZnm%2FRaY7VzI%3D&to=n2b&fm=Nan,B,T,t&sta_d x=32&sta_cs=1&sta_ft=dat&sta_ct=7&fm2=Nanjing02,B,T,t&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=0000c0ceb3e29ece3b679e25e b1e8e6a7511&sl=81068110&expires=8h&rt=pr&r=467124621&mlogid=2077399711725394566&vuk=-&vbdid=-&fin=meas_MID04224_FID17104 5_AdjCoilSens.dat&slt=pm&uta=3&rtype=1&iv=0&isw=0&dp-logid=2077399711725394566&dp-callid=0.1.1 2592000.1461851372.438898731-1572671&path=%2Fapps%2Fbypy%2Fnew%2Fmeas_MID04224_FID171045_AdjCoilSens.dat&method=download
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection 0e68ce73f4fbfdd5d27d42b8a41d0b2977702d3e6764&fid=438898731-1572671-18071544306835&time=1459316517&sign=FDTAXGERLBH-DCb74 0ccc5511e5e8fedcff06b081203-CeKv%2B4eE1i102KDCZnm%2FRaY7VzI%3D&to=n2b&fm=Nan,B,T,t&sta_dx=32&sta_cs=1&sta_ft=dat&sta_ct= 7&fm2=Nanjing02,B,T,t&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=0000c0ceb3e29ece3b679e25eb1e8e6a7511&sl=81068110&expires= 8h&rt=pr&r=467124621&mlogid=2077399711725394566&vuk=-&vbdid=-&fin=meas_MID04224_FID171045_AdjCoilSens.dat&slt=pm&uta=3&r type=1&iv=0&isw=0&dp-logid=2077399711725394566&dp-callid=0.1.1
deflate\r\nConnection: keep-alive\r\nAccept: /\r\nUser-Agent: ndows;6.2.9200;WindowsBaiduYunGuanJia\r\n\r\n' 25eb1e8e6a7511&xcode=06de5f7e65c6cecb4d290e68ce73f4fbfdd5d27d42b8a41d0b2977702d3e6764&fid=438898731-1572671-180715443068 35&time=1459316517&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-CeKv%2B4eE1i102KDCZnm%2FRaY7VzI%3D&to=n2b&fm=Nan,B, T,t&sta_dx=32&sta_cs=1&sta_ft=dat&sta_ct=7&fm2=Nanjing02,B,T,t&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=0000c0ceb3e29ece 3b679e25eb1e8e6a7511&sl=81068110&expires=8h&rt=pr&r=467124621&mlogid=2077399711725394566&vuk=-&vbdid=-&fin=meas_MID04224 _FID171045_AdjCoilSens.dat&slt=pm&uta=3&rtype=1&iv=0&isw=0&dp-logid=2077399711725394566&dp-callid=0.1.1
1&xcode=06de5f7e65c6cecb4d290e68ce73f4fbfdd5d27d42b8a41d0b2977702d3e6764&fid=438898731-1572671-18071544306835&time=14593 16517&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-CeKv%2B4eE1i102KDCZnm%2FRaY7VzI%3D&to=n2b&fm=Nan,B,T,t&sta_dx=32 &sta_cs=1&sta_ft=dat&sta_ct=7&fm2=Nanjing02,B,T,t&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=0000c0ceb3e29ece3b679e25eb1e8 e6a7511&sl=81068110&expires=8h&rt=pr&r=467124621&mlogid=2077399711725394566&vuk=-&vbdid=-&fin=meas_MID04224_FID171045_Ad jCoilSens.dat&slt=pm&uta=3&rtype=1&iv=0&isw=0&dp-logid=2077399711725394566&dp-callid=0.1.1 On Wed, Mar 30, 2016 at 1:10 PM, Hou Tianze notifications@github.com
|
这个太诡异了。。暂时无头绪,我刚试了一下,我这里下载是可以的。
|
谢谢回复。升级了pyopenssl后(升级命令似乎应该是sudo pip install --upgrade pyopenssl 另外,下载大文件(>2GB)时会报错,看内容似乎是downchunk有问题?我一开始用的命令没有额外设置chunk大小,就用的是默认值(如果没记错的话默认值是3MB)。报错信息如下: [10:27:51] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file' [10:27:51] Function: __downchunks_act 而后我又尝试把CHUNK改为1MB,则能开始下载大文件,但速度还是很慢(目测大约也就10KB/s左右)。不知道是不是还是可能有哪里设置得不对的地方?下载>2GB文件的 Loading Hash Cache File '/home/medrecon/.bypy/bypy.hashcache.json'... Hash Cache File loaded.Verbose level = 1 sys.stderr.encoding = UTF-8 Token loaded: 2016-04-01 11:45 GMT+08:00 Hou Tianze notifications@github.com:
|
看错误是 |
是百度对速度做了限制吗?我这边网络接入速度很快的。百度会员账户有没有可能会快点? On Sat, Apr 2, 2016 at 11:23 AM, Hou Tianze notifications@github.com
|
我怀疑要么百度那边做了点限制,要么百度的cdn在不同区域速度有些问题,不过都没法确认。 |
好,我再看看有没有别的办法去筛查这个问题的原因。非常感谢作者君拿出这么好的东西分享给我们。 On Sat, Apr 2, 2016 at 3:01 PM, Hou Tianze notifications@github.com wrote:
|
好,有时候我的下载速度也是非常慢,至今也没办法找出确切原因或有效方案。 |
无法下载,重试5次之后依然无法下载。但是除上传/下载以外其他功能正常,包括列出文件、比较文件等。
debug信息如下 (具体的TOKEN和URL略去。。。):
Loading Hash Cache File '/home/medrecon/.bypy/bypy.hashcache.json'...
Hash Cache File loaded.
Verbose level = 1
Debug level = 1
Config directory: '/home/medrecon/.bypy'
Token file: '/home/medrecon/.bypy/bypy.json'
Hash Cache file: '/home/medrecon/.bypy/bypy.hashcache.json'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = UTF-8
sys.stderr.encoding = UTF-8
HTTP Status Code: 206
206 Partial Content (this is OK), processing action
[20:50:00] Waiting 10 seconds before retrying...
[20:50:10] Request Try #2 / 5
GET https://d.pcs.baidu.com/rest/2.0/pcs/file
actargs: xxx
Params: xxx
Full URL: xxx
HTTP Status Code: 206
206 Partial Content (this is OK), processing action
[20:50:36] Waiting 20 seconds before retrying...
[20:50:56] Request Try #3 / 5
HTTP Status Code: 206
206 Partial Content (this is OK), processing action
[20:51:22] Waiting 30 seconds before retrying...
[20:51:52] Request Try #4 / 5
HTTP Status Code: 206
206 Partial Content (this is OK), processing action
[20:52:18] Waiting 40 seconds before retrying...
[20:52:58] Request Try #5 / 5
HTTP Status Code: 206
206 Partial Content (this is OK), processing action
[20:53:24] Maximum number (5) of tries failed.
Skip saving Hash Cache since it has not been updated.
The text was updated successfully, but these errors were encountered: