免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] Invalid argument: Failed to enable the 'httpready' Accept Filter [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-25 22:55 |只看该作者 |倒序浏览
20可用积分
系统是FreeBSD 7.1-PRERELEASE
装的是Apache/2.2.11 (FreeBSD)

现在的问题是
  1. /usr/local/etc/rc.d/apache22 start
  2. /usr/local/etc/rc.d/apache22 stop
  3. /usr/local/etc/rc.d/apache22 restart
复制代码
都没有问题
而当执行
/usr/local/etc/rc.d/apache22 reload
或者
/usr/local/etc/rc.d/apache22 graceful

就会出现如下的警告
  1. [Wed Mar 25 22:45:17 2009] [notice] SIGUSR1 received.  Doing graceful restart
  2. [Wed Mar 25 22:45:17 2009] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
  3. [Wed Mar 25 22:45:17 2009] [notice] Digest: generating secret for digest authentication ...
  4. [Wed Mar 25 22:45:17 2009] [notice] Digest: done
  5. [Wed Mar 25 22:45:18 2009] [notice] Apache/2.2.11 (FreeBSD) mod_ssl/2.2.11 OpenSSL/0.9.8e DAV/2 configured -- resuming normal operations
复制代码
http.conf里include了这个文件Includes/no-accf.conf
内容为
  1. <IfDefine NOHTTPACCEPT>
  2.    AcceptFilter http none
  3.    AcceptFilter https none
  4. </IfDefine>
复制代码
也就是禁用了该功能,不知道为啥还会有这个警告

google下来只有这个
https://issues.apache.org/bugzilla/show_bug.cgi?id=37863
一个未解决的bug?!

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
2 [报告]
发表于 2009-03-26 09:13 |只看该作者
http://www.bsdlover.cn/html/51/n-651.html
解决apache Failed to enable the ‘httpready’ Accept Filter

看看这个吧

论坛徽章:
0
3 [报告]
发表于 2009-03-26 09:27 |只看该作者
谢谢楼上的
这个方法早已经试过
我的模块是成功加载的

我的错误信息是

  1. Invalid argument: Failed to enable the 'httpready' Accept Filter
复制代码

不是

  1. [warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter
复制代码

论坛徽章:
0
4 [报告]
发表于 2009-03-26 10:08 |只看该作者
官网上的,应该是个BUG吧

ports/97771: restart of apache claims some warnings.
From:        Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Date:        Wed, 24 May 2006 14:34:48 +0900 (JST)
Subject:        restart of apache claims some warings.
Send-pr version:        3.113

Number:        97771
Category:        ports
Synopsis:        restart of apache claims some warnings.
Severity:        non-critical
Priority:        medium
Responsible:        clement@FreeBSD.org
State:        closed
Class:        sw-bug
Arrival-Date:        Wed May 24 05:40:16 GMT 2006
Closed-Date:        Sat Jun 17 08:18:07 GMT 2006
Last-Modified:        Sat Jun 17 08:18:07 GMT 2006
Originator:        Tsurutani Naoki
Release:        FreeBSD 5.5-PRERELEASE i386

Organization:

Environment:
System: FreeBSD polymer3.scphys.kyoto-u.ac.jp 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #19: Thu Mar 23 12:05:35 JST 2006 turutani@polymer3.scphys.kyoto-u.ac.jp:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386
Description:
restarting www/apache22 with
# apachectl graceful
claims some warings to error log file, like followings:
[Mon May 01 05:30:01 2006] [notice] Graceful restart requested, doing restart
[Mon May 01 05:30:03 2006] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Mon May 01 05:30:03 2006] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Mon May 01 05:30:03 2006] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Mon May 01 05:30:07 2006] [notice] Digest: generating secret for digest authentication ...
[Mon May 01 05:30:07 2006] [notice] Digest: done
[Mon May 01 05:30:08 2006] [notice] Apache/2.2.0 (FreeBSD) mod_ssl/2.2.0 OpenSSL/0.9.7e-p1 DAV/2 PHP/4.4.2 configured -- resuming normal operations
accf_http.ko kernel module is already loaded,
and "apache22_http_accept_enable" is enabled in rc.conf.
How-To-Repeat:
# apachectl graceful
Fix:
I don't know.
This happens since middle of January 2006, while it did not happen
on Decenber 2005.
Release-Note:

Audit-Trail:
Responsible Changed
From-To:        freebsd-ports-bugs->clement
By:        edwin
When:        Wed May 24 05:48:44 UTC 2006
Why:        Over to maintainer

State Changed
From-To:        open->closed
By:        clement
When:        Sat Jun 17 08:14:20 UTC 2006
Why:        Those warning are harmless. "/usr/local/etc/rc.d/apache22.sh graceful"
is actually the prefered method.

Unformatted:


http://www.freebsd.org/cgi/query-pr.cgi?pr=97771

论坛徽章:
0
5 [报告]
发表于 2009-03-27 09:17 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP