2012-11-08 72 views
0

即使只是輪詢應用程序,我仍然收到此間歇性錯誤。我的應用程序相當簡單,至少現在它只是通過JSON向jquery表提供一個小的csv文件。下面列出了回溯和我的系統配置。提前致謝!django使用教程應用程序中斷系統調用

代碼

Traceback (most recent call last): File "manage.py", line 14, in execute_manager(settings) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/init.py", line 459, in execute_manager utility.execute() File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/init.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.dict) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line 69, in handle self.run(*args, **options) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line 80, in run self.inner_run(*args, **options) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line 111, in inner_run ipv6=self.use_ipv6, threading=threading) File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 253, in run httpd.serve_forever() File "/home/baldig/shared_libraries/centos64/pkgs/python/2.6.5/lib/python2.6/SocketServer.py", line 224, in serve_forever r, w, e = select.select([self], [], [], poll_interval) select.error: (4, 'Interrupted system call')

配置#

Django的1.4.1版 的Python 2.6.5 的CentOS 6 英特爾至強E5630 64GB RAM

回答

2

請用相同的錯誤檢查this thread SocketServer.py,'Interrupted system call'

+0

謝謝!解決方案對我來說似乎有點「黑客」。生產代碼實際上是通過Apache WSGI服務的,所以它更穩定,我不會遇到這個問題。 –