Open gabrielbdornas opened 1 year ago
Em 21/08/2023 executei vagrant destroy
para construir a máquina novamente utilizando vagrant up
e analisar o log com mais calma. Incluí pwd
e ls -la
em alguns locais do código durante o setup Solr para facilitar o processo de debug.
O log da instalação Solr indicou:
ckan: *** [WARN] *** Your open file limit is currently 1024.
ckan: It should be set to 65000 to avoid operational disruption.
ckan: If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
ckan: *** [WARN] *** Your Max Processes Limit is currently 3723.
ckan: It should be set to 65000 to avoid operational disruption.
ckan: If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
ckan: Warning: Available entropy is low. As a result, use of the UUIDField, SSL, or any other features that require
ckan: RNG might not work properly. To check for the amount of available entropy, use 'cat /proc/sys/kernel/random/entropy_avail'.
ckan:
ckan: Waiting up to 180 seconds to see Solr running on port 8983 [\]
ckan: Started Solr server on port 8983 (pid=15971). Happy searching!
ckan:
WARNING: Using _default configset with data driven schema functionality. NOT RECOMMENDED for production use.
ckan: To turn off: bin/solr config -c ckan -p 8983 -action set-user-property -property update.autoCreateFields -value false
ckan:
ckan: Created new core 'ckan'
ckan: --2023-08-21 17:14:19-- http://localhost:8983/solr
ckan: Resolving localhost (localhost)... 127.0.0.1
ckan: Connecting to localhost (localhost)|127.0.0.1|:8983... connected.
ckan: HTTP request sent, awaiting response... 302 Found
ckan: Location: http://localhost:8983/solr/ [following]
ckan: --2023-08-21 17:14:19-- http://localhost:8983/solr/
ckan: Reusing existing connection to localhost:8983.
ckan: HTTP request sent, awaiting response... 200 OK
ckan: Length: 17035 (17K) [text/html]
ckan: Saving to: ‘solr’
ckan:
ckan: 0K .......... ...... 100% 302M=0s
ckan:
ckan: 2023-08-21 17:14:19 (302 MB/s) - ‘solr’ saved [17035/17035]
Outra informação importante é que esta execução inicial está ocorrendo em /home/vagrant/ckan_source
, devido a esta mudança de diretório ocorrida aqui:
A migração das tabelas apresenta uma longa mensagem de erro indicando algum problema na configuração do Solr (final do log):
ckan: -----------------------------------------------
ckan: Configure db on ckan.ini and create tables.
ckan: -----------------------------------------------
ckan: 2023-08-21 17:14:21,739 INFO [ckan.cli] Using configuration file /etc/ckan/default/ckan.ini
ckan: 2023-08-21 17:14:21,739 INFO [ckan.config.environment] Loading static files from public
ckan: Traceback (most recent call last):
ckan: File "/usr/lib/ckan/default/bin/ckan", line 11, in <module>
ckan: load_entry_point('ckan==2.10.1', 'console_scripts', 'ckan')()
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
ckan: return self.main(*args, **kwargs)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 1054, in main
ckan: with self.make_context(prog_name, args, **extra) as ctx:
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 920, in make_context
ckan: self.parse_args(ctx, args)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/cli/cli.py", line 121, in parse_args
ckan: result = super().parse_args(ctx, args)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 1613, in parse_args
ckan: rest = super().parse_args(ctx, args)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 1378, in parse_args
ckan: value, args = param.handle_parse_result(ctx, opts, args)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 2360, in handle_parse_result
ckan: value = self.process_value(ctx, value)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/click/core.py", line 2322, in process_value
ckan: value = self.callback(ctx, self, value)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/cli/cli.py", line 131, in _init_ckan_config
ckan: _add_ctx_object(ctx, value)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/cli/cli.py", line 140, in _add_ctx_object
ckan: ctx.obj = CtxObject(path)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/cli/cli.py", line 57, in __init__
ckan: self.app = make_app(raw_config)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/config/middleware/__init__.py", line 27, in make_app
ckan: load_environment(conf)
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/config/environment.py", line 69, in load_environment
ckan: p.load_all()
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/plugins/core.py", line 220, in load_all
ckan: unload_all()
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/plugins/core.py", line 270, in unload_all
ckan: unload(*reversed(_PLUGINS))
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/plugins/core.py", line 302, in unload
ckan: plugins_update()
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/plugins/core.py", line 212, in plugins_update
ckan: environment.update_config()
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/config/environment.py", line 184, in update_config
ckan: search.check_solr_schema_version()
ckan: File "/usr/lib/ckan/default/lib/python3.8/site-packages/ckan-2.10.1-py3.8.egg/ckan/lib/search/__init__.py", line 394, in check_solr_schema_version
ckan: raise SearchError('SOLR schema version not supported: %s. Supported'
ckan: ckan.lib.search.common.SearchError: SOLR schema version not supported: 1.6. Supported versions are [2.8, 2.9, 2.10]
Ao tentar executar os comandos sudo service solr status
e sudo service solr restart
na pasta /home/vagrant/ckan_source
os erros foram os mesmos relatados no texto de abertura do issue, ou Unit solr.service could not be found
e Failed to restart solr.service: Unit solr.service not found.
respectivamente.
Também tentei modificar a tag version
existente dentro do arquivo solr-9.1.0/server/solr/ckan/conf/managed-schema.xml
para 2.10 (<schema name="ckan-2.10" )version="2.10">
e executar os comandos sudo service solr status
e sudo service solr restart
novamente, mas os resultados foram os mesmos.
A única novidade foi executar service solr restart
(sem sudo), mas a autenticação solicitada falhou com a senha vagrant
:
(default) vagrant@ubuntu-focal:~/ckan_source$ service solr restart
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'solr.service'.
Authenticating as: Ubuntu (ubuntu)
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart solr.service: Access denied
See system logs and 'systemctl status solr.service' for details.
Problema de migração continua mesmo após auxílio Diogo na instação Solr. Erro:
raise SearchError('SOLR schema version not supported: %s. Supported'
ckan.lib.search.common.SearchError: SOLR schema version not supported: 1.6. Supported versions are [2.8, 2.9, 2.10]
Também tentei modificar a tag version existente dentro do arquivo /var/solr/data/ckan/conf/managed-schema.xml
para 2.10 (<schema name="ckan-2.10.1" )version="2.10"> e executar o comando c /etc/ckan/default/ckan.ini db init
, mas o resultado foi o mesmo
Toda instalação foi modificada neste commit, mas a instalação Solr continua não funcionando. Ao que tudo indica o schema não está sendo copiado aonde deveria, conforme informado na mensagem de log vagrant up
:
ckan:
ckan: ERROR: Connect to localhost:8983 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
ckan:
ckan: /var/solr/data/ckan/conf/managed-schema: No such file or directory
ckan: --2023-08-22 20:15:20-- http://localhost:8983/solr
ckan: Resolving localhost (localhost)... 127.0.0.1
ckan: Connecting to localhost (localhost)|127.0.0.1|:8983... connected.
ckan: HTTP request sent, awaiting response... 302 Found
ckan: Location: http://localhost:8983/solr/ [following]
ckan: --2023-08-22 20:15:20-- http://localhost:8983/solr/
ckan: Reusing existing connection to localhost:8983.
ckan: HTTP request sent, awaiting response... 200 OK
ckan: Length: 16555 (16K) [text/html]
ckan: Saving to: ‘solr’
ckan:
ckan: 0K .......... ...... 100% 202M=0s
ckan:
ckan: 2023-08-22 20:15:20 (202 MB/s) - ‘solr’ saved [16555/16555]
Entrando na máquina é possível ver que o caminho vai apenas até a pasta data em /var/solr/data
:
root@ubuntu-focal:/var/solr/data# ls -la
total 24
drwxr-x--- 4 solr solr 4096 Aug 22 20:13 .
drwxr-x--- 4 solr solr 4096 Aug 22 20:13 ..
drwxrwxr-x 2 solr solr 4096 Aug 22 20:13 filestore
-rw-r----- 1 solr solr 2427 Aug 22 20:13 solr.xml
drwxrwxr-x 2 solr solr 4096 Aug 22 20:13 userfiles
-rw-r----- 1 solr solr 1048 Aug 22 20:13 zoo.cfg
root@ubuntu-focal:/var/solr/data# pwd
/var/solr/data
Mesmo criando as pastas e o arquivo manualmente o erro continua para ligar o servidor:
(default) vagrant@ubuntu-focal:/usr/lib/ckan/default/src/ckan$ ckan -c /etc/ckan/default/ckan.ini run
2023-08-22 20:56:28,499 INFO [ckan.cli] Using configuration file /etc/ckan/default/ckan.ini
2023-08-22 20:56:28,499 INFO [ckan.config.environment] Loading static files from public
2023-08-22 20:56:28,746 ERROR [ckan.lib.search.common] Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f769a1df700>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f769a1df700>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f769a1df700>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 416, in _send_request
resp = requests_method(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f769a1df700>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vagrant/ckan/lib/default/src/ckan/ckan/lib/search/common.py", line 69, in is_available
conn.search(q="*:*", rows=1)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 827, in search
response = self._select(params, handler=search_handler)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 488, in _select
return self._send_request("get", path)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 431, in _send_request
raise SolrError(error_message % (url, err))
pysolr.SolrError: Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f769a1df700>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-08-22 20:56:28,747 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
2023-08-22 20:56:28,748 INFO [ckan.config.environment] Loading templates from /home/vagrant/ckan/lib/default/src/ckan/ckan/templates
2023-08-22 20:56:29,138 ERROR [ckan.lib.search.common] Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7698fd2f70>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7698fd2f70>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7698fd2f70>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 416, in _send_request
resp = requests_method(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7698fd2f70>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vagrant/ckan/lib/default/src/ckan/ckan/lib/search/common.py", line 69, in is_available
conn.search(q="*:*", rows=1)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 827, in search
response = self._select(params, handler=search_handler)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 488, in _select
return self._send_request("get", path)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 431, in _send_request
raise SolrError(error_message % (url, err))
pysolr.SolrError: Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7698fd2f70>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-08-22 20:56:29,139 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
2023-08-22 20:56:29,140 INFO [ckan.config.environment] Loading templates from /home/vagrant/ckan/lib/default/src/ckan/ckan/templates
2023-08-22 20:56:29,287 WARNI [ckan.config.middleware.flask_app] Extensions are excluded from CSRF protection! We allow extensions to run without CSRF protection but it will be forced future releases. Read the documentation for more information on how to add CSRF protection to your extension.
2023-08-22 20:56:29,321 INFO [ckan.cli.server] Running CKAN on http://localhost:5000
2023-08-22 20:56:30,116 INFO [ckan.cli] Using configuration file /etc/ckan/default/ckan.ini
2023-08-22 20:56:30,116 INFO [ckan.config.environment] Loading static files from public
2023-08-22 20:56:30,378 ERROR [ckan.lib.search.common] Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7f0d49280>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fd7f0d49280>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7f0d49280>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 416, in _send_request
resp = requests_method(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7f0d49280>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vagrant/ckan/lib/default/src/ckan/ckan/lib/search/common.py", line 69, in is_available
conn.search(q="*:*", rows=1)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 827, in search
response = self._select(params, handler=search_handler)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 488, in _select
return self._send_request("get", path)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 431, in _send_request
raise SolrError(error_message % (url, err))
pysolr.SolrError: Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7f0d49280>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-08-22 20:56:30,387 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
2023-08-22 20:56:30,388 INFO [ckan.config.environment] Loading templates from /home/vagrant/ckan/lib/default/src/ckan/ckan/templates
2023-08-22 20:56:30,791 ERROR [ckan.lib.search.common] Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7efc50250>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fd7efc50250>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7efc50250>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 416, in _send_request
resp = requests_method(
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7efc50250>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vagrant/ckan/lib/default/src/ckan/ckan/lib/search/common.py", line 69, in is_available
conn.search(q="*:*", rows=1)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 827, in search
response = self._select(params, handler=search_handler)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 488, in _select
return self._send_request("get", path)
File "/usr/lib/ckan/default/lib/python3.8/site-packages/pysolr.py", line 431, in _send_request
raise SolrError(error_message % (url, err))
pysolr.SolrError: Failed to connect to server at http://127.0.0.1:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd7efc50250>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-08-22 20:56:30,800 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
2023-08-22 20:56:30,801 INFO [ckan.config.environment] Loading templates from /home/vagrant/ckan/lib/default/src/ckan/ckan/templates
2023-08-22 20:56:30,953 WARNI [ckan.config.middleware.flask_app] Extensions are excluded from CSRF protection! We allow extensions to run without CSRF protection but it will be forced future releases. Read the documentation for more information on how to add CSRF protection to your extension.
2023-08-22 20:56:30,987 INFO [ckan.cli.server] Running CKAN on http://localhost:5000
Realizei a instalação Solr conforme estes passos, mas ao entrar na máquina criada apos
vagrant up
e executar o comandosudo service solr status
o resultado é o erroUnit solr.service could not be found.
é exibido, o que, para mim, indica que a instalação não se concretizou. Utilizando o comandosudo service solr restart
para tentar reiniciar o sistema o erroFailed to restart solr.service: Unit solr.service not found.
também é apresentado.