[Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Madhawa Kasun Gunasekara
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa
Reply | Threaded
Open this post in threaded view
|

Re: [Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Jorge Betancourt
Could this be related to some networking configuration on your laptop (looks like)? Do you use any proxy to connect to the internet? could you try executing the command:


And check if curl is able to download that file? 

Best Regards,

On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa
Reply | Threaded
Open this post in threaded view
|

Re: [Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Madhawa Kasun Gunasekara
I couldn't able to download it from the curl command. but when I use wget command, I was able to download it.

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:44 PM, Jorge Betancourt <[hidden email]> wrote:
Could this be related to some networking configuration on your laptop (looks like)? Do you use any proxy to connect to the internet? could you try executing the command:


And check if curl is able to download that file? 

Best Regards,

On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa

Reply | Threaded
Open this post in threaded view
|

Re: [Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Jorge Betancourt
Are you behind a proxy? can you check if wget is using a proxy? If that is the case you'll need to configure some proxy on the ant configuration, because it will try (by default) to connect directly to the maven repository.

Jorge

On Mon, Oct 9, 2017 at 10:51 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
I couldn't able to download it from the curl command. but when I use wget command, I was able to download it.

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:44 PM, Jorge Betancourt <[hidden email]> wrote:
Could this be related to some networking configuration on your laptop (looks like)? Do you use any proxy to connect to the internet? could you try executing the command:


And check if curl is able to download that file? 

Best Regards,

On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa

Reply | Threaded
Open this post in threaded view
|

Re: [Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Madhawa Kasun Gunasekara
Nope. I'm not behind a proxy.

madhawa@madhawa-ThinkPad-T540p:~/DSS-BAM$ wget http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
--2017-10-09 15:50:03--  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Resolving repo1.maven.org (repo1.maven.org)... 151.101.184.209
Connecting to repo1.maven.org (repo1.maven.org)|151.101.184.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3558496 (3.4M) [application/java-archive]
Saving to: ‘closure-compiler-v20130603.jar’

95% [=====================================================================================================================================================================================>        ] 3,415,083    319KB/s   in 7.9s  

2017-10-09 15:50:11 (422 KB/s) - Read error at byte 3415083/3558496 (Connection reset by peer). Retrying.

--2017-10-09 15:50:12--  (try: 2)  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Connecting to repo1.maven.org (repo1.maven.org)|151.101.184.209|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 3558496 (3.4M), 143413 (140K) remaining [application/java-archive]
Saving to: ‘closure-compiler-v20130603.jar’

100%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=======>] 3,558,496   --.-K/s   in 0.1s

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:54 PM, Jorge Betancourt <[hidden email]> wrote:
Are you behind a proxy? can you check if wget is using a proxy? If that is the case you'll need to configure some proxy on the ant configuration, because it will try (by default) to connect directly to the maven repository.

Jorge

On Mon, Oct 9, 2017 at 10:51 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
I couldn't able to download it from the curl command. but when I use wget command, I was able to download it.

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:44 PM, Jorge Betancourt <[hidden email]> wrote:
Could this be related to some networking configuration on your laptop (looks like)? Do you use any proxy to connect to the internet? could you try executing the command:


And check if curl is able to download that file? 

Best Regards,

On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa


Reply | Threaded
Open this post in threaded view
|

Re: [Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Jorge Betancourt
I don’t think this is something ant/Nutch specific, looks more like an intermittent connectivity issue from your provider provider? Honestly is hard to identify from here :). In order to build Nutch you’ll need a reliable internet connection. I’ve just tried to download the same file and works ok:

$ test (master) ✗ wget http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
--2017-10-09 23:07:34--  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Resolving repo1.maven.org... 151.101.36.209
Connecting to repo1.maven.org|151.101.36.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3558496 (3.4M) [application/java-archive]
Saving to: `closure-compiler-v20130603.jar'

100%[========================================================================================>] 3,558,496    590K/s   in 5.9s

2017-10-09 23:07:41 (590 KB/s) - `closure-compiler-v20130603.jar' saved [3558496/3558496]

Best regards,
Jorge

On Oct 9, 2017, 11:05 PM +0200, Madhawa Kasun Gunasekara <[hidden email]>, wrote:
Nope. I'm not behind a proxy.

madhawa@madhawa-ThinkPad-T540p:~/DSS-BAM$ wget http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
--2017-10-09 15:50:03--  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Resolving repo1.maven.org (repo1.maven.org)... 151.101.184.209
Connecting to repo1.maven.org (repo1.maven.org)|151.101.184.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3558496 (3.4M) [application/java-archive]
Saving to: ‘closure-compiler-v20130603.jar’

95% [=====================================================================================================================================================================================>        ] 3,415,083    319KB/s   in 7.9s  

2017-10-09 15:50:11 (422 KB/s) - Read error at byte 3415083/3558496 (Connection reset by peer). Retrying.

--2017-10-09 15:50:12--  (try: 2)  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Connecting to repo1.maven.org (repo1.maven.org)|151.101.184.209|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 3558496 (3.4M), 143413 (140K) remaining [application/java-archive]
Saving to: ‘closure-compiler-v20130603.jar’

100%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=======>] 3,558,496   --.-K/s   in 0.1s

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:54 PM, Jorge Betancourt <[hidden email]> wrote:
Are you behind a proxy? can you check if wget is using a proxy? If that is the case you'll need to configure some proxy on the ant configuration, because it will try (by default) to connect directly to the maven repository.

Jorge

On Mon, Oct 9, 2017 at 10:51 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
I couldn't able to download it from the curl command. but when I use wget command, I was able to download it.

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:44 PM, Jorge Betancourt <[hidden email]> wrote:
Could this be related to some networking configuration on your laptop (looks like)? Do you use any proxy to connect to the internet? could you try executing the command:


And check if curl is able to download that file? 

Best Regards,

On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa


Reply | Threaded
Open this post in threaded view
|

Re: [Build failure] Connection Reset when downloading closure-compiler-v20130603.jar

Madhawa Kasun Gunasekara
Yes, I was able to build the Nutch source successfully by connecting from a different network. Thanks for the help.

Regards,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 4:19 PM, Jorge Betancourt <[hidden email]> wrote:
I don’t think this is something ant/Nutch specific, looks more like an intermittent connectivity issue from your provider provider? Honestly is hard to identify from here :). In order to build Nutch you’ll need a reliable internet connection. I’ve just tried to download the same file and works ok:

Resolving repo1.maven.org... 151.101.36.209
Connecting to repo1.maven.org|151.101.36.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3558496 (3.4M) [application/java-archive]
Saving to: `closure-compiler-v20130603.jar'

100%[========================================================================================>] 3,558,496    590K/s   in 5.9s

2017-10-09 23:07:41 (590 KB/s) - `closure-compiler-v20130603.jar' saved [3558496/3558496]

Best regards,
Jorge

On Oct 9, 2017, 11:05 PM +0200, Madhawa Kasun Gunasekara <[hidden email]>, wrote:
Nope. I'm not behind a proxy.

madhawa@madhawa-ThinkPad-T540p:~/DSS-BAM$ wget http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
--2017-10-09 15:50:03--  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Resolving repo1.maven.org (repo1.maven.org)... 151.101.184.209
Connecting to repo1.maven.org (repo1.maven.org)|151.101.184.209|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3558496 (3.4M) [application/java-archive]
Saving to: ‘closure-compiler-v20130603.jar’

95% [=====================================================================================================================================================================================>        ] 3,415,083    319KB/s   in 7.9s  

2017-10-09 15:50:11 (422 KB/s) - Read error at byte 3415083/3558496 (Connection reset by peer). Retrying.

--2017-10-09 15:50:12--  (try: 2)  http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
Connecting to repo1.maven.org (repo1.maven.org)|151.101.184.209|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 3558496 (3.4M), 143413 (140K) remaining [application/java-archive]
Saving to: ‘closure-compiler-v20130603.jar’

100%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=======>] 3,558,496   --.-K/s   in 0.1s

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:54 PM, Jorge Betancourt <[hidden email]> wrote:
Are you behind a proxy? can you check if wget is using a proxy? If that is the case you'll need to configure some proxy on the ant configuration, because it will try (by default) to connect directly to the maven repository.

Jorge

On Mon, Oct 9, 2017 at 10:51 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
I couldn't able to download it from the curl command. but when I use wget command, I was able to download it.

Thanks,
Madhawa

Madhawa

On Mon, Oct 9, 2017 at 3:44 PM, Jorge Betancourt <[hidden email]> wrote:
Could this be related to some networking configuration on your laptop (looks like)? Do you use any proxy to connect to the internet? could you try executing the command:


And check if curl is able to download that file? 

Best Regards,

On Mon, Oct 9, 2017 at 10:36 PM Madhawa Kasun Gunasekara <[hidden email]> wrote:
Hi Devs,

I'm new to Nutch. I'm trying to build the Nutch from the source. but I'm getting above mentioned error when I try to build it. I'm using JDK java version "1.8.0_144" and ant version 1.9.4. Did anyone of encounter this issue earlier? but when I check the  closure-compiler-v20130603.jar manually, It is available in http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar

but when I invoke the ant command, It always returns the Connection reset Error.
Is there a way to fix this issue?

madhawa@madhawa-ThinkPad-T540p:~/nutch$ ant
Buildfile: /home/madhawa/nutch/build.xml
Trying to override old definition of task javac
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-probe-antlib:

ivy-download:
  [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.

ivy-download-unchecked:

ivy-init-antlib:

ivy-init:

init:

clean-default-lib:

resolve-default:
[ivy:resolve] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/madhawa/nutch/ivy/ivysettings.xml
[ivy:resolve] downloading http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar ...
[ivy:resolve] ...............................................................................................................................................
[ivy:resolve] ...................................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................................................
[ivy:resolve] ................................................................................................................................................................................
[ivy:resolve] ..........................................................................................................................................................................................................................................................
[ivy:resolve] .............................................................................................................................................................................................................................................................
[ivy:resolve] ......................................................................................................................................................................................................................................
[ivy:resolve] ........................................................................................................................................................
[ivy:resolve] ............................................................................................................................................................................................................................................................................................................
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar: Connection reset (15980ms)
[ivy:resolve]         [FAILED     ] com.google.javascript#closure-compiler;v20130603!closure-compiler.jar:  (0ms)
[ivy:resolve]     ==== local: tried
[ivy:resolve]       /home/madhawa/.ivy2/local/com.google.javascript/closure-compiler/v20130603/jars/closure-compiler.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]       http://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== apache-snapshot: tried
[ivy:resolve]       https://repository.apache.org/content/repositories/snapshots/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]       http://oss.sonatype.org/content/repositories/releases/com/google/javascript/closure-compiler/v20130603/closure-compiler-v20130603.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::              FAILED DOWNLOADS            ::
[ivy:resolve]         :: ^ see resolution messages for details  ^ ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: com.google.javascript#closure-compiler;v20130603!closure-compiler.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED



Thanks,
Madhawa