fdfs_client.exceptions.DataError: [-] Error: 2, No such file or directory问题

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "d:\software\python\Lib\fdfs_client\client.py", line 90, in upload_by_filename
    store_serv = tc.tracker_query_storage_stor_without_group()
  File "d:\software\python\Lib\fdfs_client\tracker_client.py", line 381, in tracker_query_storage_stor_without_group
    raise DataError('[-] Error: %d, %s' % (th.status, os.strerror(th.status)))
fdfs_client.exceptions.DataError: [-] Error: 2, No such file or directory

原因是虚拟机的IP地址变化,使原来安装时配置的fastdfs地址不能使用;

解决方法1:

卸载之前的storage,重新配置安装

解决方法2:

更改虚拟机IP地址为固定地址;

posted @ 2020-08-11 03:07  sewen  Views(747)  Comments(0Edit  收藏  举报