-
Notifications
You must be signed in to change notification settings - Fork 78
Operation timed out while downloading #16
Comments
Hi, is that issue persistent, or just happened one time? It looks like your machine was unable to connect with elastic servers. If this is persistent issue check if you are able to download elasticsearch archive with wget/browser (using same url as embedded-elasticsearch: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip) |
its been persistent. If I click on the url inside IDE it takes me to browser and elasticsearch-5.1.1.zip file is downloaded. Its just file not being downloaded from IDE(Intellij). Looks like file downloading is not a problem, however it does not get downloaded inside IDE. Note: IDE downloads the file to /var/folders/4c/sqrnrxg109x79j2lv9bmnrl801g3xn/T/embedded-elasticsearch-temp-dir/ Is there anyway I can change the target download dir(something like /tmp)? It may be permission issue. |
I manually downloaded elasticsearch-5.1.1.zip to /var/folders/4c/sqrnrxg109x79j2lv9bmnrl801g3xn/T/embedded-elasticsearch-temp-dir/ and it strated working fine. Not sure where the issue is. It would be nice if there is an option for target download dir for EmbeddedElastic |
Could you paste here full stacktrace? |
2017-02-09 14:31:04,039 thread=[main] logType=INFO p.a.t.embeddedelasticsearch.ElasticSearchInstaller - Downloading : https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip to /var/folders/4c/sqrnrxg109x79j2lv9bmnrl801g3xn/T/embedded-elasticsearch-temp-dir/elasticsearch-5.1.1.zip... java.net.ConnectException: Operation timed out
Process finished with exit code 255 |
From stacktrace, this is not permissions issue, but networking. Please try adding explicit download url without https:
|
Even with below option the downloaded url converted to https. Is there an option to mention proxy? We are behind proxy. @before
} StackTrace >> 2017-02-10 08:25:26,974 thread=[main] logType=INFO p.a.t.embeddedelasticsearch.ElasticSearchInstaller - Downloading : https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip to /var/folders/4c/sqrnrxg109x79j2lv9bmnrl801g3xn/T/embedded-elasticsearch-temp-dir/elasticsearch-5.1.1.zip... java.net.ConnectException: Operation timed out (Connection timed out)
|
Sorry for lack of response. Do you solved a problem? As to my advice to put download url explicitly, when you specify both version and download url, then download url will be ignored. So skip invocation of |
Its fails with even if I remove '.withElasticVersion("5.1.1")'. embeddedElastic = EmbeddedElastic.builder() StackTrace >>2017-03-07 13:31:16,902 thread=[main] logType=INFO p.a.t.embeddedelasticsearch.ElasticSearchInstaller - Downloading : http://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip to /var/folders/4c/sqrnrxg109x79j2lv9bmnrl801g3xn/T/embedded-elasticsearch-temp-dir/elasticsearch-5.1.1.zip... java.net.ConnectException: Operation timed out (Connection timed out)
I am able to download the file through wget and by clicking the download link in stack trace. I am little inclined towards proxy being causing the issue. Wgetwget http://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip ⮂ elasticsearch-5.1.1.zip 100%[==========================================================================================================================================>] 31.76M 3.82MB/s in 9.1s 2017-03-07 13:32:49 (3.47 MB/s) - ‘elasticsearch-5.1.1.zip’ saved [33307881/33307881] |
Anyone, got resolved this? I am also facing same in my integration tests:
|
my configuration:
pom.xml ->
pl.allegro.tech
embedded-elasticsearch
2.1.0
testCompile
TestClass ->
private EmbeddedElastic embeddedElastic;
Error:
2017-02-08 20:19:27,482 thread=[main] logType=INFO p.a.t.embeddedelasticsearch.ElasticSearchInstaller - Downloading : https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.zip to /var/folders/4c/sqrnrxg109x79j2lv9bmnrl801g3xn/T/embedded-elasticsearch-temp-dir/elasticsearch-5.1.1.zip...
java.net.ConnectException: Operation timed out
Not sure what I am missing here. Any pointer?
The text was updated successfully, but these errors were encountered: