Comments (11)
不行吧?
用java-client操作的时候,先从tracker获取storage的ip和端口以及group,但是tracker获取storage的ip是storage自动去注册的,所以tracker获取到的storage的ip是容器内的
所以,是不是去看源码storage怎么注册到tracker的
from fastdfs.
我遇到相同的问题,事实上你在log里面看到的报错是可以忽略的,因为内网连不上的时候,会自动切换到公网,这时候你用fdfs_monitor 看一下 就会看到新加入的storage的状态已经变为同步中了
from fastdfs.
@wanghaolw 会不会自动切换我具体还不太清楚,但是storager链接tracker时如果改成外网的ip就没问题。storager.conf tracker_server配置如下:
tracker_server=域名:端口(外网地址)
from fastdfs.
这个问题怎么解决呢,有没有知道
from fastdfs.
这个问题解决了吗,最近我也遇到这个问题了
from fastdfs.
@liu-yfeng
解决方案:
storager.conf tracker_server配置如下:
tracker_server=域名:端口(外网地址)
from fastdfs.
@lb-never any update? 遇到一样的问题 docker ip
from fastdfs.
storage配置成tracker外网ip后
storage端口启动不起来?
from fastdfs.
情况一 : fastdfs部署在一个腾讯云上面 , 再storage中配置tracker的地址时,如果用外网ip, fastdfs启动不了 , tracker一直在选举 , 如果用内网地址就是ifconfig可以看到的那个ip , fastdfs时可以启动的,选举成功,也可以client上传个文件上去.然后我就本地代码想连上服务器,发现socket连接超时 , 估计是本地代码获取到的storage是内网地址导致连不上了 , 至今还不知道怎么解决.....
情况二 : fastdfs部署在一个内网服务器上 , 使用docker , 基本流程一样,最后使用代码去上传文件时 , 获取到的storage是docker 容器里面的内网地址 , 导致还是不能使用
真的没想到使用fastdfs这么坎坷 , 救救孩子吧
from fastdfs.
@liu-yfeng
解决方案:
storager.conf tracker_server配置如下:
tracker_server=域名:端口(外网地址)
确定可以吗?用公网IP,storage启动都报错好吗。。。
from fastdfs.
方案1:参考 CodeManLH 的方案 增加代理
方案2:参考 thisisrui 的方案 增加 iptables nat 转发
from fastdfs.
Related Issues (20)
- Use of undefined constant FDFS_FILE_ID_SEPERATOR HOT 4
- 防盗链小需求 HOT 2
- ipv6环境下,tracker选主会出现失败的情况 HOT 3
- fgrep: warning: fgrep is obsolescent; use grep -F
- can't create connection to xx.xx.xx:0 HOT 3
- 上传文件的时候,偶尔出现乱码的返回的情况,看代码就是个基本的对象FileUploadResponse
- 大量文件导入到fastdfs的问题
- nginx访问storage的文件有两点疑问,帮忙看看
- 低版本的storage可以把数据同步到高版本的storage上吗? HOT 1
- 使用libfastcommon-1.0.72版本, storage启动是提示tracker内网IPv6(fe80开头)地址无效的参数Invalid argument HOT 3
- make.sh error: 'ConnectionInfo' {aka 'struct <anonymous>'} has no member named 'af' on version 6.12.0 HOT 1
- ./make.sh报错,错误:‘SFGlobalVariables’没有名为‘min_buff_size’的成员 HOT 2
- store_path_count大于42时,store_path路径一次自动创建最多创建到42,并且storage启动不成功,这个时候双tracker下第二台的storage启动失败 HOT 3
- DefaultFastFileStorageClient.getStorageNode(String groupName)获取的storage节点的port=0 HOT 3
- 使用sdk连接fastdfs上传文件报错 file: sf_nio.h line 134, client ip , pkg length: **** > max pkg size: *** HOT 1
- 获取的storage节点的port=0 HOT 4
- 调用storageClient.upload_file(bytes, extension, null)方法有时会返回null HOT 4
- 关于nginx module的问题
- when upload file comes recvStorageInfo pkgLen 70 invaild HOT 7
- protocol format error HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdfs.