I am setting up a MusicBrainz mirror server with data replication. The Set Up Search Indexes step of the instructions instructs us to run a Docker compose command to reindex the Sir system. When I run that, I get thousands of error messages. As far as I can tell, the re-indexing fails.
The specific command is:
docker compose exec indexer python -m sir reindex
This gives me thousands of lines of diagnostics.
When I run the command with the --debug option and save the output, it get 14MB of diagnostics.
The initial error message seems to indicate that there is a networking problem within the Docker setup. This is what an interesting excerpt from what I see:
Solr-3 2025-11-23 09:25:31,597 ERROR: Error while submitting data to Solr:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
conn,
...<10 lines>...
**response_kw,
)
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 534, in _make_request
response = conn.getresponse()
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 516, in getresponse
httplib_response = super().getresponse()
File "/usr/local/lib/python3.13/site-packages/sentry_sdk/integrations/stdlib.py", line 131, in getresponse
rv = real_getresponse(self, *args, **kwargs)
File "/usr/local/lib/python3.13/http/client.py", line 1430, in getresponse
response.begin()
~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/http/client.py", line 331, in begin
version, status, reason = self._read_status()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/http/client.py", line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/socket.py", line 719, in readinto
return self._sock.recv_into(b)
~~~~~~~~~~~~~~~~~~~~^^^
ConnectionResetError: [Errno 104] Connection reset by peer
...
pysolr.SolrError: Failed to connect to server at http://search:8983/solr/annotation/update/: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
The diagnostics are inflated by a cascade of further exceptions introduced by “During handling of the above exception, another exception occurred” and “The above exception was the direct cause of the following exception”.
There is more detail at ticket MBVM-105 **, if you are interested.
Any ideas how to fix this problem? I suspect that if I tweak the networking settings of my MusicBrainz-docker setup a little, the whole problem might go away.