Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

I am using docker maven plugin and I made intentionally error in application (bean creation exception) but always I am getting error in generic was saying Docker IO error [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.32.0:start (docker-start) on project captcha-validator-integration-test: I/O Error: [***.azurecr.io/ssib/captcha-validator-service:1.2.0-SNAPSHOT] "service-captcha-validator": Timeout after 120460 ms while waiting on log out 'Started CaptchaValidatorApplication' -> [Help 1] [ERROR] [ERROR] How to display actual error in logs? #463

Open
amarsha opened this issue Nov 19, 2021 · 0 comments

Comments

@amarsha
Copy link

amarsha commented Nov 19, 2021

<profile>
            <id>docker</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>docker-random-ports</id>
                                <goals>
                                    <goal>reserve-network-port</goal>
                                </goals>
                                <phase>process-resources</phase>
                                <configuration>
                                    <portNames>
                                        <portName>api.port</portName>
                                        <portName>hcaptcha.port</portName>
                                    </portNames>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>io.fabric8</groupId>
                        <artifactId>docker-maven-plugin</artifactId>
                        <configuration>
                            <autoCreateCustomNetworks>true</autoCreateCustomNetworks>
                            <images>
                                <image>
                                    <name>${container.registry}/${container.repositorybase}/captcha-validator-service:${project.version}</name>
                                    <alias>service-${docker-container-unique-tag}</alias>
                                    <run>
                                        <network>
                                            <name>network-${docker-container-unique-tag}</name>
                                            <alias>service</alias>
                                        </network>
                                        <namingStrategy>alias</namingStrategy>
                                        <ports>
                                            <port>${api.port}:8080</port>
                                        </ports>
                                        <wait>
                                            <log>Started CaptchValidatorApplication
                                            </log>
                                            <time>120000</time>
                                        </wait>
                                        <dependsOn>
                                            <dependsOn>wiremock-hcaptcha-${docker-container-unique-tag}</dependsOn>
                                        </dependsOn>
                                        <env>
                                            <HCAPTCHASERVICEHOST>http://wiremock-hcaptcha:8080</HCAPTCHASERVICEHOST>
                                        </env>
                                        <log>
                                            <color>blue</color>
                                        </log>
                                    </run>
                                </image>
                                <image>
                                    <name>${container.registry}/rodolpheche/wiremock:latest</name>
                                    <alias>wiremock-hcaptcha-${docker-container-unique-tag}</alias>
                                    <run>
                                        <network>
                                            <name>network-${docker-container-unique-tag}</name>
                                            <alias>wiremock-hcaptcha</alias>
                                        </network>
                                        <namingStrategy>alias</namingStrategy>
                                        <ports>
                                            <port>${hcaptcha.port}:8080</port>
                                        </ports>
                                        <volumes>
                                            <bind>
                                                <volume>${project.basedir}/src/test/resources/:/home/wiremock</volume>
                                            </bind>
                                        </volumes>
                                        <hostname>localhost</hostname>
                                        <wait>
                                            <time>5000</time>
                                        </wait>
                                        <log>
                                            <prefix>%a</prefix>
                                            <color>magenta</color>
                                        </log>
                                    </run>
                                </image>
                            </images>
                        </configuration>
                        <executions>
                            <execution>
                                <id>docker-start</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>start</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>docker-stop</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <!--suppress MavenModelInspection property exposed by docker-maven-plugin-->
                                <api.root>http://localhost:${api.port}</api.root>
                                <api.wiremock-hcaptcha-port>${hcaptcha.port}</api.wiremock-hcaptcha-port>
                                <management.root>http://localhost:${management.port}</management.root>
                                <api.use-local-wiremocks>false</api.use-local-wiremocks>
                            </systemPropertyVariables>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>integration-test</goal>
                                    <goal>verify</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
@amarsha amarsha changed the title I am using docker maven plugin and I made intentionally error in application but always I am getting error in generic was saying Docker IO error I am using docker maven plugin and I made intentionally error in application but always I am getting error in generic was saying Docker IO error Nov 19, 2021
@amarsha amarsha changed the title I am using docker maven plugin and I made intentionally error in application but always I am getting error in generic was saying Docker IO error I am using docker maven plugin and I made intentionally error in application but always I am getting error in generic was saying Docker IO error [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.32.0:start (docker-start) on project captcha-validator-integration-test: I/O Error: [***.azurecr.io/ssib/captcha-validator-service:1.2.0-SNAPSHOT] "service-captcha-validator": Timeout after 120460 ms while waiting on log out 'Started CaptchaValidatorApplication' -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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 read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :captcha-validator-integration-test Nov 19, 2021
@amarsha amarsha changed the title I am using docker maven plugin and I made intentionally error in application but always I am getting error in generic was saying Docker IO error [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.32.0:start (docker-start) on project captcha-validator-integration-test: I/O Error: [***.azurecr.io/ssib/captcha-validator-service:1.2.0-SNAPSHOT] "service-captcha-validator": Timeout after 120460 ms while waiting on log out 'Started CaptchaValidatorApplication' -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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 read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :captcha-validator-integration-test I am using docker maven plugin and I made intentionally error in application (bean creation exception) but always I am getting error in generic was saying Docker IO error [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.32.0:start (docker-start) on project captcha-validator-integration-test: I/O Error: [***.azurecr.io/ssib/captcha-validator-service:1.2.0-SNAPSHOT] "service-captcha-validator": Timeout after 120460 ms while waiting on log out 'Started CaptchaValidatorApplication' -> [Help 1] [ERROR] [ERROR] Nov 19, 2021
@amarsha amarsha changed the title I am using docker maven plugin and I made intentionally error in application (bean creation exception) but always I am getting error in generic was saying Docker IO error [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.32.0:start (docker-start) on project captcha-validator-integration-test: I/O Error: [***.azurecr.io/ssib/captcha-validator-service:1.2.0-SNAPSHOT] "service-captcha-validator": Timeout after 120460 ms while waiting on log out 'Started CaptchaValidatorApplication' -> [Help 1] [ERROR] [ERROR] I am using docker maven plugin and I made intentionally error in application (bean creation exception) but always I am getting error in generic was saying Docker IO error [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.32.0:start (docker-start) on project captcha-validator-integration-test: I/O Error: [***.azurecr.io/ssib/captcha-validator-service:1.2.0-SNAPSHOT] "service-captcha-validator": Timeout after 120460 ms while waiting on log out 'Started CaptchaValidatorApplication' -> [Help 1] [ERROR] [ERROR] How to display actual error in logs? Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant