-
Notifications
You must be signed in to change notification settings - Fork 773
Pull image again encounter 502 error #702
Comments
me too!!,版本0.4.2 1,a b 两个节点,先在a节点执行docker pull完成后,再在b节点执行docker pull如下报错:error pulling image configuration: received unexpected HTTP status: 503 Service Unavailable 2,dfdaemon节点log:2019-07-23 13:30:18.061 INFO sign:4615-1563859818.058 : do register result:{"code":200,"msg":"success","data":{"taskId":"07ed3d418973e74784b7c23c1d83447152e005e2840c601196cc1eddd0434b33","fileLength":129,"pieceSize":4194304}} and cost:0.001s 3,supernode的日志:2019-07-23 13:30:07.902 INFO sign:9 : success to register peer &{IP:pull报错的节点iP HostName:pull报错的节点名称 Port:27866 Version:0.4.2} |
Set a longer timeout by decrease
|
starnop/supernode:0.4.3_pre2 |
2019-07-22 05:31:14.289 INFO sign:175-1563773474.195 : downloading piece:{"taskID":"8a991426954e1ad419c72ef55679648b00cc862cfa74dc7189ae30acedc03dec","superNode":"192.168.21.16:8002","dstCid":"","range":"","result":502,"status":700,"pieceSize":0,"pieceNum":0} |
dfget 的默认的--timeout参数是干啥的,和minRate: 20480区别是啥 ? |
The --timeout specifies the max time for one task to run. If your pulling process exceeds this time and then downloading will fail. |
我感觉这个配置逻辑怪怪的,假如都封装给dfdaemon,透传给dfget就容易理解了。本来dfdaemon日志超时,但是要配置dfget.yaml ,感觉写到dfdaemon.yaml更合理。 @yeya24 |
Yes. It is quite confusing. Now we are planning to refactor this part. You can check out dragonflyoss/dragonfly#687 for more details. |
Maybe this issue is about docker/cli#1143. |
docker/cli#1143 is about the problem of Docker hub, not a private registry. |
Ⅰ. Issue Description
The following error occurs when I:
docker rmi -f
Logs of dfclient:
Ⅱ. Describe what happened
Image pull failed with 502 error, and wait some time (1 min), pull again, it succeeded.
Ⅲ. Describe what you expected to happen
Image pulled successfully anytime I want.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
docker rmi -f
Ⅴ. Anything else we need to know?
use proxy mode
Ⅵ. Environment:
uname -a
):The text was updated successfully, but these errors were encountered: