SyncY V2版更新(v2.1.2)

更新内容:

2015-02-04
v2.1.2
1、修复了一个输出错误日志的内容存在中文字符时转码失败,导致程序退出的bug,。
2、修复了一个当下载文件时,服务器返回了一个非预期的代码,导致无法解析json对象,且没有记录错误消息的问题。
3、修复了一个在部分设备上创建线程失败,导致程序退出的bug。

之前版本在部分设备上运行会报错,错误信息为“thread.error:can’t start new thread”,更新到v2.1.2-2可解决此问题。

下载地址:http://www.syncy.cn/index.php/download/
配置说明:http://www.syncy.cn/index.php/syncyconfighelp/
安装配置方法:http://www.syncy.cn/index.php/syncysetup/

SyncY V2版更新(v2.1.2)》上有40条评论

    1. WishInLife 文章作者

      不客气,用最新版本的v2.1.2-2就不需要注释那几行了。

      回复
  1. 雨幻

    我发现网络异常断开也会造成退出,日志如下,不知道有没有关联
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1662, in
    sy.start()
    File “/usr/bin/syncy.py”, line 1164, in start
    self.__start_sync()
    File “/usr/bin/syncy.py”, line 1032, in __start_sync
    self.__syncy_uploadplus(localpath, remotepath)
    File “/usr/bin/syncy.py”, line 674, in __syncy_uploadplus
    self.__syncy_uploadplus(lfullpath, rfullpath)
    File “/usr/bin/syncy.py”, line 674, in __syncy_uploadplus
    self.__syncy_uploadplus(lfullpath, rfullpath)
    File “/usr/bin/syncy.py”, line 674, in __syncy_uploadplus
    self.__syncy_uploadplus(lfullpath, rfullpath)
    File “/usr/bin/syncy.py”, line 631, in __syncy_uploadplus
    retcode, rfnlist = self.__get_pcs_filelist(rdir, startidx, SyncY.config[‘listnumber’])
    File “/usr/bin/syncy.py”, line 414, in __get_pcs_filelist
    return 0, responses[‘list’]
    KeyError: ‘list’

    回复
    1. WishInLife 文章作者

      你好,你用的是哪个版本,最新版本已经对这个地方进行处理了,要不是2.1.2版,安装2.1.2版就可以。

      回复
  2. peric

    最新的2.1.2-2版,在WD My Cloud上面报错
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1728, in
    sy = SyncY(sys.argv[1:])
    File “/usr/bin/syncy.py”, line 255, in __init__
    threadtest.join(1)
    File “/usr/lib/python2.7/threading.py”, line 657, in join
    raise RuntimeError(“cannot join thread before it is started”)
    RuntimeError: cannot join thread before it is started

    回复
      1. ZF

        2015-02-12 20:43:25 ERROR(Errno:6): Get pcs quota failed: Couldn’t resolve host ‘pcs.baidu.com’.
        2015-02-12 20:43:25 ERROR(Errno:6): Get PCS file list of “/apps/SyncY” failed: Couldn’t resolve host ‘pcs.baidu.com’.
        2015-02-12 20:43:28 ERROR: Sync path: “/shares/Public/Baidupan:/:sync” failed, 0 files success, 0 files failed, 1 errors occurred.
        2015-02-12 20:43:28 ERROR(Errno:6): Get pcs quota failed: Couldn’t resolve host ‘pcs.baidu.com’.

        WD My Cloud 注释掉255行后出现以上错误

        回复
        1. WishInLife 文章作者

          看错误信息是不能解析域名,应该跟注释掉的255行没关系,先查看下mycloud上的dns,在mycloud上ping pcs.baidu.com看能否ping的通。

          回复
  3. TerryWang

    下的最新版本,在树莓派b+上使用。同步一个目录,目录下有两个文件,一个文本文件同步成功,另外一个为200M左右的视频,总是报错:

    2015-02-12 16:22:56 Resuming download file “/apps/SyncY/doc/liwzjh2015-02-11 qimila.net 旗米拉论坛.mkv”.
    2015-02-12 16:23:39 ERROR(Errno:56): Slice download file “/apps/SyncY/doc/liwzjh2015-02-11 qimila.net 旗米拉论坛.mkv” failed: Recv failure: Connection reset by peer.
    2015-02-12 16:23:39 ERROR: Download file “/apps/SyncY/doc/liwzjh2015-02-11 qimila.net 旗米拉论坛.mkv” failed.
    2015-02-12 16:23:42 Sync path: “/media/4dd6857d-84ed-4b4d-81de-34029ccbc676/baidu/doc:/doc:sync” failed, 0 files success, 1 files failed, 0 errors occurred.
    2015-02-12 16:23:42 ERROR: Sync path: “/media/4dd6857d-84ed-4b4d-81de-34029ccbc676/baidu/doc:/doc:sync” failed, 0 files success, 1 files failed, 0 errors occurred.

    回复
    1. WishInLife 文章作者

      估计你的这个视频文件是被河蟹了的文件,所以下载老是不成功,能下载文本文件,说明访问百度及下载都没有问题。
      已经被河蟹的文件改文件名没有,但有的网友测试过,一般在下载2-3分钟的时候被中断,如果你必须下载下载,你就把上传和下载块大小改小一点下,出的错都忽略,让程序频繁的重试下载,一段时间后就会下载下来了。

      回复
  4. TerryWang

    嗯,我把重试间隔设为10分钟了,目前重试几次后几个文件都能下载。谢谢!

    回复
  5. TerryWang

    另外请问,在最新版本怎么配置多个目录同步?是使用多个config syncpath配置项么?

    回复
    1. WishInLife 文章作者

      对,就是使用多个config syncpath配置节就可以配置多个目录同步。

      回复
  6. wh

    2.1.2-2 在wdmycloud偶尔出现如下错误,但进程并没有退出,似乎没有什么影响?

    2015-02-24 10:12:32 ERROR: Transfer task exception error occurred: ‘size’ .
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1345, in run
    ret = self.__rapid_uploadfile()
    File “/usr/bin/syncy.py”, line 1455, in __rapid_uploadfile
    if responses[‘size’] == self.__fsize:
    KeyError: ‘size’

    2015-02-24 11:45:27 ERROR: Transfer task exception error occurred: ‘size’ .
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1345, in run
    ret = self.__rapid_uploadfile()
    File “/usr/bin/syncy.py”, line 1455, in __rapid_uploadfile
    if responses[‘size’] == self.__fsize:
    KeyError: ‘size’

    2015-02-25 04:24:35 ERROR: Transfer task exception error occurred: ‘size’ .
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1345, in run
    ret = self.__rapid_uploadfile()
    File “/usr/bin/syncy.py”, line 1450, in __rapid_uploadfile
    return self.__slice_uploadfile()
    File “/usr/bin/syncy.py”, line 1523, in __slice_uploadfile
    if responses[‘size’] == self.__fsize:
    KeyError: ‘size’

    回复
    1. WishInLife 文章作者

      出现这个错误进程没有退出,只是相应的线程退出了,出现这个错误时是在秒传文件,服务器应该返回一个json字符串,其中包含size的内容,不知道是json有问题还是你的环境解析json是有问题,也有可能是网络问题导致接受到的信息有问题,所以才出现了这个错误,如果这个错误出现的次数有限可以忽略。
      另外,你看下你的python的版本,最好是2.7.3或以后得版本(不要是3.*的版本哦)。

      回复
  7. 雨幻

    我用2.12版以后不再出现断网报错退出的问题,不过我现在是用来同步很多的照片文件,上传带宽小,网络不稳定,错误日志里面有很多上传错误的提示
    1.我应该怎么做能让SYNCY一直去检查所有需要同步的文件,并保证所有文件都已经上传成功?
    2.是不是删除.syncy.info.db也能让程序重新检查所有的文件上传?

    回复
    1. WishInLife 文章作者

      syncy最初的开发目的就是备份我自己的照片,因此你考虑的都不会有问题,只要设置好了就可以。
      .syncy.info.db文件是记录同步信息的,可别删除了,只有同步成功的文件信息才会记录下来,同步失败的、新增的、被修改的文件信息都不会有的。删除了此文件就会重复同步浪费很多时间,每次同步时都会检查所有的文件,只是不同的同步方式检查的时候有些差别,根据你说的备份照片的应用场景,可用的同步模式可以为upload或upload+,采用upload模式,在.syncy.info.db有相应的文件同步记录时不检查云端此文件是否被删除,即认为已同步过会被跳过,没有相应记录的当然会上传;采用upload+模式时,在.syncy.info.db有相应的文件同步记录时还会检查云端此文件是否被删除,如果被删除,会再次上传的。

      回复
  8. shenben

    我是WD mycloud用户,python升级到mycloud官方源的最新版,使用syncy 2..1.2时报错
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1728, in
    sy = SyncY(sys.argv[1:])
    File “/usr/bin/syncy.py”, line 255, in __init__
    threadtest.join(1)
    File “/usr/lib/python2.7/threading.py”, line 657, in join
    raise RuntimeError(“cannot join thread before it is started”)
    RuntimeError: cannot join thread before it is started
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1728, in
    sy = SyncY(sys.argv[1:])
    File “/usr/bin/syncy.py”, line 255, in __init__
    threadtest.join(1)
    File “/usr/lib/python2.7/threading.py”, line 657, in join
    raise RuntimeError(“cannot join thread before it is started”)
    RuntimeError: cannot join thread before it is started

    回复
    1. WishInLife 文章作者

      注释掉255行,也就是threadtest.join(1)这一行应该就可以了。

      回复
  9. shenben

    我使用2.1.1时,没有异常报告,文件同步也可以顺利完成,但是一段时间后发现syncy不再运行,即再次输入 python syncy.py时不再显示syncy is playing之类的显示而是显示同步信息。

    回复
    1. WishInLife 文章作者

      首先确认在这之间系统没有重新启动,另外,你的python是2.7的吗?还有不排除可能存在的未知bug导致程序发生segmentation fault错误,如果是发生此错误确实没有任何错误记录,原因也不明确,跟libcurl的可能性比较大,如libcurl和python-curl不是最新版本的话,升级到最新版本看看。

      回复
  10. jia

    你好,这个工具很方便,感谢。但最近使用时出现错误:
    File “/usr/bin/syncy.py”, line 1028, in __syncy_download
    if self.__check_syncstatus(rmd5,’*’,rsize,fnmd5) == 1:
    File “/usr/bin/syncy.py”, line 830, in __check_syncstatus
    rmd5 = rmd5.decode(‘hex’)
    File “/usr/lib/python2.7/encodings/hex_codec.py”, line 42, in hex_decode
    output = binascii.a2b_hex(input)
    TypeError: Non-hexadecimal digit found

    v1和v2版本都是这样,我试了多个设备,包括Linux、windows下执行都是这个错误,调试发现 rmd5 = rmd5.decode(‘hex’)这一句执行时rmd5的值是:OD47190A4B353CC1F786F0EBAC2789AA0C,
    请教如何解决?

    回复
    1. WishInLife 文章作者

      你好,你反馈的这个问题是第一反馈的,我看了下rmd5的长度是34,正确的长度应该是32。请确认是不是只是在同步某一个文件的时候发生,还是在同步所有的文件都发生?如果只是同步某一个文件发生,请先移走此文件再测试下。如最终确认是某一个文件有问题的话,那就是百度返回的文件的md5是异常的。

      回复
      1. jia

        测试了下确实文件的问题,原来我只是尝试了更改目录、文件名。
        问题解决了,谢谢!

        回复
    1. WishInLife 文章作者

      以前获取设备码正常吗?系统内核有没有变化?

      回复
  11. lamzenki

    123452015-03-14 23:43:37 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:43:57 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:43:57 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:43:57 ERROR: Download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb” failed.
    2015-03-14 23:44:15 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:44:15 ERROR: Download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41” failed.
    2015-03-14 23:45:01 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4” failed: Connection timed out after 15150 milliseconds.
    2015-03-14 23:45:16 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:45:16 ERROR: Download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4” failed.
    2015-03-14 23:45:19 ERROR(Errno:56): Slice download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb” failed: Recv failure: Connection reset by peer.
    2015-03-14 23:45:31 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:45:47 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:45:47 ERROR: Download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb” failed.
    2015-03-14 23:47:05 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:47:21 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:47:21 ERROR: Download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4” failed.
    2015-03-14 23:48:38 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/寮傚舰鍓嶅摠.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:49:16 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/寮傚舰鍓嶅摠.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:49:16 ERROR: Download file “/apps/SyncY/baiduyun/寮傚舰鍓嶅摠.mp4” failed.
    2015-03-14 23:51:12 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:51:12 ERROR: Download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb” failed.
    2015-03-14 23:51:13 ERROR: Sync path: “/mnt/sda1/baiduyun:/baiduyun:download” failed, 0 files success, 10 files failed, 0 errors occurred.
    2015-03-14 23:52:33 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/銆愮鏈€戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆戙€?014涓浗鎮枒鎯婃倸澶х墖銆?銆怣ystery銆戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆?rmvb” failed: Connection timed out after 15146 milliseconds.
    2015-03-14 23:53:00 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:54:03 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:54:04 ERROR: Download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv” failed.
    2015-03-14 23:55:13 ERROR(Errno:28): Slice download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-14 23:56:06 ERROR(Errno:403): Slice download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb” failed: Returned by the server is not in the expected results..
    2015-03-14 23:56:06 ERROR: Download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb” failed.
    2015-03-14 23:56:07 ERROR(Errno:404): Slice download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4” failed: Returned by the server is not in the expected results..
    2015-03-14 23:56:07 ERROR(Errno:404): Slice download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4” failed: Returned by the server is not in the expected results..
    2015-03-14 23:56:07 ERROR: Download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4” failed.

    123452015-03-14 23:41:25 PCS quota is 2055G,used 1217G.
    2015-03-14 23:41:25 Start sync path: “/mnt/sda1/baiduyun:/baiduyun:download”.
    2015-03-14 23:41:26 Resuming download file “/apps/SyncY/baiduyun/銆愮鏈€戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆戙€?014涓浗鎮枒鎯婃倸澶х墖銆?銆怣ystery銆戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆?rmvb”.
    2015-03-14 23:41:26 Resuming download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv”.
    2015-03-14 23:42:36 Resuming download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb”.
    2015-03-14 23:42:42 Resuming download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4”.
    2015-03-14 23:42:43 Resuming download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41”.
    2015-03-14 23:43:57 Resuming download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4”.
    2015-03-14 23:44:15 Resuming download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb”.
    2015-03-14 23:45:16 Resuming download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb”.
    2015-03-14 23:45:47 Resuming download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4”.
    2015-03-14 23:47:21 Resuming download file “/apps/SyncY/baiduyun/寮傚舰鍓嶅摠.mp4”.
    2015-03-14 23:51:13 Sync path: “/mnt/sda1/baiduyun:/baiduyun:download” failed, 0 files success, 10 files failed, 0 errors occurred.
    2015-03-14 23:51:13 PCS quota is 2055G,used 1217G.
    2015-03-14 23:51:44 PCS quota is 2055G,used 1217G.
    2015-03-14 23:51:44 Start sync path: “/mnt/sda1/baiduyun:/baiduyun:download”.
    2015-03-14 23:51:45 Resuming download file “/apps/SyncY/baiduyun/銆愮鏈€戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆戙€?014涓浗鎮枒鎯婃倸澶х墖銆?銆怣ystery銆戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆?rmvb”.
    2015-03-14 23:51:45 Resuming download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv”.
    2015-03-14 23:54:04 Resuming download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb”.
    2015-03-14 23:56:06 Resuming download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4”.
    2015-03-14 23:56:07 Resuming download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41”.
    2015-03-14 23:59:18 Resuming download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4”.
    2015-03-14 23:59:59 PCS quota is 2055G,used 1207G.
    2015-03-14 23:59:59 Start sync path: “/mnt/sda1/baiduyun:/baiduyun:download”.
    2015-03-15 00:00:00 Resuming download file “/apps/SyncY/baiduyun/銆愮鏈€戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆戙€?014涓浗鎮枒鎯婃倸澶х墖銆?銆怣ystery銆戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆?rmvb”.
    2015-03-15 00:00:00 Resuming download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv”.
    2015-03-15 00:01:41 Resuming download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb”.
    2015-03-15 00:06:43 Resuming download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4”.
    2015-03-15 00:06:44 Resuming download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41”.
    2015-03-15 00:07:58 Resuming download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4”.
    2015-03-15 00:09:13 Resuming download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb”.
    2015-03-15 00:10:28 Resuming download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb”.
    2015-03-15 00:11:45 Resuming download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4”.
    2015-03-15 00:13:00 Resuming download file “/apps/SyncY/baiduyun/寮傚舰鍓嶅摠.mp4”.
    2015-03-15 00:14:15 Sync path: “/mnt/sda1/baiduyun:/baiduyun:download” failed, 0 files success, 10 files failed, 0 errors occurred.
    2015-03-15 00:14:15 PCS quota is 2055G,used 1207G.
    2015-03-15 00:14:46 PCS quota is 2055G,used 1207G.
    2015-03-15 00:14:46 Start sync path: “/mnt/sda1/baiduyun:/baiduyun:download”.
    2015-03-15 00:14:47 Resuming download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv”.
    2015-03-15 00:14:47 Resuming download file “/apps/SyncY/baiduyun/銆愮鏈€戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆戙€?014涓浗鎮枒鎯婃倸澶х墖銆?銆怣ystery銆戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆?rmvb”.
    2015-03-15 00:16:02 Resuming download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb”.
    2015-03-15 00:16:02 Resuming download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4”.
    2015-03-15 00:16:03 Resuming download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41”.
    2015-03-15 00:17:28 Resuming download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4”.
    2015-03-15 00:18:48 Resuming download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb”.
    2015-03-15 00:19:38 Resuming download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb”.
    2015-03-15 00:20:03 Resuming download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4”.
    2015-03-15 00:22:58 Resuming download file “/apps/SyncY/baiduyun/寮傚舰鍓嶅摠.mp4”.
    2015-03-15 00:24:13 Sync path: “/mnt/sda1/baiduyun:/baiduyun:download” failed, 0 files success, 10 files failed, 0 errors occurred.
    2015-03-15 00:24:13 PCS quota is 2055G,used 1207G.
    2015-03-15 00:24:44 PCS quota is 2055G,used 1207G.
    2015-03-15 00:24:44 Start sync path: “/mnt/sda1/baiduyun:/baiduyun:download”.
    2015-03-15 00:24:45 Resuming download file “/apps/SyncY/baiduyun/銆愮鏈€戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆戙€?014涓浗鎮枒鎯婃倸澶х墖銆?銆怣ystery銆戙€愰珮娓?280鐗圚D-RMVB.鍥借涓嫳鍙屽瓧銆?rmvb”.
    2015-03-15 00:24:45 Resuming download file “/apps/SyncY/baiduyun/銆愪箰璁?瀹夊皬浼?鍒嗕韩銆慦anted720p.mkv”.
    2015-03-15 00:26:00 Resuming download file “/apps/SyncY/baiduyun/銆愭订闈?98-03.Probation Order銆戙€愰珮娓呰摑鍏?20P鐗圔D-RMVB.绮よ涓瓧銆?rmvb”.
    2015-03-15 00:26:54 Resuming download file “/apps/SyncY/baiduyun/婢矼F浜?.The.Man.From.Macau.2.2015.TC720P.X264.AAC.Mandarin.CHS.Mp4Ba.mp4”.
    2015-03-15 00:26:54 Resuming download file “/apps/SyncY/baiduyun/鍗氱墿棣唅濡欏3.mp41”.
    2015-03-15 00:27:09 Resuming download file “/apps/SyncY/baiduyun/鍐瞫hang浜戦渼.mp4”.
    2015-03-15 00:27:48 Resuming download file “/apps/SyncY/baiduyun/澶ф崟.2012.720p.BluRay.涓枃瀛楀箷.rmvb”.
    2015-03-15 00:28:24 Resuming download file “/apps/SyncY/baiduyun/涓滀含婀炬捣闅?rmvb”.
    2015-03-15 00:28:57 Resuming download file “/apps/SyncY/baiduyun/澶╁皢闆勭嫯.mp4”.

    系统名称 PandoraBox
    主机型号 PogoPlug Pro
    固件版本 PandoraBox Pandora 12.09.1 / LuCI Trunk (0.11+svn)
    内核版本 3.1.10
    本地时间 Sun Mar 15 00:54:03 2015
    运行时间 1d 4h 48m 36s
    平均负载 0.17, 0.22, 0.23

    回复
    1. WishInLife 文章作者

      SyncY运行没有任何问题,都是网络或服务器问题,错误信息已经很清楚了。

      回复
  12. 拍拉头

    我用POgoplug.曾经试过用读卡器插USB,上传相机的照片。一天后,内存卡所有文件丢失,好像刚格式化的一样。不知道是哪里出了问题。现在升级,还是出错。

    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1718, in
    sy.start()
    File “/usr/bin/syncy.py”, line 1175, in start
    self.__start_sync()
    File “/usr/bin/syncy.py”, line 1041, in __start_sync
    self.__syncy_upload(localpath, remotepath)
    File “/usr/bin/syncy.py”, line 626, in __syncy_upload
    fmeta = os.stat(lfullpath)
    OSError: [Errno 5] Input/output error: ‘/mnt/sda1/uploads/DSC00385.JPG’
    2015-03-17 12:51:36 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:51:41 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:51:45 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:51:50 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:51:58 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:04 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:15 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:19 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:21 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:25 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:25 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:28 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:30 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:30 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:31 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:36 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:39 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:40 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:47 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:52:51 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:53:01 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:53:08 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:53:26 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:53:52 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:53:57 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:54:00 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:54:12 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/02德天瀑布.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:54:15 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:54:16 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:54:49 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:55:00 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:55:20 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:55:31 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/2015罗三妹.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:55:55 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:56:01 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:56:01 ERROR: Slice upload file “/mnt/sda1/uploads/2015春节/03明仕田园.mp4” failed.
    2015-03-17 12:57:49 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.
    2015-03-17 12:57:51 ERROR(Errno:28): Slice upload file “/mnt/sda1/uploads/2015春节/01南宁.mp4” failed: Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds.

    回复
    1. WishInLife 文章作者

      你好,第一个错应该是当时文件出现问题了,无法访问了才出错的,后面的错误都是网络或服务器问题,可以重启下路由看看,如果还不行就等一会在看看,数量少的可以可以忽略。

      回复
  13. 牛牛

    求一个WD MY CLOUD 4.X版本可用的同步程序,本人菜鸟,研究了几个晚上都不会搞。
    最后显示
    2015-03-19 21:38:58 PCS quota is 2054G,used 0G.
    2015-03-19 21:38:58 Start sync path: “/nfs/baiduyun:/:sync”.
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1662, in
    sy.start()
    File “/usr/bin/syncy.py”, line 1164, in start
    self.__start_sync()
    File “/usr/bin/syncy.py”, line 1038, in __start_sync
    self.__syncy_sync(localpath, remotepath)
    File “/usr/bin/syncy.py”, line 870, in __syncy_sync
    self.__syncy_sync(lfullpath, rfullpath)
    File “/usr/bin/syncy.py”, line 950, in __syncy_sync
    synctask.start()
    File “/usr/lib/python2.7/threading.py”, line 495, in start
    _start_new_thread(self.__bootstrap, ())
    thread.error: can’t start new thread

    是照这个贴子搞的。
    http://www.nasyun.com/forum.php?mod=viewthread&tid=23453&page=1&authorid=11867

    回复
    1. WishInLife 文章作者

      你好,你这个是x最新的2.1.2版吗?不是的话用最新版,最新版出错了的话再贴出错误,你这报出来的错误在最新版中应该不会有的。

      回复
      1. 牛牛

        是python-support_1.0.15_all,应该是1.015版,本人菜鸟,网站有现成的文件就用了,新版本不知怎样用,是否有现成的可用于WD MYCLOUD用来百度云同步程序。

        回复
        1. WishInLife 文章作者

          你好,现在新的python版本是2.1.2版,可以在wd mycloud上运行,运行环境要求跟1.0.15一样。具体的使用参照安装配置说明,别的论坛也有一些教程,百度搜下就可以搜出来,如果还不会可以加入qq讨论群59160264。

          回复
  14. 三月的路人戊

    注释掉255行后出现如下错误,之前2.1.1版也是类似的,麻烦作者大大看一下:)

    WDMyCloud:~# /usr/bin/syncy.py
    2015-03-24 08:30:17 PCS quota is 2054G,used 81G.
    2015-03-24 08:30:17 Start sync path: “/shares/Public/BaiduPan:/BaiduPan:sync”.
    Traceback (most recent call last):
    File “/usr/bin/syncy.py”, line 1729, in
    sy.start()
    File “/usr/bin/syncy.py”, line 1181, in start
    self.__start_sync()
    File “/usr/bin/syncy.py”, line 1055, in __start_sync
    self.__syncy_sync(localpath, remotepath)
    File “/usr/bin/syncy.py”, line 887, in __syncy_sync
    self.__syncy_sync(lfullpath, rfullpath)
    File “/usr/bin/syncy.py”, line 919, in __syncy_sync
    if rfnlist[i][‘size’] == fsize and self.__check_syncstatus(rfnlist[i][‘md5’], fmtime, fsize, fnmd5) == 1:
    File “/usr/bin/syncy.py”, line 590, in __check_syncstatus
    fmtime = struct.pack(‘>I’, fmtime)
    struct.error: integer out of range for ‘I’ format code

    回复
    1. WishInLife 文章作者

      你好,报这个错是相应文件的修改时间转换成二进制时出错,说数值越界了,按照32位数的最大值对应到日期上也是100年后了,你看看你上传的文件中有没有修改时间是100年后的日期的,有的话把相应的修改时间修正了就可以了。

      回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注