首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法启动Squid代理

无法启动Squid代理
EN

Server Fault用户
提问于 2016-08-03 04:06:21
回答 3查看 1.9K关注 0票数 0

我的乌贼代理有点问题。代理关闭后,我无法启动代理。据我所知,从昨天起我没有碰过任何鱿鱼的配置。今天早上,我来到办公室,看上去就像倒下了一样。请参阅下面的cache.log

代码语言:javascript
复制
2016/08/03 10:24:47| Unlinkd pipe opened on FD 16
2016/08/03 10:24:47| Swap maxSize 3584000 + 32768 KB, estimated 602794
objects
2016/08/03 10:24:47| Target number of buckets: 30139
2016/08/03 10:24:47| Using 32768 Store buckets
2016/08/03 10:24:47| Max Mem  size: 32768 KB
2016/08/03 10:24:47| Max Swap size: 3584000 KB
2016/08/03 10:24:47| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2016/08/03 10:24:47| logfileOpen: opening log /var/log/squid/store.log
2016/08/03 10:24:47| Rebuilding storage in /var/spool/squid (DIRTY)
2016/08/03 10:24:47| Using Least Load store dir selection
2016/08/03 10:24:47| Current Directory is /
2016/08/03 10:24:47| Loaded Icons.
2016/08/03 10:24:47| Accepting proxy HTTP connections at
192.168.120.104, port 8080, FD 18.
2016/08/03 10:24:47| HTCP Disabled.
2016/08/03 10:24:47| WCCP Disabled.
Can't locate NTA/database/TechDb.pm in @INC (@INC contains:
/opt/nta/perl/lib/perl5 /etc/perl /usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl
/usr/local/lib/perl/5.10.0 .) at
/opt/squid_auth/script/squid_techdb_digest_auth.pl line 9.
BEGIN failed--compilation aborted at
/opt/squid_auth/script/squid_techdb_digest_auth.pl line 9.
2016/08/03 10:24:47| Ready to serve requests.
2016/08/03 10:24:47| WARNING: digestauthenticator #2 (FD 8) exited
2016/08/03 10:24:47| WARNING: digestauthenticator #3 (FD 9) exited
2016/08/03 10:24:47| WARNING: digestauthenticator #4 (FD 10) exited
2016/08/03 10:24:47| Too few digestauthenticator processes are running
FATAL: The digestauthenticator helpers are crashing too rapidly, need help!

Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.028 seconds = 0.024 user + 0.004 sys
Maximum Resident Size: 22224 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena:    2924 KB
        Ordinary blocks:         2854 KB      5 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           780 KB      3 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:      69 KB
        Total in use:            3634 KB 98%
        Total free:                69 KB 2%
Can't locate NTA/database/TechDb.pm in @INC (@INC contains:
/opt/nta/perl/lib/perl5 /etc/perl /usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl
/usr/local/lib/perl/5.10.0 .) at
/opt/squid_auth/script/squid_techdb_digest_auth.pl line 9.
BEGIN failed--compilation aborted at
/opt/squid_auth/script/squid_techdb_digest_auth.pl line 9.
Can't locate NTA/database/TechDb.pm in @INC (@INC contains:
/opt/nta/perl/lib/perl5 /etc/perl /usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl
/usr/local/lib/perl/5.10.0 .) at
/opt/squid_auth/script/squid_techdb_digest_auth.pl line 9.
BEGIN failed--compilation aborted at
/opt/squid_auth/script/squid_techdb_digest_auth.pl line 9.

请给我建议。

EN

回答 3

Server Fault用户

回答已采纳

发布于 2016-08-03 06:47:27

Perl模块NTA/database/TechDb.pm丢失并导致程序退出。

CPAN和Google找不到任何关于它的信息。

你在用什么操作系统乌贼?这是专有的东西吗?为什么您的系统上有/opt/nta和/opt/squid_auth下面的内容?这不是标准的。您的系统是以某种不寻常的方式配置的。

票数 0
EN

Server Fault用户

发布于 2016-08-04 03:49:35

这个问题已经解决了。与其说模块不在路径上,不如说是最近的引擎更新覆盖了TechDb.pm模块的权限。问题是,作为“代理”运行的squid服务无法读取perl模块,因为当它被更新时,它返回到“扫描:techdata”默认值。因此,我将模块提交给SVN,以使其与其他服务器保持不变,这意味着权限不会从“代理”用户更改。

谢谢

票数 0
EN

Server Fault用户

发布于 2016-09-28 01:09:33

解决这一问题的更好方法是使用组成员身份,这是POSIX系统中应该使用的方式。

  • 从cache_effective_group中删除squid.conf设置
  • 将代理用户添加为techdata组的成员(读取模块)。
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/793517

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档