Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 Cherrypy巴士不知什么原因停了下来_Python 2.7_Amazon Web Services_Amazon Elastic Beanstalk_Cherrypy - Fatal编程技术网

Python 2.7 Cherrypy巴士不知什么原因停了下来

Python 2.7 Cherrypy巴士不知什么原因停了下来,python-2.7,amazon-web-services,amazon-elastic-beanstalk,cherrypy,Python 2.7,Amazon Web Services,Amazon Elastic Beanstalk,Cherrypy,我通过Elastic Beanstalk在AWS上运行了一个CherryPy应用程序,它的工作之一是检查Gmail收件箱中的新消息,如: 编辑: 但问题是,似乎负责执行实际检查的线程似乎被什么东西杀死了,我不知道是什么。下面的日志片段: [14/Mar/2016:15:32:55] Checking for new messages... [14/Mar/2016:15:32:55] No new messages. [14/Mar/2016:15:33:05] Checking for new

我通过Elastic Beanstalk在AWS上运行了一个CherryPy应用程序,它的工作之一是检查Gmail收件箱中的新消息,如:

编辑:

但问题是,似乎负责执行实际检查的线程似乎被什么东西杀死了,我不知道是什么。下面的日志片段:

[14/Mar/2016:15:32:55] Checking for new messages...
[14/Mar/2016:15:32:55] No new messages.
[14/Mar/2016:15:33:05] Checking for new messages...
[14/Mar/2016:15:33:05] No new messages.
[14/Mar/2016:15:33:15] Checking for new messages...
[14/Mar/2016:15:33:15] No new messages.
[14/Mar/2016:15:33:17] Checking access token.
[14/Mar/2016:15:33:17] Access token still good. Continuing...
[14/Mar/2016:15:33:26] Checking for new messages...
[14/Mar/2016:15:33:26] No new messages.
[14/Mar/2016:15:33:32] ENGINE Keyboard Interrupt: shutting down bus
[14/Mar/2016:15:33:32] ENGINE Bus STOPPING
[14/Mar/2016:15:33:32] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8080)) shut down
[14/Mar/2016:15:33:32] ENGINE Stopped thread 'Monitor'.
[14/Mar/2016:15:33:32] ENGINE Stopped thread 'Autoreloader'.
[14/Mar/2016:15:33:32] ENGINE Stopped thread 'Monitor'.
[14/Mar/2016:15:33:32] ENGINE Stopped thread '_TimeoutMonitor'.
[14/Mar/2016:15:33:32] ENGINE Bus STOPPED
[14/Mar/2016:15:33:32] ENGINE Bus EXITING
[14/Mar/2016:15:33:32] ENGINE Bus EXITED
[14/Mar/2016:15:33:32] ENGINE Waiting for child threads to terminate...
# note: the server seems to be responding to outside requests judging by this line and the ones following it.
[16/Mar/2016:04:48:41] Sent internal chat notification to user@userdomain.com, subject [MENTIONED] Client Portal 
...SNIP
应用程序的其余部分似乎保持正常,因为它对请求的响应很好,但它完全停止检查新邮件。重新启动应用服务器只会暂时修复它(不到10分钟左右)。我已经检查过了,我想检查一下,但是在进程被终止时,我没有看到其他任何事情发生

自从第一次发布这个问题以来,我已经增加了实例类型的大小,只是想看看这是否能解决问题(它没有)。我想我可能在某个时候把日志记录搞砸了,因为我不再在日志中看到来自CherryPy的引擎消息,所以我现在正在努力解决这个问题


这可能是什么原因造成的,我如何修复它?我猜它检查邮件的频率可能有点太快了

您好,看起来您因为某种原因收到了一个SIGINT事件:“引擎键盘中断:关闭总线”是的,我已经知道了。EB/AWS上有东西在发送,我不知道为什么。我检查了日志,当CherryPy接收到SIGINT信号时,似乎没有其他任何事情发生。不幸的是,我认为我们无法从CP代码内部检测到它为什么接收到SIGINT信号。愚蠢的问题,您是否在一个控制台中运行CP服务器,该控制台可能会在一段时间后终止?你在使用nohup吗?代码托管在Elastic Beanstalk上。据我所知,它不应该在一段时间后终止任何东西,除了轮询器之外,服务器仍然在运行。你确定你的安装没有被破坏吗?你好,看起来你因为某种原因收到了一个SIGINT事件:“引擎键盘中断:关闭总线”是的,我已经知道了。EB/AWS上有东西在发送,我不知道为什么。我检查了日志,当CherryPy接收到SIGINT信号时,似乎没有其他任何事情发生。不幸的是,我认为我们无法从CP代码内部检测到它为什么接收到SIGINT信号。愚蠢的问题,您是否在一个控制台中运行CP服务器,该控制台可能会在一段时间后终止?你在使用nohup吗?代码托管在Elastic Beanstalk上。据我所知,它不应该在一段时间后终止任何东西,除了轮询器,服务器仍然在运行。你确定你的安装没有被破坏吗?
[14/Mar/2016:15:32:55] Checking for new messages...
[14/Mar/2016:15:32:55] No new messages.
[14/Mar/2016:15:33:05] Checking for new messages...
[14/Mar/2016:15:33:05] No new messages.
[14/Mar/2016:15:33:15] Checking for new messages...
[14/Mar/2016:15:33:15] No new messages.
[14/Mar/2016:15:33:17] Checking access token.
[14/Mar/2016:15:33:17] Access token still good. Continuing...
[14/Mar/2016:15:33:26] Checking for new messages...
[14/Mar/2016:15:33:26] No new messages.
[14/Mar/2016:15:33:32] ENGINE Keyboard Interrupt: shutting down bus
[14/Mar/2016:15:33:32] ENGINE Bus STOPPING
[14/Mar/2016:15:33:32] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8080)) shut down
[14/Mar/2016:15:33:32] ENGINE Stopped thread 'Monitor'.
[14/Mar/2016:15:33:32] ENGINE Stopped thread 'Autoreloader'.
[14/Mar/2016:15:33:32] ENGINE Stopped thread 'Monitor'.
[14/Mar/2016:15:33:32] ENGINE Stopped thread '_TimeoutMonitor'.
[14/Mar/2016:15:33:32] ENGINE Bus STOPPED
[14/Mar/2016:15:33:32] ENGINE Bus EXITING
[14/Mar/2016:15:33:32] ENGINE Bus EXITED
[14/Mar/2016:15:33:32] ENGINE Waiting for child threads to terminate...
# note: the server seems to be responding to outside requests judging by this line and the ones following it.
[16/Mar/2016:04:48:41] Sent internal chat notification to user@userdomain.com, subject [MENTIONED] Client Portal 
...SNIP