[ 
https://issues.apache.org/jira/browse/JAMES-4053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17870912#comment-17870912
 ] 

René Cordier commented on JAMES-4053:
-------------------------------------

Hi [~kk62335131] 

Not sure about opensearch, the log for cassandra suggests that James managed to 
connect to it but got a timeout during the initialization of tables. Those 
operations can be heavy. Is your machine beefy enough? How did you run 
cassandra and Opensearch locally? You might need to adapt conf.

 

If you don't want to bother with local ip addresses you can expose the 
cassandra and opensearch ports as well locally, so you could access them 
directly via lcoalhost, like exposing 9200 for opensearch => 
http://localhost:9200

> Unable to start james-server-distributed-guice-3.8.0
> ----------------------------------------------------
>
>                 Key: JAMES-4053
>                 URL: https://issues.apache.org/jira/browse/JAMES-4053
>             Project: James Server
>          Issue Type: Bug
>          Components: cassandra, opensearch
>    Affects Versions: 3.8.0
>            Reporter: umapyl
>            Priority: Blocker
>              Labels: ubuntu
>
> We use default configuration (we change the host addresses to 0.0.0.0 
> otherwise we will get errors like "java.net.UnknownHostException: cassandra") 
> to start james-server-distributed-guice-3.8.0 downloaded from [Earlier 
> Releases|https://archive.apache.org/dist/james/server/3.8.0/] [Earlier 
> Releases|https://archive.apache.org/dist/james/server/3.8.0/] but getting 
> failed when connecting to opensearch. The log is
>  
> {code:java}
> [DEBUG] o.o.c.RestClient - request [GET http://0.0.0.0:9200/] failed
> org.apache.http.ConnectionClosedException: Connection is closed
>     at 
> org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:356)
>     at 
> org.apache.http.impl.nio.client.InternalRequestExecutor.endOfInput(InternalRequestExecutor.java:132)
>     at 
> org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:261)
>  {code}
>  
>  
> We still fail to connect to cassandra with error as
>  
> {code:java}
> 1) [Guice/ErrorInCustomProvider]: DriverTimeoutException: Query timed out 
> after PT10S
>   at 
> CassandraSessionModule.provideSessionFactory(CassandraSessionModule.java:91)
>       \_ installed by: Modules$OverrideModule -> Modules$CombinedModule -> 
> Modules$CombinedModule -> Modules$CombinedModule -> Modules$CombinedModule -> 
> Modules$CombinedModule -> Modules$CombinedModule -> Modules$CombinedModule -> 
> Modules$CombinedModule -> Modules$CombinedModule -> Modules$OverrideModule -> 
> Modules$CombinedModule -> Modules$CombinedModule -> CassandraSessionModule
>   while locating SessionWithInitializedTablesFactory
>   at CassandraDomainList.<init>(CassandraDomainList.java:52)
>       \_ for 2nd parameter
>   at CassandraDomainListModule.configure(CassandraDomainListModule.java:41) 
> {code}
>  
>  
> We are using java 11 and Ubuntu 22.04. Is there anything we could do to fix 
> this error?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to