elasticmq icon indicating copy to clipboard operation
elasticmq copied to clipboard

1.3.0 docker image breaks custom elasticmq.conf

Open VTLee opened this issue 5 years ago • 9 comments

Following the readme, we essentially start a container with the following command:

docker run --rm -v `pwd`/elasticmq.conf:/opt/elasticmq.conf softwaremill/elasticmq

the elasticmq.conf file we pass in is:

include classpath("application.conf")

queues {
    void { }
}

In 1.3.0, this is the output (note the lack of acknowledgement of the queue being created)

16:42:14.157 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (1.3.0) ...
16:42:14.746 [elasticmq-akka.actor.default-dispatcher-4] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
16:42:15.874 [elasticmq-akka.actor.default-dispatcher-4] INFO  o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:9324, visible server address http://localhost:9324
16:42:16.028 [elasticmq-akka.actor.default-dispatcher-4] INFO  o.e.r.s.TheStatisticsRestServerBuilder - Started statistics rest server, bind address 0.0.0.0:9325
16:42:16.029 [main] INFO  org.elasticmq.server.Main$ - === ElasticMQ server (1.3.0) started in 2397 ms ===

If i run the following command to use 1.2.3 instead:

docker run --rm -v `pwd`/elasticmq.conf:/opt/elasticmq.conf softwaremill/elasticmq:1.2.3

The queue is made correctly:

16:42:39.347 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (1.2.3) ...
16:42:39.960 [elasticmq-akka.actor.default-dispatcher-5] INFO  akka.event.slf4j.Slf4jLogger - Slf4jLogger started
16:42:41.086 [elasticmq-akka.actor.default-dispatcher-7] INFO  o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:9324, visible server address http://localhost:9324
16:42:41.218 [elasticmq-akka.actor.default-dispatcher-7] INFO  o.e.r.s.TheStatisticsRestServerBuilder - Started statistics rest server, bind address 0.0.0.0:9325
16:42:41.291 [elasticmq-akka.actor.default-dispatcher-7] INFO  o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(void,MillisVisibilityTimeout(30000),PT0S,PT0S,2021-10-19T16:42:41.244Z,2021-10-19T16:42:41.244Z,None,false,false,None,None,Map())
16:42:41.328 [main] INFO  org.elasticmq.server.Main$ - === ElasticMQ server (1.2.3) started in 2499 ms ===

Looks like there's something in 1.3.0 that breaks this, and the Readme has not been updated on how to insert custom conf files (or this break was not intended?)

VTLee avatar Oct 19 '21 16:10 VTLee

I am having the same issue as @VTLee and it works with previous version (1.2.3) as well.

Arnaud44477 avatar Oct 19 '21 18:10 Arnaud44477

Same here - I've also checked if this is perhaps a regression to the old /opt/docker/elasticmq.conf path - and it's not.

nluk avatar Oct 20 '21 09:10 nluk

Same here

saimageshvar avatar Oct 20 '21 10:10 saimageshvar

Puh, thought it was a configuration error. Same here!

sfaujour avatar Oct 20 '21 12:10 sfaujour

Can the :latest tag for non-native elasticmq be pushed back to the 1.2.3 release until a fixed 1.3.x can be published?

VTLee avatar Oct 20 '21 13:10 VTLee

@VTLee also removed the 1.3.0 tag for the non-native version

adamw avatar Oct 20 '21 13:10 adamw

Thank you @adamw ! Do you want this issue to remain open to track fixing the root cause in 1.3 ?

VTLee avatar Oct 20 '21 14:10 VTLee

Yes sure, leave it open, it needs fixing :)

adamw avatar Oct 20 '21 14:10 adamw

Should be fixed in 1.3.1. Please test, and please excuse us for the inconvenience :)

adamw avatar Oct 21 '21 12:10 adamw