免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3423 | 回复: 5
打印 上一主题 下一主题

[FastDFS] 崩溃,php扩展这边有很多问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-02 09:36 |只看该作者 |倒序浏览
FastDFS的是3.0.6   ,php扩展为最新的3.0.8

但是没多久就不能访问fastdfs,需要重启httpd,php日志为下
  1. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 154, tracker server: 192.168.10.226:23000, send data fail, errno: 104, error info: Connection reset by peer
  2. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  3. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  4. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 154, tracker server: 192.168.10.226:23000, send data fail, errno: 32, error info: Broken pipe
  5. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  6. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  7. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  8. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 154, tracker server: 192.168.10.226:23000, send data fail, errno: 32, error info: Broken pipe
  9. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  10. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 154, tracker server: 192.168.10.226:23000, send data fail, errno: 32, error info: Broken pipe
  11. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  12. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  13. [2012-06-30 21:10:53] ERROR - file: ../tracker/tracker_proto.c, line: 154, tracker server: 192.168.10.226:23000, send data fail, errno: 32, error info: Broken pipe
  14. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  15. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  16. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 154, tracker server: 192.168.10.226:23000, send data fail, errno: 32, error info: Broken pipe
  17. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  18. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  19. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  20. [2012-06-30 21:23:34] ERROR - file: ../tracker/tracker_proto.c, line: 37, server: 192.168.10.226:23000, recv data fail, errno: 107, error info: Transport endpoint is not connected
  21. [2
复制代码
上面的是运行在测试服务器上,在线上的服务器都是3.0.6,偶尔也会发生不能访问的情况,也需要重启nginx。

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2012-07-02 09:53 |只看该作者
回复 1# millken

类似的错误日志,对正常访问应该没什么影响,可以忽略。
ps:你都用最新的v3.08不可以么?

论坛徽章:
0
3 [报告]
发表于 2012-07-02 10:08 |只看该作者
现在就是正常的访问有问题,需要重启httpd,图片才出来。

论坛徽章:
0
4 [报告]
发表于 2012-07-27 16:44 |只看该作者
httpd 是多线程的,fastdfs 的php扩展本身非线程安全

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
5 [报告]
发表于 2012-07-27 17:03 |只看该作者
回复 4# houxuehua

可以做到线程安全啊,用php类方式即可。

论坛徽章:
0
6 [报告]
发表于 2012-07-27 17:18 |只看该作者
我没有类,只用了函数,说法片面了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP