carnellj / spmia-chapter1

Chapter 1 for Spring Microservices in Action
164 stars 206 forks source link

Doesn't build #6

Open stuartg23 opened 6 years ago

stuartg23 commented 6 years ago

Hi there,

I'm working through the book having purchased from Manning. The maven build fails. I've updated the pom.xml for the new version suggestions in the one other issue created on this. Here's my info, any suggestions on what's wrong very much appreciated. I've loved the boot but now want to walk through all of the examples before applying to our base.

uname -a Linux stuartguthrie-XPS-15-9560 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

mvn -v Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_161, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_AU, platform encoding: UTF-8 OS name: "linux", version: "4.13.0-32-generic", arch: "amd64", family: "unix"

This is where I get:

[INFO] Building image johncarnell/tmx-simple-service:chapter1 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Simple Service ..................................... FAILURE [ 3.589 s] [INFO] thoughtmechanix-parent-pom ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.077 s [INFO] Finished at: 2018-02-21T08:53:49+11:00 [INFO] Final Memory: 49M/662M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project simple-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: No such file or directory -> [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

stuartg23 commented 6 years ago

Just as a btw, this is also the case on chapter 2.

carnellj commented 6 years ago

Hi Stuart,

Just out of curiosity are you running your code inside of an Ubuntu VM. Not quite sure why is trying to point to port 80. I am running Docker native on my Mac OS X and just confirmed that chapter1 fired up for me.

Thanks,
   John

On Tue, Feb 20, 2018 at 4:59 PM, stuartg23 notifications@github.com wrote:

Hi there,

I'm working through the book having purchased from Manning. The maven build fails. I've updated the pom.xml for the new version suggestions in the one other issue created on this. Here's my info, any suggestions on what's wrong very much appreciated. I've loved the boot but now want to walk through all of the examples before applying to our base.

uname -a Linux stuartguthrie-XPS-15-9560 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

mvn -v Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_161, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_AU, platform encoding: UTF-8 OS name: "linux", version: "4.13.0-32-generic", arch: "amd64", family: "unix"

This is where I get:

[INFO] Building image johncarnell/tmx-simple-service:chapter1 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 [INFO] ------------------------------------------------------------

[INFO] Reactor Summary: [INFO] [INFO] Simple Service ..................................... FAILURE [ 3.589 s] [INFO] thoughtmechanix-parent-pom ......................... SKIPPED [INFO] ------------------------------------------------------------

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------

[INFO] Total time: 4.077 s [INFO] Finished at: 2018-02-21T08:53:49+11:00 [INFO] Final Memory: 49M/662M [INFO] ------------------------------------------------------------

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project simple-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client. shaded.javax.ws.rs.ProcessingException: java.io.IOException: No such file or directory -> [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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carnellj/spmia-chapter1/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AAduZZWMNVRzvCcTVO12oMhT5JZ1Ydtkks5tW0BJgaJpZM4SMvK_ .

stuartg23 commented 6 years ago

Thanks for the quick response John,

I think that my problem is ensuring docker is installed correctly. I'll update when I've debugged this end.

On Wed, Feb 21, 2018 at 1:40 PM, John Carnell notifications@github.com wrote:

Hi Stuart,

Just out of curiosity are you running your code inside of an Ubuntu VM. Not quite sure why is trying to point to port 80. I am running Docker native on my Mac OS X and just confirmed that chapter1 fired up for me.

Thanks, John

On Tue, Feb 20, 2018 at 4:59 PM, stuartg23 notifications@github.com wrote:

Hi there,

I'm working through the book having purchased from Manning. The maven build fails. I've updated the pom.xml for the new version suggestions in the one other issue created on this. Here's my info, any suggestions on what's wrong very much appreciated. I've loved the boot but now want to walk through all of the examples before applying to our base.

uname -a Linux stuartguthrie-XPS-15-9560 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

mvn -v Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_161, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_AU, platform encoding: UTF-8 OS name: "linux", version: "4.13.0-32-generic", arch: "amd64", family: "unix"

This is where I get:

[INFO] Building image johncarnell/tmx-simple-service:chapter1 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory Feb 21, 2018 8:53:49 AM org.apache.http.impl.execchain.RetryExec execute INFO: Retrying request to {}->unix://localhost:80 [INFO] ------------------------------------------------------------

[INFO] Reactor Summary: [INFO] [INFO] Simple Service ..................................... FAILURE [ 3.589 s] [INFO] thoughtmechanix-parent-pom ......................... SKIPPED [INFO] ------------------------------------------------------------

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------

[INFO] Total time: 4.077 s [INFO] Finished at: 2018-02-21T08:53:49+11:00 [INFO] Final Memory: 49M/662M [INFO] ------------------------------------------------------------

[ERROR] Failed to execute goal com.spotify:docker-maven- plugin:0.4.10:build (default-cli) on project simple-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client. shaded.javax.ws.rs.ProcessingException: java.io.IOException: No such file or directory -> [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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carnellj/spmia-chapter1/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ AAduZZWMNVRzvCcTVO12oMhT5JZ1Ydtkks5tW0BJgaJpZM4SMvK_ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/carnellj/spmia-chapter1/issues/6#issuecomment-367195145, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhQpxHnYKSkI-QyvQ-aGIoEoTCvEjQgks5tW4IlgaJpZM4SMvK_ .

-- Best regards

Stuart Guthrie Co-CEO Polonious Pty Ltd (w) http://www.polonious.com.au (m) +61 403 470 123 (t) +61 2 8916 6445 Disclaimer - The information contained in this e-mail is intended only for the named recipient(s) and may be confidential and/or privileged. Unauthorised use or reproduction (including storage or re-distribution) is prohibited. Except as required at law, Polonious Pty Ltd does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. If you have received this communication in error, please contact us on +612 8916 6445 or by reply email and kindly delete this email.

rocLv commented 4 years ago

I got this error, too. I figured it out lately. It's because I did not start docker daemon.