我和Mailman一起运行CentOS6。通过Plesk从旧服务器导入旧邮件列表。目前我遇到了几个错误。安装的Python版本是2.7.8。已经修复了一些,但不是全部。 已经修改/etc/security/limits.conf:
* hard nofile 65535
* soft nofile 65535
* hard locks 65535
* soft locks 65535
* soft default_process_limit = 10
错误日志仍显示以下内容:
Dec 22 04:06:43 2014 qrunner(1042): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1042): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1042): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1042): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1042): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1042): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1042): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/in'
Dec 22 04:06:43 2014 qrunner(1039): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1039): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1039): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1039): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1039): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1039): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1039): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/archive'
Dec 22 04:06:43 2014 qrunner(1044): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1044): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1044): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1044): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1044): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1044): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1044): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/out'
Dec 22 04:06:43 2014 qrunner(1045): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1045): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1045): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1045): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1045): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1045): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1045): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/virgin'
Dec 22 04:06:43 2014 qrunner(1040): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1040): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1040): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1040): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1040): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1040): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1040): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/bounces'
Dec 22 04:06:43 2014 qrunner(1043): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1043): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1043): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1043): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1043): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1043): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1043): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/news'
Dec 22 04:06:43 2014 qrunner(1041): Traceback (most recent call last):
Dec 22 04:06:43 2014 qrunner(1041): File "/usr/lib/mailman/bin/qrunner", line 278, in <module>
Dec 22 04:06:43 2014 qrunner(1041): File "/usr/lib/mailman/bin/qrunner", line 238, in main
Dec 22 04:06:43 2014 qrunner(1041): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 71, in run
Dec 22 04:06:43 2014 qrunner(1041): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 95, in _oneloop
Dec 22 04:06:43 2014 qrunner(1041): File "/usr/lib/mailman/Mailman/Queue/Switchboard.py", line 194, in files
Dec 22 04:06:43 2014 qrunner(1041): OSError : [Errno 23] Too many open files in system: '/var/spool/mailman/commands'
Dec 22 04:06:44 2014 qrunner(8563): Cannot import runner module Mailman.Queue.NewsRunner
Dec 22 04:06:44 2014 qrunner(8563): /usr/lib64/python2.6/lib-dynload/datetime.so: cannot open shared object file: Too many open files in system
Dec 22 04:06:44 2014 qrunner(8569): Cannot import runner module Mailman.Queue.ArchRunner
Dec 22 04:06:44 2014 qrunner(8569): cannot import name Header
Dec 22 04:06:44 2014 qrunner(8565): Cannot import runner module Mailman.Queue.CommandRunner
Dec 22 04:06:44 2014 qrunner(8565): No module named nonmultipart
答案 0 :(得分:0)
您不仅需要提高ulimit,还要使内核能够使用更多打开的文件。工具'sysctl'是关键。
我不知道如何使用Plesk更改此内容。只需使用命令shell并按照以下说明操作:
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
干杯!