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

Windows: docker not found when running aio app run --local --verbose (openwhisk) #304

Closed
shazron opened this issue Oct 5, 2020 · 5 comments · Fixed by #309
Closed

Windows: docker not found when running aio app run --local --verbose (openwhisk) #304

shazron opened this issue Oct 5, 2020 · 5 comments · Fixed by #309
Assignees
Labels
bug Something isn't working

Comments

@shazron
Copy link
Member

shazron commented Oct 5, 2020

On Windows 10, Docker version 19.03.13, build 4484c46d9d, Docker Desktop Community 2.4.0.0

Docker is installed, and the docker checks all pass in our checks in the app plugin.

However, the local Openwhisk stack can't find it, because it is looking for docker in C:\Program Files\Docker\Docker\resources\bin\docker.exe. The .exe location has changed to C:\Program Files\Docker\Docker\resources\docker.exe . See docker/for-win#7898

Log:

C:\Users\shazron\Desktop\tmp\app-1>aio app run --local --verbose
i checking if java is installed...
i checking if docker is installed...
i checking if docker is running...
i starting local OpenWhisk stack..
\ Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:47)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:86)
        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.io.FileNotFoundException: Couldn't locate docker binary (tried: /usr/bin/docker, /usr/local/bin/docker, C:\Program Files\Docker\Docker\resources\bin\docker.exe).
        at org.apache.openwhisk.core.containerpool.docker.DockerClient.$anonfun$dockerCmd$3(DockerClient.scala:96)
        at scala.util.Failure.getOrElse(Try.scala:222)
        at org.apache.openwhisk.core.containerpool.docker.DockerClient.<init>(DockerClient.scala:96)
        at org.apache.openwhisk.standalone.StandaloneDockerClient.<init>(StandaloneDockerSupport.scala:203)
        at org.apache.openwhisk.standalone.StandaloneOpenWhisk$.prepareDocker(StandaloneOpenWhisk.scala:420)
        at org.apache.openwhisk.standalone.StandaloneOpenWhisk$.main(StandaloneOpenWhisk.scala:231)
        at org.apache.openwhisk.standalone.StandaloneOpenWhisk.main(StandaloneOpenWhisk.scala)
        ... 8 more
\   @adobe/aio-cli-plugin-app:runDev:error unexpected error, cleaning up...
×
    Error: local openwhisk stack startup timed out: 60000ms
@meryllblanchet meryllblanchet added the bug Something isn't working label Oct 5, 2020
@aiojbot
Copy link
Collaborator

aiojbot commented Oct 5, 2020

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-942

@meryllblanchet
Copy link
Contributor

@shazron
Copy link
Member Author

shazron commented Oct 6, 2020

added a patch apache/openwhisk#4991

rabbah pushed a commit to apache/openwhisk that referenced this issue Oct 7, 2020
* fix: add new Windows docker.exe location

See docker/for-win#7898
See adobe/aio-cli-plugin-app#304

* fix: scala formatting

Check: `./gradlew checkScalaFmt`
Fix: `./gradlew scalaFmt`
@shazron
Copy link
Member Author

shazron commented Oct 27, 2020

patch integrated, we need to build a new jar https://github.com/apache/openwhisk/blob/master/core/standalone/README.md and add it to the our jar download at

OW_JAR_URL = 'https://dl.bintray.com/adobeio-firefly/aio/openwhisk-standalone.jar',

@shazron
Copy link
Member Author

shazron commented Nov 2, 2020

New PR apache/openwhisk#5021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants