无法启动Stack Dump

时间:2016-02-14 11:54:42

标签: python stack-dump

当我尝试启动Stack Dump的start_web.sh脚本时,我收到了这样的错误消息:

Traceback (most recent call last):
File "/home/stephan/Schreibtisch/Stack Exchange/stackdump/python/packages/bottle.py", line 744, in _handle
return route.call(**args)
File "/home/stephan/Schreibtisch/Stack Exchange/stackdump/python/packages/bottle.py", line 1479, in wrapper
rv = callback(*a, **ka)
File "./python/src/stackdump/app.py", line 152, in wrapped
return fn(*args, **kwargs)
File "./python/src/stackdump/app.py", line 175, in wrapped
return fn(*args, **kwargs)
File "./python/src/stackdump/app.py", line 199, in wrapped
return fn(*args, **kwargs)
File "./python/src/stackdump/app.py", line 292, in index
context['random_questions'] = get_random_questions(count=settings.NUM_OF_RANDOM_QUESTIONS)
File "./python/src/stackdump/app.py", line 736, in get_random_questions
results = solr_conn().search(query, rows=count, sort=random_field_name)
File "/home/stephan/Schreibtisch/Stack Exchange/stackdump/python/packages/pysolr.py", line 618, in search
response = self._select(params)
File "/home/stephan/Schreibtisch/Stack Exchange/stackdump/python/packages/pysolr.py", line 345, in _select
return self._send_request('get', path)
File "/home/stephan/Schreibtisch/Stack Exchange/stackdump/python/packages/pysolr.py", line 323, in _send_request
raise SolrError(error_message % params)
SolrError: Failed to connect to server at 'http://localhost:8983/solr/stackdump/select/?q=%2A%3A%2A&sort=random_9101+desc&rows=3&wt=json', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='localhost', port=8983): Max retries exceeded with url: /solr/stackdump/select/?q=%2A%3A%2A&sort=random_9101+desc&rows=3&wt=json (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

有谁知道如何解决这个问题?

非常感谢。

祝你有愉快的一天!

1 个答案:

答案 0 :(得分:0)

首先必须使用./star_solr.sh,因为它是允许stackdump工作的底层索引引擎。请注意,在stackdump中有任何可用的内容之前,您需要导入一个站点。