Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

一搜索就报错 状态码500 #27

Open
learning252 opened this issue Sep 4, 2016 · 5 comments
Open

一搜索就报错 状态码500 #27

learning252 opened this issue Sep 4, 2016 · 5 comments

Comments

@learning252
Copy link

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.
咋搞啊.......

@hanc00l
Copy link
Owner

hanc00l commented Sep 4, 2016

将app.py倒数第4行的:
app.run(host='0.0.0.0', port = port, debug=False, threaded=True)
debug=False改为True,看一下具体是什么原因报错

@learning252
Copy link
Author

@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)

@Bournevill
Copy link

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)

@hanc00l
Copy link
Owner

hanc00l commented Oct 10, 2016

1、打开调试选项,看看是什么原因报错
2、根据不少同学的反馈,一般都是elasticsearch的报错。请检查9200端口是否正常,如果不正常说明是elsasticsearch没有起来;如果9200正常,可能是mongodb数据同步到elasticsearch出错了。

@governormars
Copy link

想问一下有什么解决方法了吗,多谢了!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants