Skip to content
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

Proxy problems with mongodb #2

Closed
maku opened this issue Jan 4, 2018 · 4 comments
Closed

Proxy problems with mongodb #2

maku opened this issue Jan 4, 2018 · 4 comments

Comments

@maku
Copy link

maku commented Jan 4, 2018

I am behind a proxy server and problems running the app regarding mongodb

2018-01-04 09:33:36.314  INFO 11524 --- [           main] o.s.b.a.mongo.embedded.EmbeddedMongo     : Download 3.2.2:Windows:B32 : starting...
2018-01-04 09:33:46.490 ERROR 11524 --- [           main] d.f.embed.process.runtime.Starter        : prepare executable

java.io.IOException: Could not open inputStream for https://downloads.mongodb.org/win32/mongodb-win32-i386-3.2.2.zip
	at de.flapdoodle.embed.process.store.Downloader.downloadInputStream(Downloader.java:131) ~[de.flapdoodle.embed.process-2.0.1.jar:na]
	at de.flapdoodle.embed.process.store.Downloader.download(Downloader.java:69) ~[de.flapdoodle.embed.process-2.0.1.jar:na]
	at de.flapdoodle.embed.process.store.ArtifactStore.checkDistribution(ArtifactStore.java:66) ~[de.flapdoodle.embed.process-2.0.1.jar:na]
	at de.flapdoodle.embed.process.store.ExtractedArtifactStore.checkDistribution(ExtractedArtifactStore.java:60) ~[de.flapdoodle.embed.process-2.0.1.jar:na]
	at de.flapdoodle.embed.process.runtime.Starter.prepare(Starter.java:56) [de.flapdoodle.embed.process-2.0.1.jar:na]
	at de.flapdoodle.embed.process.runtime.Starter.prepare(Starter.java:49) [de.flapdoodle.embed.process-2.0.1.jar:na]
	at org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration.embeddedMongoServer(EmbeddedMongoAutoConfiguration.java:117) [spring-boot-autoconfigure-2.0.0.M7.jar:2.0.0.M7]

Is there a workaround?

@maku
Copy link
Author

maku commented Jan 4, 2018

when you provide the proxy parameters -Dhttp.proxyHost -Dhttp.proxyPort it works fine....

@maku maku closed this as completed Jan 4, 2018
@gregturn
Copy link
Member

gregturn commented Jan 4, 2018

Glad you solved it!

@xgz1981
Copy link

xgz1981 commented Mar 20, 2018

how to solve the issue.

@rgriffogoes
Copy link

For my case I had to also include https parameters. In the end, I had something like this in my IDE JVM startup:
-Dhttp.proxyHost=xxx.xxx.xxx.xxx -Dhttp.proxyPort=yyyy -Dhttps.proxyHost=xxx.xxx.xxx.xxx -Dhttps.proxyPort=yyyy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants