This message was deleted.
# ask-for-help
s
This message was deleted.
j
Hi. Can you provide more details about the problem you are facing?
https://github.com/bentoml/azure-container-instances-deploy this guide is about how to deploy bentos with bentoctl and terraform
s
I am getting this error while using bentoctl build command and pushing to Azure Container registry.
C\Users\HP\anaconda3\Scripts\bentoctl.exe\ main .py4: DeprecationWarning: bentoml._internal.utils.buildx is deprecated. Make sure to use 'bentoml.container.build' and 'bentoml.container.health' instead. Multiple '--platform' arguments were found. Make sure to also use '--push' to push images to a repository or generated images will not be saved. See https://docs.docker.com/engine/reference/commandline/buildx_build/#load. Traceback (most recent call last): File "C:\Users\HP\anaconda3\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\HP\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\HP\anaconda3\Scripts\bentoctl.exe\__main__.py", line 7, in <module> sys.exit(bentoctl()) File "C:\Users\HP\anaconda3\lib\site-packages\click\core.py", line 1128, in call return self.main(*args, **kwargs) File "C:\Users\HP\anaconda3\lib\site-packages\click\core.py", line 1053, in main rv = self.invoke(ctx) File "C:\Users\HP\anaconda3\lib\site-packages\click\core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\HP\anaconda3\lib\site-packages\click\core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "C:\Users\HP\anaconda3\lib\site-packages\click\core.py", line 754, in invoke return __callback(*args, **kwargs) File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\cli\utils.py", line 90, in wrapper return_value = func(*args, **kwargs) File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\cli\utils.py", line 55, in wrapper return func(*args, **kwargs) File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\cli\utils.py", line 24, in wrapper return func(*args, **kwargs) File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\cli\__init__.py", line 158, in build ) = deployment_config.create_repository() File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\deployment_config.py", line 217, in create_repository (repository_url, username, password,) = self.operator.create_repository( File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\operator\operator.py", line 150, in create_repository return operator.create_repository(repository_name, operator_spec) File "C:\Users\HP\bentoctl\operators\azure-container-instances\bentoctl_container_instances\registry.py", line 51, in create_repository check_admin_user_ennabled( File "C:\Users\HP\bentoctl\operators\azure-container-instances\bentoctl_container_instances\registry.py", line 9, in check_admin_user_ennabled out, _ = run_shell_command( File "C:\Users\HP\anaconda3\lib\site-packages\bentoctl\utils\operator_helpers\utils.py", line 6, in run_shell_command proc = subprocess.Popen( File "C:\Users\HP\anaconda3\lib\subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\HP\anaconda3\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified
@jjmachan pls help
c
Hey @jjmachan could you help take a look?
👏 1
j
seem like a windows specific issue due with bentoctl's access to the Azure CLI. I'll setup a windows system so that I can test more but in the mean time we can try debugging on your system @Sarthak Verma. DMing you
👍 1
🍻 1
s
Hey @jjmachan Any update on patch fix?
@jjmachan Thank you so much for your debugging sessions on my local system to help me fix out the issue.
❤️ 1