-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Docker container does not run on M1 Mac #676
Comments
Did you try the instructions mentioned here - m-series-mac-users? |
Well, no I did not, bc it was not mentioned in the getting started guides on the website. However, it is not working like it should. I first started the command for launching the os.
After 2 minutes then the second container but it terminates:
It should be the webserver for the db right? |
Same problem here, with version 2.1.0. Cannot run docker container on Mac M1 (Sonoma 14.0). After successfully pulling the image, if I run the command: $ docker run --name marqo -it -p 8882:8882 marqoai/marqo:2.1.0 I got this error: External vector store not configured. Using local vector store
Waiting for vector store to start
Warning: Failed to configure local vector store. Marqo may not function correctly
Starting Marqo throttling
Called Marqo throttling start command
Marqo throttling is now running
/usr/local/lib64/python3.8/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
/usr/local/lib/python3.8/site-packages/transformers/generation_utils.py:24: FutureWarning: Importing `GenerationMixin` from `src/transformers/generation_utils.py` is deprecated and will be removed in Transformers v5. Import as `from transformers import GenerationMixin` instead.
warnings.warn(
INFO:ModelsForStartup:pre-loading ['hf/e5-base-v2', 'open_clip/ViT-B-32/laion2b_s34b_b79k'] onto devices=['cpu']
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpcore/_backends/sync.py", line 212, in connect_tcp
sock = socket.create_connection(
File "/usr/lib64/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/lib64/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 228, in handle_request
resp = self._pool.handle_request(req)
File "/usr/local/lib/python3.8/site-packages/httpcore/_sync/connection_pool.py", line 262, in handle_request
raise exc
File "/usr/local/lib/python3.8/site-packages/httpcore/_sync/connection_pool.py", line 245, in handle_request
response = connection.handle_request(request)
File "/usr/local/lib/python3.8/site-packages/httpcore/_sync/connection.py", line 99, in handle_request
raise exc
File "/usr/local/lib/python3.8/site-packages/httpcore/_sync/connection.py", line 76, in handle_request
stream = self._connect(request)
File "/usr/local/lib/python3.8/site-packages/httpcore/_sync/connection.py", line 124, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
File "/usr/local/lib/python3.8/site-packages/httpcore/_backends/sync.py", line 219, in connect_tcp
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
File "/usr/lib64/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 99] Cannot assign requested address
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/uvicorn", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/uvicorn/main.py", line 416, in main
run(
File "/usr/local/lib/python3.8/site-packages/uvicorn/main.py", line 587, in run
server.run()
File "/usr/local/lib/python3.8/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib64/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.8/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/usr/local/lib/python3.8/site-packages/uvicorn/config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "/usr/local/lib/python3.8/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/app/src/marqo/tensor_search/api.py", line 50, in <module>
on_start(_config)
File "/app/src/marqo/tensor_search/on_start_script.py", line 36, in on_start
thing_to_start.run()
File "/app/src/marqo/tensor_search/on_start_script.py", line 48, in run
created = self.config.index_management.bootstrap_vespa()
File "/app/src/marqo/core/index_management/index_management.py", line 64, in bootstrap_vespa
app = self.vespa_client.download_application()
File "/app/src/marqo/vespa/vespa_client.py", line 103, in download_application
session_id = self._create_deploy_session(httpx_client)
File "/app/src/marqo/vespa/vespa_client.py", line 473, in _create_deploy_session
response = httpx_client.post(endpoint)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1132, in post
return self.request(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 814, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 901, in send
response = self._send_handling_auth(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 929, in _send_handling_auth
response = self._send_handling_redirects(
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 966, in _send_handling_redirects
response = self._send_single_request(request)
File "/usr/local/lib/python3.8/site-packages/httpx/_client.py", line 1002, in _send_single_request
response = transport.handle_request(request)
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 228, in handle_request
resp = self._pool.handle_request(req)
File "/usr/lib64/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.8/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 99] Cannot assign requested address |
Same issue. Where are the instructions for M series macs? |
Describe the bug
I cannot run the docker image on my M1 Mac. It does work under Ubuntu as expected.
Using this command from the docs:
docker run --name marqo -it --privileged -p 8882:8882 --add-host host.docker.internal:host-gateway marqoai/marqo:latest
Yields:
Docker not found. Installing it...
bash: /app/dind_setup/setup_dind.sh: No such file or directory
Preparing to start Marqo-OS...
Preparing to start Marqo-OS...
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
rm: cannot remove '/var/run/docker.pid': No such file or directory
Preparing to start Marqo-OS...
To test my docker desktop locally, I've successfully ran hello-world and python:latest images. They worked.
To Reproduce
Steps to reproduce the behavior:
docker run --name marqo -it --privileged -p 8882:8882 --add-host host.docker.internal:host-gateway marqoai/marqo:latest
on M1 MacExpected behavior
Expect it to launch, like it does on my ubuntu machines.
Desktop (please complete the following information):
Thanks!
The text was updated successfully, but these errors were encountered: