nuclio: Error: Nuctl on Windows 10 (- exec: "/bin/sh": file does not exist & - Failed to create auto platform)
Hello,
- Running Nuctl on Windows 10.
- Downloaded from: https://github.com/nuclio/nuclio/releases/tag/1.4.17
- Reference and Context: https://github.com/openvinotoolkit/cvat/issues/2127#issuecomment-691507873
- Procedure Followed: https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/documentation/installation.md#semi-automatic-and-automatic-annotation
I am getting these errors while executing the command nuctl create project abc.
Tried multiple versions and got different errors.
Error on nuctl version - 1.4.17
Error - exec: "/bin/sh": file does not exist
/nuclio/pkg/cmdrunner/cmdrunner.go:124
Error on nuctl version - 1.3.17 and 1.1.37 (and below 1.4.x)
Error - Failed to create auto platform
.../nuclio/nuclio/pkg/platform/factory/factory.go:73
I am able to access Nuclio UI Dashboard on localhost:8070 though!
Thanks a lot!
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 7
- Comments: 22 (2 by maintainers)
Commits related to this issue
- Adjust Windows Installation Instructions to account for Nuclio issue#1821 (#5558) In my understanding of https://github.com/nuclio/nuclio/issues/1821, the Nuctl (1.8.14) CLI is looking for a path th... — committed to opencv/cvat by Bytestorm5 a year ago
- Adjust Windows Installation Instructions to account for Nuclio issue#1821 (#5558) In my understanding of https://github.com/nuclio/nuclio/issues/1821, the Nuctl (1.8.14) CLI is looking for a path th... — committed to retailnext/cvat by Bytestorm5 a year ago
Since I got this issue months ago and not sure what I have done to make it work on my laptop. Therefore, I get a fresh windows 10 and have the following steps to make nuctl work:
1/Enable WSL 2 2/Install ubuntu 18.04 3/Install docker WITHIN ubuntu 18.04 (WSL) using this guide (https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/documentation/installation.md#ubuntu-1804-x86_64amd64) 4/Install docker desktop for windows (https://download.docker.com/win/stable/Docker Desktop Installer.exe) 5/From Windows Docker Desktop Setting : General tab : check the “Expose daemon on…” Resources tab > WSL Integration : check Ubuntu 18.04 6/Restart WSL (powershell:
wsl --shutdownthenwsl7/Clone CVAT and deploy with Serverless component to have nuclio up and running at port 8070 8/Get the latest NUCLI for LINUX (NOT windows) and chmod 700 6/Run a test command :./nuctl get function- this should return “no function found”Give it a try and let me know if this work around works for you
P/S: I used ubuntu console to run all the commands (no git bash nor Powershell). My windows 10 specs: Windows 10 - 2004 build 19041.508 Docker 19.03.13
Hey @s3298230, Thanks for the detailed explanation!
Got a catch here, My Environment: Windows 10 - 1809. Build 17763
Need
Version 1903 or higher, with Build 18362 or higher for WSL2it seems: https://docs.microsoft.com/en-us/windows/wsl/install-win10.Hard luck for me I guess! 😦 Thanks a lot though!
I tried to run
nuctl create project abcfromdevelopmentbranch (https://github.com/nuclio/nuclio/commit/1da32485b27980e1a95fd2867c4299cad9fc34bb).More detailed stack trace from debugger:
Seems like
nuctltries to create Docker shell client and tries to rundocker versionhttps://github.com/nuclio/nuclio/blob/b4fa2daf76cc332490e7613226750ad99f2d5737/pkg/dockerclient/shell.go#L63 but there are not/bin/shexecutable, https://github.com/nuclio/nuclio/blob/b4fa2daf76cc332490e7613226750ad99f2d5737/pkg/cmdrunner/cmdrunner.go#L69 https://github.com/nuclio/nuclio/blob/b4fa2daf76cc332490e7613226750ad99f2d5737/pkg/cmdrunner/cmdrunner.go#L86 so command runner fails: https://github.com/nuclio/nuclio/blob/b4fa2daf76cc332490e7613226750ad99f2d5737/pkg/cmdrunner/cmdrunner.go#L124Why use shell client instead of Docker API Client? Why use shell runner instead of direct execution?
@s3298230 I am running Windows 10 and wsl2. I have tried your instructions, but with no success. (Lots of other attempts, not based on your instructions without success, too.)
One thing I’m not clear about from your instructions is getting Docker twice. I have the Windows desktop version, with proper settings (including Ubuntu 18.04 box checked). But I don’t know how to do #3 in your instructions (and regrettably, the link referenced there is broken).
But I’m not even sure that’s the problem (or at least not the entire problem).
Is all this still functional for you on your setup? Just wondering.
Also, in spite of your really great instructions, I am a noob and am not always sure what to do where. For example: a) You did #7 (“Clone CVAT and deploy with Serverless component to have nuclio up and running at port 8070”) in Ubuntu terminal? b) And can you please clarify (also from #7) what exact steps one takes to do this: “deploy with Serverless component to have nuclio up and running at port 8070” c) I downloaded and copied the nuctl version 1.5.16 for linux from the appropriate link to my Ubuntu home directory. (It’s just a file with no extension.) Is that it? When I run the test command you recommend, I don’t get what you get.
Thanks for your consideration.
It worked! Thanks a lot for your support!
@idil-k glad I could help! Let me know if the model works inside CVAT. You might have to stop the container for it then start it again. I deployed quite a few of the cvat models but only the tensorflow faster rcnn one worked in cvat for me. A couple failed to deploy, others just didn’t work in cvat - quite frustrating. I think they’re trying to fix F-BRS at the moment
Hello
@s3298230 thanks a lot for the description, it really did help a lot! I followed the steps and was able to deploy yolov3-tf successfully.
However, when I navigate to localhost:8080 I still cannot use any models or there is no model tab.
When I check the containers, I noticed that I do not have the quay.io/nuclio/dashboard one. Could this be the reason why the model is not visible in the UI? Why was this container not created? Is there a step that I missed?
I would really appreciate the help. Thank you!
Hi,
Any update on this or any workaround for those with no WSL2?
Thanks!
correct, it is a
sanitytest to ensure docker client + have it logged for debugability mannerThat is the key issue here
Docker API Client provides a lot of feature and great addons, but it lacks of important features (e.g.:
--gpus, not yet supported).I believe the solution here would be to use to implement docker client shell over windows PowerShell