Re: Custom assembly issues

2021-12-16 Thread Felix Ingram
Hi Benoit,

> On 13 Dec 2021, at 07:38, btell...@apache.org wrote:
> 
> Hello Felix,
> 
> On 12/12/2021 04:47, Felix Ingram wrote:
>> Hello all,
>> 
>> I'm trying to create a custom server assembly. I've started by trying to
>> recreate the distributed app from here:
>> james-project/CassandraRabbitMQJamesServerMain.java
>> at master · apache/james-project (github.com)
>> 
>> 
>> This compiles  okay but I get an error about a bad request to ElasticSearch
>> when trying to start up the metrics.
>> 
>> I can get rid of this by removing the ElasticSearchMetricReporterModule
>> from the build but then the server just hangs while loading its config.
> 
> This should have no impact on the startup.

This seemed odd. In the logs there was a line from the Elastic container saying 
that the parameter being sent by James was deprecated. This was logged as a 
warning, rather than an error though. The next line in the logs was from James 
saying that it had had a 400 response from Elastic, and therefore was exiting.

> 
>> The
>> final line in the logs is:
>> 
>> 21:35:48.208 [INFO ] o.a.j.CONFIGURATION - Load configuration file
>> /root/conf/webadmin.properties
>> 
>> Otherwise there's no clues as to what it's doing. I'm running it under
>> docker-compose using the compose file from the server/apps/distributed-app
>> directory. There are a couple of errors about connecting to Cassandra but
>> these are just while the server boots - once Cassandra starts it seems okay.
> 
> you can play with logback.xml to setup the logging level.
> 
> But I suspect you have another failure somewhere aborting / hanging the
> boot...

I thought I’d tweaked the logging level but I wasn’t seeing any additional 
output. Seems like this is the week to learn all about log4j though, so I’ll do 
some more reading and experimenting.


>> 
>> Is there a way to increase the logging or some other way to find out
>> what's happening?
> Setting up a custom assembly server is an advanced topic. While I can
> answer a few question on this ML on a pretty informal way, I can provide
> support if you need to.

My ultimate aim is to have something with JMAP support, which is why I started 
with the distributed app example. However, I’ve switched to the Cassandra-app 
example and that seems to be compiling and running okay. Next step is to add in 
my own custom module to replace the Cassandra domainlist. If I can get that 
working then I’ll try and add in S3 blob storage similar to what’s in the 
distributed app.

I appreciate that this is an advanced topic, so thanks for your help and 
patience. Doubly so as I believe you’re supposed to be on holiday at the moment 
:-D

Regards,

Felix


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



Re: Custom assembly issues

2021-12-12 Thread btell...@apache.org
Hello Felix,

On 12/12/2021 04:47, Felix Ingram wrote:
> Hello all,
>
> I'm trying to create a custom server assembly. I've started by trying to
> recreate the distributed app from here:
> james-project/CassandraRabbitMQJamesServerMain.java
> at master · apache/james-project (github.com)
> 
>
> This compiles  okay but I get an error about a bad request to ElasticSearch
> when trying to start up the metrics.
>
> I can get rid of this by removing the ElasticSearchMetricReporterModule
> from the build but then the server just hangs while loading its config.

This should have no impact on the startup.


>  The
> final line in the logs is:
>
> 21:35:48.208 [INFO ] o.a.j.CONFIGURATION - Load configuration file
> /root/conf/webadmin.properties
>
> Otherwise there's no clues as to what it's doing. I'm running it under
> docker-compose using the compose file from the server/apps/distributed-app
> directory. There are a couple of errors about connecting to Cassandra but
> these are just while the server boots - once Cassandra starts it seems okay.

you can play with logback.xml to setup the logging level.

But I suspect you have another failure somewhere aborting / hanging the
boot...

>
> Is there a way to increase the logging or some other way to find out
> what's happening?
Setting up a custom assembly server is an advanced topic. While I can
answer a few question on this ML on a pretty informal way, I can provide
support if you need to.
>
> Thanks in advance,
>
> Felix
>

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