Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

[bug] register to node: x.x.x.x error #72

Closed
wu1405 opened this issue May 11, 2018 · 7 comments
Closed

[bug] register to node: x.x.x.x error #72

wu1405 opened this issue May 11, 2018 · 7 comments
Labels
areas/dfget-python kind/bug This is bug report for project

Comments

@wu1405
Copy link

wu1405 commented May 11, 2018

Always get error like this:
[2018-05-11 18:48:26,944] ERROR sign:59678-1526035671.512 lineno:81 : register to node:192.168.21.23 error

Traceback (most recent call last):
File "/usr/local/df-client/component/httputil.py", line 67, in register
schema, node), data=params, timeout=(2.0, 5.0))
File "/usr/local/df-client/vendor/requests-2.18.4-py2.7.egg/requests/sessions.py", line 555, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/df-client/vendor/requests-2.18.4-py2.7.egg/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/df-client/vendor/requests-2.18.4-py2.7.egg/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/local/df-client/vendor/requests-2.18.4-py2.7.egg/requests/adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='10.58.83.14', port=8002): Read timed out. (read timeout=5.0)
[2018-05-11 18:48:26,944] ERROR sign:59678-1526035671.512 lineno:243 : p2p fail
Traceback (most recent call last):
File "/usr/local/df-client/core/fetcher.py", line 230, in run
self.identifier)
File "/usr/local/df-client/component/httputil.py", line 126, in pull_piece_task
identifier)
File "/usr/local/df-client/component/httputil.py", line 86, in register
raise Exception("register result:%s" % result)
Exception: register result:None

@wu1405
Copy link
Author

wu1405 commented May 15, 2018

Another error is:
[2018-05-15 10:29:33,427] INFO sign:83846-1526351373.410 lineno:93 : do register result:{u'code': 200, u'data': {u'pieceSize': 15728640, u'fileLength': 7430897691, u'taskId': u'9a945882a7508e18f42eacda5e8c71c7c6e34e799fcddb92d509e69c94ac9d47'}} and cost 0.003
[2018-05-15 10:29:33,430] ERROR sign:83846-1526351373.410 lineno:119 : pull piece task fail:{u'msg': u'cdn status is fail', u'code': 604} and will migrate
[2018-05-15 10:29:33,430] INFO sign:83846-1526351373.410 lineno:64 : do register to 10.58.83.14,remainder:[]
[2018-05-15 10:29:33,431] INFO sign:83846-1526351373.410 lineno:93 : do register result:{u'code': 200, u'data': {u'pieceSize': 15728640, u'fileLength': 7430897691, u'taskId': u'9a945882a7508e18f42eacda5e8c71c7c6e34e799fcddb92d509e69c94ac9d47'}} and cost 0.002
[2018-05-15 10:29:33,433] ERROR sign:83846-1526351373.410 lineno:119 : pull piece task fail:{u'msg': u'cdn status is fail', u'code': 604} and will migrate
[2018-05-15 10:29:33,433] ERROR sign:83846-1526351373.410 lineno:243 : p2p fail
Traceback (most recent call last):
File "/media/disk1/fordata/web_server/project/p2p/1.0/df-client/core/fetcher.py", line 230, in run
self.identifier)
File "/media/disk1/fordata/web_server/project/p2p/1.0/df-client/component/httputil.py", line 132, in pull_piece_task
http_path, md5, identifier)
File "/media/disk1/fordata/web_server/project/p2p/1.0/df-client/component/httputil.py", line 126, in pull_piece_task
identifier)
File "/media/disk1/fordata/web_server/project/p2p/1.0/df-client/component/httputil.py", line 86, in register
raise Exception("register result:%s" % result)
Exception: register result:None
[2018-05-15 10:29:33,434] INFO sign:83846-1526351373.410 lineno:599 : download fail and not back source
[2018-05-15 10:29:33,437] INFO sign:83846-1526351373.410 lineno:60 : local http result:success for path:/client/ and cost:0.001
[2018-05-15 10:29:33,437] INFO sign:83846-1526351373.410 lineno:94 : |9a945882a7508e18f42eacda5e8c71c7c6e34e799fcddb92d509e69c94ac9d47|http://download.inner/test/testfile.tgz|7430897691|0|192.168.93.14|UNKNOWN|0.026|
[2018-05-15 10:29:33,437] INFO sign:83846-1526351373.410 lineno:111 : download FAIL cost:0.028s length:7430897691 reason:1003

@nonly
Copy link
Contributor

nonly commented Jun 6, 2018

supernode有啥日志么

@ghost
Copy link

ghost commented Jun 25, 2018

我这边也出现了类似的问题, 提示register node失败, dfget的日志显示如下:
screenshot from 2018-06-25 19 34 06
是由在vendor/urllib3-1.22-py2.7.egg/urllib3/util/timeout.py的126行抛出的
@nonly 请问这是bug还是版本问题呢?

@ghost
Copy link

ghost commented Jun 25, 2018

将timeout=(2.0 5.0)更改成timeout=5后, node仍是register失败, 返回的code=607。 但是supernode没有任何异常日志输出
screenshot from 2018-06-25 19 49 43
607是代表什么意思呢? @nonly

@nonly
Copy link
Contributor

nonly commented Jun 25, 2018

api文档里有
Other cases could happen:

  1. the task id might duplicate with an existing one. 606
  2. the url might be invalid. 607
  3. the access requires authentication. 608 or 609

@allencloud allencloud changed the title register to node: x.x.x.x error [bug] register to node: x.x.x.x error Oct 23, 2018
@allencloud allencloud added the kind/bug This is bug report for project label Oct 23, 2018
@chenchaobing
Copy link
Contributor

上面python的报错,应该是python版本的问题。
尝试执行以下命令,升级一下:
pip install -U requests

@BlueBlue-Lee
Copy link

我也是一直遇到各种问题,请问你们开源的这个版本到底 production ready了吗? @allencloud @lowzj

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
areas/dfget-python kind/bug This is bug report for project
Projects
None yet
Development

No branches or pull requests

7 participants