fastdfs
fastdfs copied to clipboard
通过nginx跳转,有些图片能正常显示,有些图片直接报502 Bad Gateway
错误提示: 2017/08/10 16:11:19 [error] 104612#0: *508 upstream timed out (110: Connection timed out) while connecting to upstream, client: 125.119.234.121, server: localhost, request: "GET //group1/M00/01/0F/wKgyTlkUMziENdc7AAAAALZCq6o182.png HTTP/1.1", upstream: "http://192.168.50.78:80//group1/M00/01/0F/wKgyTlkUMziENdc7AAAAALZCq6o182.png?redirect=1", host: "公网IP" 2017/08/10 16:15:39 [error] 104612#0: *543 connect() failed (113: No route to host) while connecting to upstream, client: 125.119.234.121, server: localhost, request: "GET /group1/M00/00/F1/wKgBu1hiFl2ESLVkAAAAAC-eNq0647.jpg HTTP/1.1", upstream: "http://192.168.1.187:80/group1/M00/00/F1/wKgBu1hiFl2ESLVkAAAAACeNq0647.jpg?redirect=1", host: "公网IP" 描述: 192.168.50.78和192.168.1.187是我之前测试机器的局域网IP, data文件是先从78的服务器复制到187的服务器,然后在复制到公网的服务器 想请问,为什么会有这种情况?这个问题该怎么解决? 补充: 源码都是最近两天下载的,然后安装,用的是nginx-1.12.0
你看一下nginx服务器访问后端的服务器IP地址通不通的,,一般情况下upstream time out都是这个问题,应该和fastdfs没有关系的,或者你先测试你的fileids使用client客户端能不能下载到的
@liuwenru @happyfish100 [2017-08-11 14:19:00] DEBUG - base_path=/mnt/fastdfs_client, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0
storage=公网IP:23000 download file success, file size=11272, file save to wKgBdVmL_0yAFsk8AAAsCKB3cUU137_big.log 是可以成功下载的
那两个IP 在我的nginx.conf配置里面都没有的,我也觉得奇怪,为什么会有这两个IP
@happyfish100 https://github.com/happyfish100/fastdfs-nginx-module/issues/7 我的情况跟这个很相近
我和你差不多. 图片访问 偶发性 502 . 我有2 个 tracker , 偶发性访问这个ip 502. 现在不知道如何解决
我和你差不多. 图片访问 偶发性 502 . 我有2 个 tracker , 偶发性访问这个ip 502. 现在不知道如何解决
你好,请问这个偶现502的问题你们解决了吗?