mongodb-file-server bootrun不了
来源:16-1 -博客管理的需求回顾
一生最初的苍老
2017-09-07
2017-09-07 00:54:57.916 INFO 8624 --- [ main] o.s.b.a.mongo.embedded.EmbeddedMongo : Download 3.2.2:Windows:B64 : starting...
2017-09-07 00:55:10.106 INFO 8624 --- [ main] o.s.b.a.mongo.embedded.EmbeddedMongo : Download 3.2.2:Windows:B64 : DownloadSize: 148359445
2017-09-07 00:55:12.354 INFO 8624 --- [ main] o.s.b.a.mongo.embedded.EmbeddedMongo : Download 3.2.2:Windows:B64 : 0 %
2017-09-07 00:57:04.751 ERROR 8624 --- [ main] d.f.embed.process.runtime.Starter : prepare executable
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_131]
at java.net.SocketInputStream.socketRead(Unknown Source) ~[na:1.8.0_131]
at java.net.SocketInputStream.read(Unknown Source) ~[na:1.8.0_131]
at java.net.SocketInputStream.read(Unknown Source) ~[na:1.8.0_131]
at sun.security.ssl.InputRecord.readFully(Unknown Source) ~[na:1.8.0_131]
at sun.security.ssl.InputRecord.readV3Record(Unknown Source) ~[na:1.8.0_131]
at sun.security.ssl.InputRecord.read(Unknown Source) ~[na:1.8.0_131]
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[na:1.8.0_131]
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) ~[na:1.8.0_131]
at sun.security.ssl.AppInputStream.read(Unknown Source) ~[na:1.8.0_131]
at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.8.0_131]
at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.8.0_131]
at sun.net.www.MeteredStream.read(Unknown Source) ~[na:1.8.0_131]
at java.io.FilterInputStream.read(Unknown Source) ~[na:1.8.0_131]
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source) ~[na:1.8.0_131]
at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.8.0_131]
at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.8.0_131]
at java.io.FilterInputStream.read(Unknown Source) ~[na:1.8.0_131]
at de.flapdoodle.embed.process.store.Downloader.download(Downloader.java:87) ~[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:114) [spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration$$EnhancerBySpringCGLIB$$78d6b36c.CGLIB$embeddedMongoServer$0(<generated>) [spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration$$EnhancerBySpringCGLIB$$78d6b36c$$FastClassBySpringCGLIB$$2ba859af.invoke(<generated>) [spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) [spring-core-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) [spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
at org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration$$EnhancerBySpringCGLIB$$78d6b36c.embeddedMongoServer(<generated>) [spring-boot-autoconfigure-1.5.3.RELEASE.jar:1.5.3.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
2回答
-
看这个“o.s.b.a.mongo.embedded.EmbeddedMongo : Download 3.2.2:Windows:B64 : 0 %” 是内嵌 mongo 下载超时了。多尝试几次。不行就采用独立Mongo 服务器的方式来部署
022020-02-27 -
简先生
2017-10-10
我也是这个问题
062020-03-02
基于Spring Boot技术栈博客系统企业级前后端实战
1296 学习 · 738 问题
相似问题