Open learning252 opened 8 years ago
将app.py倒数第4行的: app.run(host='0.0.0.0', port = port, debug=False, threaded=True) debug=False改为True,看一下具体是什么原因报错
@hanc00l elasticsearch.exceptions.ConnectionError
ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f303efbd090>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f303efbd090>: Failed to establish a new connection: [Errno 111] Connection refused)
ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f530ce1ee50>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f530ce1ee50>: Failed to establish a new connection: [Errno 111] Connection refused)
1、打开调试选项,看看是什么原因报错 2、根据不少同学的反馈,一般都是elasticsearch的报错。请检查9200端口是否正常,如果不正常说明是elsasticsearch没有起来;如果9200正常,可能是mongodb数据同步到elasticsearch出错了。
想问一下有什么解决方法了吗,多谢了!
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. 咋搞啊.......