-
Notifications
You must be signed in to change notification settings - Fork 40
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
docker:start failure on windows #54
Comments
Hi, The plugin run Thank you, Alex |
Hi, C:\Users\CCS_Toshiba\Documents\trunk-r23686-docker>VBoxManage controlvm boot2doc Thanks, |
Can you please run VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,5432,,5432 |
refreshed my environment and tried again ... this is what I got: C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54 C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54 C:\Users\victor> |
to add to that(sometimes it fails sometimes it doesn't): C:\Users\victor> VBoxManage controlvm boot2docker-vm natpf1 delete 5432 C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54 C:\Users\victor>VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,54 C:\Users\victor> VBoxManage controlvm boot2docker-vm natpf1 delete 5432 C:\Users\victor> VBoxManage controlvm boot2docker-vm natpf1 delete 5432 C:\Users\victor> |
so as long as I run VBoxManage controlvm boot2docker-vm natpf1 5432,tcp,127.0.0.1,5432,,5432 for every port before I run mvn docker:start, everything works. |
I think we need to be more tolerant of the error on Windows. Can you try the latest version with |
Running mvn -U docker:clean -N -X got the following error: [DEBUG] Executing VBoxManage controlvm boot2docker-vm natpf1 delete 8080 I also noticed that even after removing the port forwarding dependency plugin, my containers started properly. |
Ah - you need to use the latest SNAPSHOT vernios (2.8.5-SNAPSHOT) |
Do you mean for the >docker-maven-plugin or >docker-java-orchestration-plugin? |
I actually mean both - 2.8.6-SNAPSHOT is now the latest. |
Does this look correct?
[INFO] ------------------------------------------------------------------------ |
Yes. But 2.8.4 is still in these somewhere. |
Tried moving the version around... seems it cannot find 2.8.6-SNAPSHOT WARNING] The POM for com.alexecollins.docker:docker-maven-plugin:jar:2.8.6-SNAPSHOT is missing, no dependency information available Process finished with exit code 1 |
Please add this to you pom:
|
still picking up 2.8.4 [ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.8.4:start (default-cli) |
Can you set the version in your pom to 2.8.6-SNAPSHOT? |
Alex, sorry for the long delay. It appears to hang after starting the container. I stopped and reran with debug mode and it is hanging on this line: [INFO] Container already running How can I get you more info? |
Could you execute |
Everything works on my mac but I just started testing this out on windows environment and am getting the following error:
C:\Users\CCS_Toshiba\Documents\trunk-r23686-docker>mvn docker:start -N -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.freedomoss.crowdcontrol:workfusion-application:pom:7.2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.alexecollins.docker:docker-mave
n-plugin is missing. @ line 878, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WorkFusion Application 7.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- docker-maven-plugin:2.8.4:start (default-cli) @ workfusion-applicatio
n ---
[INFO] Docker version 1.6.0
[INFO] Loaded class com.alexecollins.docker.orchestration.plugin.virtualbox.Boot
2DockerPlugin plugin
[INFO] Starting postgresql
[INFO] Container already running
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.980 s
[INFO] Finished at: 2015-04-30T08:36:56-04:00
[INFO] Final Memory: 21M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.alexecollins.docker:docker-maven-plugin:2.8.4
:start (default-cli) on project workfusion-application: exit code 1, VBoxManage.
exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (
extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(Bst
r(a->argv[3]).raw())" at line 523 of file VBoxManageControlVM.cpp -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal c
om.alexecollins.docker:docker-maven-plugin:2.8.4:start (default-cli) on project
workfusion-application: exit code 1, VBoxManage.exe: error: Code E_INVALIDARG (0
x80070057) - One or more arguments are invalid (extended info not available) VBo
xManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw())" at line 52
3 of file VBoxManageControlVM.cpp
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: exit code 1, VBoxMana
ge.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invali
d (extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(
Bstr(a->argv[3]).raw())" at line 523 of file VBoxManageControlVM.cpp
at com.alexecollins.docker.mojo.AbstractDockerMojo.execute(AbstractDocke
rMojo.java:144)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 20 more
Caused by: java.lang.RuntimeException: exit code 1, VBoxManage.exe: error: Code
E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not
available) VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(a->argv[3]).raw
())" at line 523 of file VBoxManageControlVM.cpp
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.exec(Boot2DockerPlugin.java:85)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.deletePortForward(Boot2DockerPlugin.java:65)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.quietlyDeletePortForward(Boot2DockerPlugin.java:56)
at com.alexecollins.docker.orchestration.plugin.virtualbox.Boot2DockerPl
ugin.started(Boot2DockerPlugin.java:36)
at com.alexecollins.docker.orchestration.DockerOrchestrator.start(Docker
Orchestrator.java:271)
at com.alexecollins.docker.orchestration.DockerOrchestrator.start(Docker
Orchestrator.java:546)
at com.alexecollins.docker.mojo.StartMojo.doExecute(StartMojo.java:17)
at com.alexecollins.docker.mojo.AbstractDockerMojo.execute(AbstractDocke
rMojo.java:142)
... 22 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
The text was updated successfully, but these errors were encountered: