sjtug / mirror-requests

新镜像请求 & BUG 汇报
https://mirrors.sjtug.sjtu.edu.cn
49 stars 2 forks source link

CRAN 同步失败 #3

Closed htfy96 closed 6 years ago

htfy96 commented 6 years ago

类别:Bug反馈

镜像名:CRAN

{
  "_index": "logzioCustomerIndex180310_v5",
  "_type": "lug",
  "_id": "AWIR8kuNA5r_R2YF_j-q.account-28646",
  "_version": 1,
  "_score": null,
  "_source": {
    "level": "info",
    "message": "Stderr: file has vanished: \"/CRAN/bin/macosx/mavericks/contrib/3.2/defrostR_1.0.0.tgz\" (in CRAN)\nrsync: read error: Connection reset by peer (104)\nrsync error: error in socket IO (code 10) at io.c(794) [receiver=3.1.2]\nrsync: connection unexpectedly closed (5889470 bytes received so far) [generator]\nrsync error: error in rsync protocol data stream (code 12) at io.c(235) [generator=3.1.2]\n",
    "type": "lug",
    "tags": [
      "_logz_json_tcp_5050"
    ],
    "@timestamp": "2018-03-10T22:05:14Z",
    "@version": "1",
    "_logzio_insights": [
      "066947b1eaba5a2ee67a80bc0bff5322b28fc5f8"
    ],
    "worker": "cran"
  },
  "fields": {
    "@timestamp": [
      1520719514000
    ]
  },
  "highlight": {
    "worker": [
      "@kibana-highlighted-field@cran@/kibana-highlighted-field@"
    ],
    "message": [
      "@kibana-highlighted-field@Stderr@/kibana-highlighted-field@: file has vanished: \"/CRAN/bin/macosx/mavericks/contrib/3.2/defrostR_1.0.0.tgz\" (in CRAN)\nrsync: read error: Connection reset by peer (104)\nrsync error: error in socket IO (code 10) at io.c(794) [receiver=3.1.2]\nrsync: connection unexpectedly closed (5889470 bytes received so far) [generator]\nrsync error: error in rsync protocol data stream (code 12) at io.c(235) [generator=3.1.2]\n"
    ]
  },
  "sort": [
    1520719514000
  ]
}

解决方案:增加特判,忽略这个源的vanish error

Refs: https://github.com/sjtug/lug/issues/3

htfy96 commented 6 years ago

可以使用rsync官方的脚本忽略vanish error:

https://git.samba.org/?p=rsync.git;a=blob_plain;f=support/rsync-no-vanished;hb=HEAD

htfy96 commented 6 years ago

Fixed by workaround at https://github.com/sjtug/mirror-docker/commit/ad69d29bd2e7f32bf0f850feeda90c18d24c92cb