Skip to content
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

Neither ragtoriches/prod:3.1.29 nor ragtoriches/prod:latest found locally. #1181

Open
GeoZhanglw opened this issue Sep 17, 2024 · 2 comments

Comments

@GeoZhanglw
Copy link

Describe the bug
Following steps was used(win10):
(1)conda enviroment was created with python=3.12,
(2)pip install r2r[core]==3.1.29
(3)r2r serve --docker --config-name=local_llm
Then conda prompt kept telling that:
Neither ragtoriches/prod:3.1.29 nor ragtoriches/prod:latest found locally.
Please pull the required image or build it using the --build flag.
Aborted!
Task exception was never retrieved
future: <Task finished name='asyncclick.core.BaseCommand._main' coro=<BaseCommand._main() done, defined at D:\Anaconda_env\envs\r2r312\Lib\site-packages\anyio_backends_asyncio.py:2015> exception=SystemExit(1)>
Traceback (most recent call last):
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 1120, in main
rv = await self.invoke(ctx)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 1739, in invoke
return await _process_result(await sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 1485, in invoke
return await ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 824, in invoke
rv = await rv
^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\cli\commands\server.py", line 280, in serve
raise click.Abort()
asyncclick.exceptions.Abort

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\cli\cli.py", line 56, in main
cli(_anyio_backend="asyncio")
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 1205, in call
return anyio.run(self._main, main, args, kwargs, **opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\anyio_core_eventloop.py", line 74, in run
return async_backend.run(func, args, {}, backend_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\anyio_backends_asyncio.py", line 2034, in run
return runner.run(wrapper())
^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\nest_asyncio.py", line 92, in run_until_complete
self._run_once()
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\nest_asyncio.py", line 133, in _run_once
handle._run()
File "D:\Anaconda_env\envs\r2r312\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "D:\Anaconda_env\envs\r2r312\Lib\asyncio\tasks.py", line 303, in __step
self.__step_run_and_handle_result(exc)
File "D:\Anaconda_env\envs\r2r312\Lib\asyncio\tasks.py", line 314, in __step_run_and_handle_result
result = coro.send(None)
^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\anyio_backends_asyncio.py", line 2022, in wrapper
return await func(*args)
^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 1208, in _main
return await main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Anaconda_env\envs\r2r312\Lib\site-packages\asyncclick\core.py", line 1163, in main
sys.exit(1)
SystemExit: 1

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Win10

Additional context
Add any other context about the problem here.

@emrgnt-cmplxty
Copy link
Contributor

We need to update this error message. It should rather read no image found in remote repository. Can you confirm your output when running the code shown below in your terminal:

(test_env) ocolegrove@Owens-MacBook-Pro-2 ~ % docker manifest inspect ragtoriches/prod:3.1.29
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
   "manifests": [
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 2665,
         "digest": "sha256:5e7f8d29b28b33e64be5b184f330d09ce9b039c7f080e7e988e5f03bc3bceb17",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
         "size": 2664,
         "digest": "sha256:235be1fe01da834cd56819240c37e7389882ec726f126b8557090671a8b327ea",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      }
   ]
}
(test_env) ocolegrove@Owens-MacBook-Pro-2 ~ % 

@GeoZhanglw
Copy link
Author

GeoZhanglw commented Sep 17, 2024

Aftr running the code "docker manifest inspect ragtoriches/prod:3.1.29", the output was as following:

failed to configure transport: error pinging v2 registry: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

BTW, I tried on another computer, and the result was the same. 'docker compose -f' was also tried manually, the images were pulled, but the terminal kept telling that no images found locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants