Giter VIP home page Giter VIP logo

Comments (11)

lb-never avatar lb-never commented on June 5, 2024 3

不行吧?
用java-client操作的时候,先从tracker获取storage的ip和端口以及group,但是tracker获取storage的ip是storage自动去注册的,所以tracker获取到的storage的ip是容器内的
所以,是不是去看源码storage怎么注册到tracker的

from fastdfs.

wanghaolw avatar wanghaolw commented on June 5, 2024

我遇到相同的问题,事实上你在log里面看到的报错是可以忽略的,因为内网连不上的时候,会自动切换到公网,这时候你用fdfs_monitor 看一下 就会看到新加入的storage的状态已经变为同步中了

from fastdfs.

shangmin1990 avatar shangmin1990 commented on June 5, 2024

@wanghaolw 会不会自动切换我具体还不太清楚,但是storager链接tracker时如果改成外网的ip就没问题。storager.conf tracker_server配置如下:
tracker_server=域名:端口(外网地址)

from fastdfs.

xiafish201 avatar xiafish201 commented on June 5, 2024

这个问题怎么解决呢,有没有知道

from fastdfs.

liu-yfeng avatar liu-yfeng commented on June 5, 2024

这个问题解决了吗,最近我也遇到这个问题了

from fastdfs.

shangmin1990 avatar shangmin1990 commented on June 5, 2024

@liu-yfeng
解决方案:
storager.conf tracker_server配置如下:
tracker_server=域名:端口(外网地址)

from fastdfs.

jinghuaz avatar jinghuaz commented on June 5, 2024

@lb-never any update? 遇到一样的问题 docker ip

from fastdfs.

jiatongwu avatar jiatongwu commented on June 5, 2024

storage配置成tracker外网ip后
storage端口启动不起来?

from fastdfs.

cxydevelop avatar cxydevelop commented on June 5, 2024

情况一 : fastdfs部署在一个腾讯云上面 , 再storage中配置tracker的地址时,如果用外网ip, fastdfs启动不了 , tracker一直在选举 , 如果用内网地址就是ifconfig可以看到的那个ip , fastdfs时可以启动的,选举成功,也可以client上传个文件上去.然后我就本地代码想连上服务器,发现socket连接超时 , 估计是本地代码获取到的storage是内网地址导致连不上了 , 至今还不知道怎么解决.....
情况二 : fastdfs部署在一个内网服务器上 , 使用docker , 基本流程一样,最后使用代码去上传文件时 , 获取到的storage是docker 容器里面的内网地址 , 导致还是不能使用
真的没想到使用fastdfs这么坎坷 , 救救孩子吧

from fastdfs.

MrChowXavier avatar MrChowXavier commented on June 5, 2024

@liu-yfeng
解决方案:
storager.conf tracker_server配置如下:
tracker_server=域名:端口(外网地址)

确定可以吗?用公网IP,storage启动都报错好吗。。。

from fastdfs.

rui8832 avatar rui8832 commented on June 5, 2024

方案1:参考 CodeManLH 的方案 增加代理

方案2:参考 thisisrui 的方案 增加 iptables nat 转发

from fastdfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.