avahi_entry_group_new() 失败:对象太多

avahi_entry_group_new() failed: Too many objects

我正在为我的研究实验室的数据库制作 REST API。我正在使用 Django REST 框架,我已经在我的本地机器上顺利地获得了一切 运行 。我所有的代码都在我们的 Mercurial 仓库中它自己的分支中。当我在我们的服务器上切换分支时,网站崩溃:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

我们服务器上的错误日志如下所示:

[Tue Feb 03 12:55:56 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 03 12:55:56 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 03 12:55:56 2015] [notice] Digest: done
[Tue Feb 03 12:55:56 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Feb 03 12:56:11 2015] [error] avahi_entry_group_add_service_strlst("Lee on [server name]") failed: Local name collision
(this sort of error repeats many times)
[Tue Feb 03 12:56:13 2015] [error] avahi_entry_group_new() failed: Too many objects
(this error repeats many times.)

我尝试用谷歌搜索 avahi 错误,但无济于事。有人有任何见解吗?

因为"too many objects"部分的错误,我想这可能与没有设置API的分页设置有关。我在本地开发版本的数据库中只有几个测试对象,但实际数据库有数万个。我设置了分页并再次尝试,但没有任何改变。

原来罪魁祸首是没有在服务器上为 Python 的正确版本安装 djangorestframework 包!?希望这对以后的人有所帮助。