亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4695 | 回復(fù): 8
打印 上一主題 下一主題

[FastDFS] UPload 失敗 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-11-11 11:34 |只看該作者 |倒序瀏覽
不知道為什么,這幾天FAST DFS upload 不行了,但是用HTTP下載是沒有問題的。有這樣的錯誤:
[root@localhost src]# java -cp fastdfs_client_v1.8.jar org.csource.fastdfs.TestClient fdfs_client.conf /opt/test1.txt
java.version=1.4.2
network_timeout=20000ms
charset=ISO8859-1
file length: 14
java.lang.Exception: getStoreStorage fail, errno code: 2
   at org.csource.fastdfs.StorageClient.newWritableStorageConnection(StorageClient.java:659)
   at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:143)
   at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:102)
   at org.csource.fastdfs.TestClient.main(TestClient.java:86)

用http:
[root@localhost src]# /usr/local/bin/fdfs_test /etc/fdfs/storage.conf upload /opt/test1.txt
This is FastDFS client test program v1.21

Copyright (C) 2008, Happy Fish / YuQing

FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.

[2009-11-11 11:30:26] ERROR - file: ../common/ini_file_reader.c, line: 191, include file "http.conf" not exists, line: "#include http.conf"
[2009-11-11 11:30:26] ERROR - load conf file "/etc/fdfs/storage.conf" fail, ret code: 2

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
2 [報告]
發(fā)表于 2009-11-11 18:40 |只看該作者

回復(fù) #1 ouqz 的帖子

第一個問題,storage server沒有正常運行起來吧?你看一下storage server的日志文件。
另外,建議使用最新的java API,目前版本是V1.11。

第二個問題,配置文件的問題。將storage.conf中的
#include http.conf
前面再加一個#將其注釋掉。

估計storage server不能正常啟動,也是這個原因。
建議將FastDFS server端升級到V1.22。

論壇徽章:
0
3 [報告]
發(fā)表于 2009-11-13 09:30 |只看該作者
[2009-11-13 09:26:12] INFO - FastDFS v1.22, base_path=/home/data/fastdfs, network_timeout=60s, port=22122, bind_addr=, max_connections=256, store_lookup=2, store_group=, store_server=0, store_path=0, reserved_storage_space=2048MB, download_server=0, allow_ip_count=-1, sync_log_buff_interval=10s, check_active_interval=120s, thread_stack_size=1024 KB
[2009-11-13 09:26:12] INFO - HTTP supported: server_port=80, default_content_type=application/octet-stream, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0

我把Fast DFS 都升成1.22了,java API也是最新的1.11 但還是上傳不了,
   [root@localhost src]# java -cp fastdfs_client_v1.11.jar org.csource.fastdfs.TestClient fdfs_client.conf /opt/test1.txt
Exception in thread "main" java.lang.NoClassDefFoundError: org.csource.fastdfs.TestClient
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: org.csource.fastdfs.TestClient not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:fastdfs_client_v1.11.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
是那里出現(xiàn)問題了呢?

論壇徽章:
0
4 [報告]
發(fā)表于 2009-11-13 09:38 |只看該作者
配置文件的問題。將storage.conf中的
#include http.conf
前面再加一個#將其注釋掉。
  這個早已經(jīng)是注釋了的,原來用http upload 都是可以的,
我看過里面配置也是對的

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
5 [報告]
發(fā)表于 2009-11-13 10:33 |只看該作者
原帖由 ouqz 于 2009-11-13 09:30 發(fā)表
我把Fast DFS 都升成1.22了,java API也是最新的1.11 但還是上傳不了,
   [root@localhost src]# java -cp fastdfs_client_v1.11.jar org.csource.fastdfs.TestClient fdfs_client.conf /opt/test1.txt
Exception in thread "main" java.lang.NoClassDefFoundError: org.csource.fastdfs.TestClient
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: org.csource.fastdfs.TestClient not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:fastdfs_client_v1.11.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
是那里出現(xiàn)問題了呢? ...


V1.11開始,對class的存放路徑進(jìn)行了調(diào)整。
原來的類名:org.csource.fastdfs.TestClient
新的類名:org.csource.fastdfs.test.TestClient
你的執(zhí)行腳本改為:
java -cp fastdfs_client_v1.11.jar org.csource.fastdfs.test.TestClient fdfs_client.conf /opt/test1.txt

你參照README中的說明進(jìn)行操作即可。

論壇徽章:
0
6 [報告]
發(fā)表于 2009-11-13 10:41 |只看該作者
哦,原來是這樣,
  現(xiàn)在測試可以了,太謝謝fish兄了。都怪自已沒有看說明,謝謝!
順便說一聲,大家storage跟tracker或者storage跟storage互聯(lián)不了,大家注意防火墻。

論壇徽章:
0
7 [報告]
發(fā)表于 2009-11-13 10:45 |只看該作者
問一問fish兄,F(xiàn)ast DFS 上傳的文件有沒有限制大少的呢?幾百M的東西能上傳嗎?

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
8 [報告]
發(fā)表于 2009-11-13 11:45 |只看該作者

回復(fù) #7 ouqz 的帖子

對于文件大小,F(xiàn)astDFS本身沒有做限制,可以上傳的。

論壇徽章:
0
9 [報告]
發(fā)表于 2009-11-17 10:06 |只看該作者
好的,知道了,太謝謝你啦
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP