I outlined my difficulties with making a copy of aleph to try the upgrade on in the previous post. Having got it working, I thought it might be as simple as replacing my existing docker-compose.yaml with the new one from github containing 4.0 and with added rabbitmq.
I had a couple of extra lines in mine from customization, but nothing crazy: a couple of external directories mounted in the continers, containing a couple of schema modifications, and an edited home page. So I went through the two configs, and merged the two.
On starting up docker compose up -d, I didn’t see any data on the front page. Errors in the error log were plentiful
| 2024-11-21 06:42:33.889924 [error ] InternalServerError: 500 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. [aleph.views.base_api]
api-1 | Traceback (most recent call last):
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2190, in wsgi_app
api-1 | response = self.full_dispatch_request()
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1486, in full_dispatch_request
api-1 | rv = self.handle_user_exception(e)
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py", line 176, in wrapped_function
api-1 | return cors_after_request(app.make_response(f(*args, **kwargs)))
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1484, in full_dispatch_request
api-1 | rv = self.dispatch_request()
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1469, in dispatch_request
api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
api-1 | File "/aleph/aleph/views/entities_api.py", line 138, in index
api-1 | result = EntitiesQuery.handle(request, parser=parser)
api-1 | File "/aleph/aleph/search/query.py", line 310, in handle
api-1 | return SearchQueryResult(request, query)
api-1 | File "/aleph/aleph/search/result.py", line 101, in __init__
api-1 | result = query.search()
api-1 | File "/aleph/aleph/search/query.py", line 295, in search
api-1 | result = es.search(index=self.get_index(), body=self.get_body())
api-1 | File "/usr/local/lib/python3.8/dist-packages/werkzeug/local.py", line 318, in __get__
api-1 | obj = instance._get_current_object()
api-1 | File "/usr/local/lib/python3.8/dist-packages/werkzeug/local.py", line 526, in _get_current_object
api-1 | return get_name(local())
api-1 | File "/aleph/aleph/core.py", line 181, in get_es
api-1 | raise RuntimeError("Could not connect to ElasticSearch")
api-1 | RuntimeError: Could not connect to ElasticSearch
api-1 | 2024-11-21 06:42:33.899018 [info ] Request handled [aleph.views.context] request_logging=True
api-1 | [2024-11-21 06:42:33 +0000] [13] [DEBUG] Ignoring EPIPE
api-1 | 2024-11-21 06:42:55.959106 [error ] Exception on /api/2/entities [GET] [aleph]
api-1 | Traceback (most recent call last):
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2190, in wsgi_app
api-1 | response = self.full_dispatch_request()
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1486, in full_dispatch_request
api-1 | rv = self.handle_user_exception(e)
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py", line 176, in wrapped_function
api-1 | return cors_after_request(app.make_response(f(*args, **kwargs)))
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1484, in full_dispatch_request
api-1 | rv = self.dispatch_request()
api-1 | File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1469, in dispatch_request
api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
api-1 | File "/aleph/aleph/views/entities_api.py", line 138, in index
api-1 | result = EntitiesQuery.handle(request, parser=parser)
api-1 | File "/aleph/aleph/search/query.py", line 310, in handle
api-1 | return SearchQueryResult(request, query)
api-1 | File "/aleph/aleph/search/result.py", line 101, in __init__
api-1 | result = query.search()
api-1 | File "/aleph/aleph/search/query.py", line 295, in search
api-1 | result = es.search(index=self.get_index(), body=self.get_body())
api-1 | File "/usr/local/lib/python3.8/dist-packages/werkzeug/local.py", line 318, in __get__
api-1 | obj = instance._get_current_object()
api-1 | File "/usr/local/lib/python3.8/dist-packages/werkzeug/local.py", line 526, in _get_current_object
api-1 | return get_name(local())
api-1 | File "/aleph/aleph/core.py", line 181, in get_es
api-1 | raise RuntimeError("Could not connect to ElasticSearch")
api-1 | RuntimeError: Could not connect to ElasticSearch
Any ideas what’s going on?