Closed jazairi closed 5 years ago
Hi Adam,
If you run docker-compose logs -f archivematica-mcp-server
can you see what the error is there? I'm not sure if they're related, but it might be worth checking. And if you just double check docker-compose -f archivematica-dashboard
as well, we'll double-check what you're seeing there is the same as compose is outputting during bootstrap, i.e.
File "/usr/local/lib/python2.7/site-packages/urllib3/response.py", line 344, in HTTPResponse
DECODER_ERROR_CLASSES += (brotli.Error,)
AttributeError: 'module' object has no attribute 'Error'
Hi Ross,
Thanks for the quick reply. Yes, I'm seeing similar stack traces in the archivematica-mcp-server
and archivematica-dashboard
logs:
archivematica-mcp-server_1 | class HTTPResponse(io.IOBase):
archivematica-mcp-server_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/response.py", line 344, in HTTPResponse
archivematica-mcp-server_1 | DECODER_ERROR_CLASSES += (brotli.Error,)
archivematica-mcp-server_1 | AttributeError: 'module' object has no attribute 'Error'
compose_archivematica-mcp-server_1 exited with code 1
archivematica-dashboard_1 | class HTTPResponse(io.IOBase):
archivematica-dashboard_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/response.py", line 344, in HTTPResponse
archivematica-dashboard_1 | DECODER_ERROR_CLASSES += (brotli.Error,)
archivematica-dashboard_1 | AttributeError: 'module' object has no attribute 'Error'
I'm new to Docker, so I'm having difficulty troubleshooting this. Assuming it's not a known issue, I think I'll skip Docker for now and try installing with yum.
Our colleague @cole reported this issue a couple of days ago in our internal Slack:
If anyone else is getting
AttributeError: 'module' object has no attribute 'Error'
when starting MCPServer in the Docker env — it’s not you! Weird compatibility issue with urllib3 (used by requests) https://github.com/urllib3/urllib3/pull/1572. TL;DR: don’t rebuild any containers today if you can help it
I'm not sure if he was able to solve it and I haven't been able to reproduce it.
Maybe pin pointing urllib3
to 1.24.1
would work?
Thanks, @replaceafill! Looks like they released a fix today, so I pointed urllib3
to 1.25.1
and that fixed the issue. I'm still seeing an error with MCPServer, but I think it's unrelated, so I'll go ahead and close this ticket.
This was an odd one; I should have reported it publicly. If 1.25.1 is out then removing urllib from requirements (if you've added it) and rebuilding containers with no cache should work.
Something very odd is going on with my environment. Here's an excerpt from the
make bootstrap
output:And the output from
docker-compose ps
: