jina-ai/jina-hubble-sdk

Failed on building Docker image.

MandilKarki opened this issue · 5 comments

jina cloud deploy ./
[01/09/23 19:16:46] INFO envfile .env not found. normalize.py:127
INFO Loading Flow YAML flow.yml ... normalize.py:146
INFO Pushing following Executors to hubble executor1... normalize.py:247

Failed on building Docker image. Potential solutions:

  • If you haven't provide a Dockerfile in the executor bundle, you may want to provide one,
    as the auto-generated one on the cloud did not work.
  • If you have provided a Dockerfile, you may want to check the validity of this Dockerfile.

Please report this session_id: [yellow bold]11d534d7-907c-11ed-ac19-744ca175a9fc[/] to https://github.com/jina-ai/jina-hubble-sdk/issues
Traceback (most recent call last):
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 193, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Mandil\co-op\biomedicine-nlp\venv\Scripts\jina.exe_main
.py", line 7, in
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jina_cli_init
.py", line 143, in main
getattr(api, args.cli.replace('-', '
'))(args)
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jina_cli\api.py", line 233, in cloud
getattr(api, args.jc_cli.replace('-', '_'))(args)
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\api.py", line 20, in wrapper
return asyncio.run(f(*args, **kwargs))
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 612, in run_until_complete
return future.result()
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\api.py", line 27, in deploy
return await CloudFlow(path=args.path).aenter()
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\flow.py", line 278, in aenter
await self._deploy()
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\flow.py", line 115, in _deploy
**await self._get_post_params(),
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\flow.py", line 99, in _get_post_params
_flow_path = flow_normalize(_flow_path)
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\normalize.py", line 307, in flow_normalize
push_executors_to_hubble(executors, tag, secret, verbose)
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\normalize.py", line 255, in push_executors_to_hubble
_ = _fut.result()
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\concurrent\futures_base.py", line 432, in result
return self.__get_result()
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\concurrent\futures_base.py", line 388, in __get_result
raise self.exception
File "C:\Users\mandi\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\jcloud\normalize.py", line 115, in hubble_push
executor_id = HubIO(args).push().get('id')
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble_init
.py", line 48, in arg_wrapper
return func(*args, **kwargs)
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\executor\hubio.py", line 593, in push
raise e
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\executor\hubio.py", line 576, in push
image = self._send_push_request(
File "C:\Mandil\co-op\biomedicine-nlp\venv\lib\site-packages\hubble\executor\hubio.py", line 398, in _send_push_request
raise Exception(
Exception:
Failed on building Docker image. Potential solutions:

  • If you haven't provide a Dockerfile in the executor bundle, you may want to provide one,
    as the auto-generated one on the cloud did not work.
  • If you have provided a Dockerfile, you may want to check the validity of this Dockerfile.
    session_id: 11d534d7-907c-11ed-ac19-744ca175a9fc

Hi,
the error was caused by ERROR: Failed building wheel for pytorch
You can push your executor to hub first by runing jina hub push --verbose <path to your executor> before trying to deploy your flow directly.

Could you provide a Dockerfile in your executor?
Or change the pytorch version in your requrements.txt so it does not need building during pip install?

@MandilKarki I am facing the same error i want to upload it to jcloud but cant and the above comment is teeling to push in hub i dont wanna do that
any solution pls?

@MandilKarki I am facing the same error i want to upload it to jcloud but cant and the above comment is teeling to push in hub i dont wanna do that any solution pls?

My issue was with the version of pytorch, I changed the requirements.txt file and it worked. You can change files in requirements.txt and try again, let me know if that helps.

👍worked

hi @nomagick
When following the instructions of create-first-project,I also meet the same error, my requirements.txt is below, but I dont konw how to fix it

jina==3.13.2
numpy==1.24.2
torch==1.13.1