[英](psycopg2.OperationalError) SSL SYSCALL error: Software caused connection abort
I am using apache with mod_wsgi in windows platform to deploy my flask application. 我在windows平台上使用带有mod_wsgi的apache来部署我的烧瓶应用程序。 I am using sqlalchemy to connect redshift database with connection pool(size 10).
我使用sqlalchemy连接redshift数据库和连接池(大小10)。 After few days suddenly I am getting follwoing error.
几天后我突然发现了一些错误。
(psycopg2.OperationalError) SSL SYSCALL error: Software caused connection abort (psycopg2.OperationalError)SSL SYSCALL错误:软件导致连接中止
Can anybody suggest why I am getting this error and how to fix? 任何人都可以建议我为什么会收到此错误以及如何解决?
If I do the apache restart then this error gone. 如果我重新启动apache然后这个错误消失了。 But after few days it again comeback.
但几天后又再次复出。
I solved this error by turning DEBUG=False
in my config file [and/or in the run.py]. 我通过在配置文件[和/或run.py]中转换
DEBUG=False
来解决此错误。 Hope it helps someone. 希望它可以帮助某人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.