ckan 500 erro, não consigo encontrar solr, ubuntu 14.04

0

Eu instalei o tomcat / solr seguindo as instruções encontradas aqui e ckan seguindo estas instruções no meu Ubuntu 14.04. já que as instruções de instalação do ckan são baseadas no jetty, eu pulei a parte que diz

Edit the Jetty configuration file (/etc/default/jetty) and change the following variables:

NO_START=0            # (line 4)
JETTY_HOST=127.0.0.1  # (line 15)
JETTY_PORT=8983       # (line 18)

Eu acho que esse pode ser o problema porque eu não consigo encontrar onde configurar o solr. Quando eu tento executar ckan paster serve /etc/ckan/default/development.ini eu recebo esses erros / avisos

2015-06-07 09:27:29,048 ERROR [ckan.lib.search.common] [Errno 111] Connection refused Traceback (most recent call last):
File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 51, in is_available
conn.query(":", rows=1)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 703, in query return self.select(*args, **params)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 798, in call xml = self.raw(**params)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 823, in raw rsp = conn._post(self.selector, request, conn.form_headers)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 646, in _post self._reconnect()

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 625, in _reconnect self.conn.connect()

File "/usr/lib/python2.7/httplib.py", line 772, in connect self.timeout, self.source_address)

File "/usr/lib/python2.7/socket.py", line 571, in create_connection raise err error: [Errno 111] Connection refused

2015-06-07 09:27:29,111 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server

2015-06-07 09:27:30,449 ERROR [ckan.lib.search.common] [Errno 111] Connection refused Traceback (most recent call last):
File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 51, in is_available conn.query(":", rows=1)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 703, in query return self.select(*args, **params)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 798, in call xml = self.raw(**params)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 823, in raw rsp = conn._post(self.selector, request, conn.form_headers)

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 646, in _post self._reconnect()

File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/solr/core.py", line 625, in _reconnect self.conn.connect()

File "/usr/lib/python2.7/httplib.py", line 772, in connect self.timeout, self.source_address)

File "/usr/lib/python2.7/socket.py", line 571, in create_connection raise err

error: [Errno 111] Connection refused 2015-06-07 09:27:30,454

WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server

2015-06-07 09:27:30,792 CRITI [ckan.lib.uploader] Please specify a ckan.storage_path in your config for your uploads

Starting server in PID 4186. serving on 0.0.0.0:5000 view at http://127.0.0.1:5000

eu encontrei o arquivo xml solr, mas não consegui ver o que deveria mudar.

alguma ideia?

    
por Skaros Ilias 07.06.2015 / 11:59

1 resposta

0

O problema é que, por alguma razão, a instalação do ckan por padrão, no arquivo de configuração (padrão localizado em /etc/ckan/development.ini ou /etc/ckan/production.ini ), tem essa linha solr_url=http://127.0.0.1:8983/solr comentada. No meu caso eu tive que trocar a porta 8983 para 8080, pois é para jetty e não tomcat, que eu uso.

    
por Skaros Ilias 09.06.2015 / 22:15