【FASTDFS】fastdfs上传文件报错 org.csource.common.MyException: getStoreStorage fail, errno code: 28 解决方法

无意中发现了一个巨牛的人工智能教程,忍不住分享一下给大家。教程不仅是零基础,通俗易懂,而且非常风趣幽默,像看小说一样!觉得太牛了,所以分享给大家。点这里可以跳转到教程。

 

这个报错要从一个tracker上的一个配置说起

这个配置的含义是:

storage上的剩余磁盘空间必须在10%以上才能上传文件成功,否则上传失败

这个错误信息非常明确了,我们用的fastdfs的client jar是 csource的,这个maven中央仓库下不下来,解决方法参照如下文章

https://blog.csdn.net/simonchi/article/details/84999067

实际storag

fastdfs有关tracker服务器返回storage服务器ip地址的问题。

03-22

在storage.conf的配置中,tracker_server的参数配置的是外网,具体参数为183.62.##.##:23000,但是在centos里面做 测试上传的时候,却出现一下错误: tracker_query_storage_store_list_without_group: server 1. group_name=, ip_addr=192.168.1.253, port=23000 group_name=group1, ip_addr=192.168.1.253, port=23000 [2018-03-22 09:27:31] ERROR - file: connection_pool.c, line: 110, connect to 192.168.1.253:23000 fail, errno: 110, error info: Connection timed out。 然后同过命令fdfs_monitor /etc/fdfs/storage.conf查看,参数如下: Storage 1: id = 192.168.1.226 ip_addr = 192.168.1.226 (centos7) OFFLINE http domain = 183.62.**.** version = 5.05 join time = 2018-03-20 14:47:47 up time = total storage = 172651 MB free storage = 172578 MB upload priority = 10 store_path_count = 1 subdir_count_per_path = 256 storage_port = 23000 storage_http_port = 23000 current_write_path = 0 source storage id = if_trunk_server = 0 connection.alloc_count = 0 connection.current_count = 0 connection.max_count = 0 total_upload_count = 42 success_upload_count = 42 total_append_count = 0 success_append_count = 0 total_modify_count = 0 success_modify_count = 0 total_truncate_count = 0 success_truncate_count = 0 total_set_meta_count = 22 success_set_meta_count = 22 total_delete_count = 0 success_delete_count = 0 total_download_count = 0 success_download_count = 0 total_get_meta_count = 0 success_get_meta_count = 0 total_create_link_count = 0 success_create_link_count = 0 total_delete_link_count = 0 success_delete_link_count = 0 total_upload_bytes = 5524950 success_upload_bytes = 5524950 total_append_bytes = 0 success_append_bytes = 0 total_modify_bytes = 0 success_modify_bytes = 0 stotal_download_bytes = 0 success_download_bytes = 0 total_sync_in_bytes = 0 success_sync_in_bytes = 0 total_sync_out_bytes = 0 success_sync_out_bytes = 0 total_file_open_count = 42 success_file_open_count = 42 total_file_read_count = 0 success_file_read_count = 0 total_file_write_count = 42 success_file_write_count = 42 last_heart_beat_time = 2018-03-22 09:25:33 last_source_update = 2018-03-21 18:21:50 last_sync_update = 1970-01-01 08:00:00 last_synced_timestamp = 1970-01-01 08:00:00 (never synced) Storage 2: id = 192.168.1.253 ip_addr = 192.168.1.253 (gateway.lan.localnet) ACTIVE http domain = 183.62.**.** version = 5.05 join time = 2018-03-20 14:47:47 up time = 2018-03-22 09:25:51 total storage = 172651 MB free storage = 172578 MB upload priority = 10 store_path_count = 1 subdir_count_per_path = 256 storage_port = 23000 storage_http_port = 23000 current_write_path = 0 source storage id = if_trunk_server = 0 connection.alloc_count = 256 connection.current_count = 0 connection.max_count = 0 total_upload_count = 42 success_upload_count = 42 total_append_count = 0 success_append_count = 0 total_modify_count = 0 success_modify_count = 0 total_truncate_count = 0 success_truncate_count = 0 total_set_meta_count = 22 success_set_meta_count = 22 total_delete_count = 0 success_delete_count = 0 total_download_count = 0 success_download_count = 0 total_get_meta_count = 0 success_get_meta_count = 0 total_create_link_count = 0 success_create_link_count = 0 total_delete_link_count = 0 success_delete_link_count = 0 total_upload_bytes = 5524950 success_upload_bytes = 5524950 total_append_bytes = 0 success_append_bytes = 0 total_modify_bytes = 0 success_modify_bytes = 0 stotal_download_bytes = 0 success_download_bytes = 0 total_sync_in_bytes = 0 success_sync_in_bytes = 0 total_sync_out_bytes = 0 success_sync_out_bytes = 0 total_file_open_count = 42 success_file_open_count = 42 total_file_read_count = 0 success_file_read_count = 0 total_file_write_count = 42 success_file_write_count = 42 last_heart_beat_time = 2018-03-22 09:25:52 last_source_update = 2018-03-21 18:21:50 last_sync_update = 1970-01-01 08:00:00 last_synced_timestamp = 1970-01-01 08:00:00 (never synced) 请问该如何解决? 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 酷酷鲨 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览