Comments (6)
Thanks a lot, problem solved, maybe it's cause by minio that i also run in docker, 127.0.0.1 point to docker env, not my machine localhost, I changed 127.0.0.1:9000 to machine router ip works.
from turms.
You need to provide logs of the turms-service-1
container so that others don't need to guess why it exited, and I think you can know the reason after reading its logs.
And read the doc to use minio.
from turms.
I found some log may related:
suppressed: java.lang.RuntimeException: Caught errors while starting extensions of the plugin: im.turms.plugin.minio.MinioStoragePlugin
at im.turms.server.common.infra.exception.ThrowableUtil.delayError(ThrowableUtil.java:101)
at im.turms.server.common.infra.plugin.Plugin.start(Plugin.java:66)
at im.turms.server.common.infra.exception.ThrowableUtil.delayError(ThrowableUtil.java:92)
at im.turms.server.common.infra.plugin.PluginManager.startPlugins(PluginManager.java:549)
at im.turms.server.common.infra.plugin.PluginManager.startPlugins(PluginManager.java:536)
at im.turms.server.common.infra.plugin.PluginManager.onApplicationEvent(PluginManager.java:162)
at im.turms.server.common.infra.plugin.PluginManager.onApplicationEvent(PluginManager.java:82)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:437)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:370)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:961)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:611)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:310)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1304)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1293)
at im.turms.server.common.BaseTurmsApplication.bootstrap(BaseTurmsApplication.java:54)
at im.turms.service.TurmsServiceApplication.main(TurmsServiceApplication.java:34)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(native)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(unknown)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(unknown)
at java.lang.reflect.Method.invoke(unknown)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
suppressed: java.lang.RuntimeException: Caught an error while starting the extension: im.turms.plugin.minio.MinioStorageServiceProvider
at im.turms.server.common.infra.plugin.Plugin.lambda$start$0(Plugin.java:61)
at im.turms.server.common.infra.exception.ThrowableUtil.delayError(ThrowableUtil.java:92)
at im.turms.server.common.infra.plugin.Plugin.start(Plugin.java:66)
at im.turms.server.common.infra.exception.ThrowableUtil.delayError(ThrowableUtil.java:92)
at im.turms.server.common.infra.plugin.PluginManager.startPlugins(PluginManager.java:549)
at im.turms.server.common.infra.plugin.PluginManager.startPlugins(PluginManager.java:536)
at im.turms.server.common.infra.plugin.PluginManager.onApplicationEvent(PluginManager.java:162)
at im.turms.server.common.infra.plugin.PluginManager.onApplicationEvent(PluginManager.java:82)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:437)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:370)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:961)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:611)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:310)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1304)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1293)
at im.turms.server.common.BaseTurmsApplication.bootstrap(BaseTurmsApplication.java:54)
at im.turms.service.TurmsServiceApplication.main(TurmsServiceApplication.java:34)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(native)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(unknown)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(unknown)
at java.lang.reflect.Method.invoke(unknown)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
caused by: java.lang.IllegalStateException: Timeout on blocking read for 60000000000 NANOSECONDS
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:123)
at reactor.core.publisher.Mono.block(Mono.java:1734)
at im.turms.plugin.minio.MinioStorageServiceProvider.setUp(MinioStorageServiceProvider.java:194)
at im.turms.plugin.minio.MinioStorageServiceProvider.onStarted(MinioStorageServiceProvider.java:160)
at im.turms.server.common.infra.plugin.TurmsExtension.start(TurmsExtension.java:100)
at im.turms.server.common.infra.plugin.Plugin.lambda$start$0(Plugin.java:56)
at im.turms.server.common.infra.exception.ThrowableUtil.delayError(ThrowableUtil.java:92)
at im.turms.server.common.infra.plugin.Plugin.start(Plugin.java:66)
at im.turms.server.common.infra.exception.ThrowableUtil.delayError(ThrowableUtil.java:92)
at im.turms.server.common.infra.plugin.PluginManager.startPlugins(PluginManager.java:549)
at im.turms.server.common.infra.plugin.PluginManager.startPlugins(PluginManager.java:536)
at im.turms.server.common.infra.plugin.PluginManager.onApplicationEvent(PluginManager.java:162)
at im.turms.server.common.infra.plugin.PluginManager.onApplicationEvent(PluginManager.java:82)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:437)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:370)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:961)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:611)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:310)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1304)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1293)
at im.turms.server.common.BaseTurmsApplication.bootstrap(BaseTurmsApplication.java:54)
at im.turms.service.TurmsServiceApplication.main(TurmsServiceApplication.java:34)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(native)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(unknown)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(unknown)
at java.lang.reflect.Method.invoke(unknown)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
from turms.
This may happen if the MongoDB server for storage is not running.
And If you use docker-compose.standalone.yml
to run, you can add -Dturms-plugin.minio.mongo.uri=mongodb://localhost:27017/turms
(point to your MongoDB server) in TURMS_SERVICE_JVM_OPTS
env var to specify the MongoDB server used for storage, and try to run again.
from turms.
if config -Dturms-plugin.minio.mongo.uri=mongodb://localhost:27017/turms
there will be mongo db connect error, and I change to -Dturms-plugin.minio.mongo.uri=mongodb://mongodb-router:27017/turms-standalone?authSource=admin
error gone, but minio still can not connect, I'm sure mino localhost/127.0.0.1:9000 is connectable, and
added access key and access secret to default "minioadmin"
Full error log:
turms-service_20230618_0.log
from turms.
As the logs print: Failed to connect to localhost/127.0.0.1:9000
, it usually happens if you run the minio server and turms-service in different network environments, so you can just configure turms-plugin.minio.endpoint
to your minio server address (e.g. http://minio:9000
), and it should work.
btw you need to read the logs so that you can fix the basic problems yourselves.
from turms.
Related Issues (20)
- Use latest code deploy server meet error HOT 8
- unknown ip address show in admin api HOT 1
- When config advertise-strategy=public_address, start turms-gateway report "The IP address (x.x.x.x) is not a site local IP address" HOT 1
- Support developer's custom cluster service implementations HOT 1
- Support tracking user behaviors
- Support hidden group members
- New verison of minio cause upload from client 403 HOT 3
- Add system tests for `turms-plugin-minio`
- Add doc on Turms maintainability
- Add a dedicated logs formatter for `InternalLogger`
- update typing status only work in privateconversaiton HOT 1
- How do I enable ssl authentication on a dart client
- How to remove related user from relationGroup but keep private relationship? HOT 2
- TurmsService start fail HOT 8
- Information consultation HOT 1
- Support deduplicating files
- Support network proxy
- Support plugin system
- about ldap HOT 2
- about ldap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turms.