Re: [DISCUSS][VOTE] Release Apache Log4j `2.25.0` (RC1)
On Sat, Jun 14, 2025 at 3:09 AM Piotr P. Karwasz wrote: > > Hi Gary, > > On 14.06.2025 03:22, Gary Gregory wrote: > > Running: > > > > mvn clean verify -Pdocker > > > > I.get: > > > > [INFO] DOCKER> Pulling from library/elasticsearch > > [INFO] DOCKER> Digest: > > sha256:2cc40b15dff85281ac804e7ff27cbc07b31fdd542e94ea7a2bdb6470e3b6bb68 > > [INFO] DOCKER> Status: Downloaded newer image for elasticsearch:8.17.3 > > [INFO] DOCKER> Pulled elasticsearch:8.17.3 in 29 seconds > > [INFO] DOCKER> Pulling from library/logstash > > [INFO] DOCKER> Digest: > > sha256:01feca1dd93ae1c7b0d16d6a7ec08070d13a2e9af16cba88ea916600af8ea8b8 > > [INFO] DOCKER> Status: Downloaded newer image for logstash:8.17.3 > > [INFO] DOCKER> Pulled logstash:8.17.3 in 27 seconds > > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Start container > > e514938157d8 > > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Network mode: > > log4j-layout-template-json-network > > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Waiting for > > ports [9200] directly on container with IP (172.19.0.2). > > [ERROR] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Timeout after > > 60736 ms while waiting on tcp port '[/172.19.0.2:9200]' > > [ERROR] DOCKER> Error occurred during container startup, shutting down... > > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Stop and > > removed container e514938157d8 after 0 ms > > [ERROR] DOCKER> I/O Error [[elasticsearch:8.17.3] "elasticsearch": > > Timeout after 60736 ms while waiting on tcp port '[/172.19.0.2:9200]'] > > According to plugin documentation[1], you can print the logs from the > container to the console by adding: > > -Ddocker.showLogs=true > > (perhaps -Ddocker.showLogs works too). > > I hope this helps you debug what is going on during the ElasticSearch > startup. It appears that port 9200 is published in Docker, but it doesn't seem to be visible outside of Docker, maybe. See https://gist.github.com/garydgregory/a83914942faa2d904bd16966559d07bc Does that ring a bell? Ty, Gary > > Note that unlike the `log4j-mongodb` tests, the integration tests in > `log4j-layout-template-json` are not essential for the main capability > of the module. They only verify that the ECS template we distribute is > compatible with the newest version of ElasticSearch. > > The ITs for ElasticSearch succeeded in the Ubuntu CI build and on my > Debian 12. > > Piotr > > [1] https://dmp.fabric8.io/#start-configuration
Re: [DISCUSS][VOTE] Release Apache Log4j `2.25.0` (RC1)
Hi Gary, On 14.06.2025 13:00, Gary Gregory wrote: > On Sat, Jun 14, 2025 at 3:09 AM Piotr P. Karwasz > wrote: >> I hope this helps you debug what is going on during the ElasticSearch >> startup. > > It appears that port 9200 is published in Docker, but it doesn't seem > to be visible outside of Docker, maybe. > > See https://gist.github.com/garydgregory/a83914942faa2d904bd16966559d07bc > > Does that ring a bell? Unfortunately, I don’t see any significant differences between your startup logs and mine. On my setup, it ends with: [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Waited on tcp port '[/172.19.0.2:9200]' 6521 ms Whereas yours ends in a timeout: [ERROR] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Timeout after 60739 ms while waiting on tcp port '[/172.19.0.2:9200]' As for the port binding, the Docker Maven Plugin is configured to bind the container port 9200 to an ephemeral host port, assigning it to the `elasticsearch.port` Maven property: localhost:elasticsearch.port:9200 This assumes that the Docker host is accessible via `localhost`, which is valid on Linux, but may not hold on macOS. You might want to try omitting the host name altogether: elasticsearch.port:9200 If that works, please submit a PR to fix the issue in `log4j-layout-template-json` and `log4j-mongodb`. Piotr
Re: [DISCUSS][VOTE] Release Apache Log4j `2.25.0` (RC1)
On Sat, Jun 14, 2025 at 11:27 AM Piotr P. Karwasz wrote: > > Hi Gary, > > On 14.06.2025 13:00, Gary Gregory wrote: > > On Sat, Jun 14, 2025 at 3:09 AM Piotr P. Karwasz > > wrote: > >> I hope this helps you debug what is going on during the ElasticSearch > >> startup. > > > > It appears that port 9200 is published in Docker, but it doesn't seem > > to be visible outside of Docker, maybe. > > > > See https://gist.github.com/garydgregory/a83914942faa2d904bd16966559d07bc > > > > Does that ring a bell? > > Unfortunately, I don’t see any significant differences between your > startup logs and mine. On my setup, it ends with: > > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Waited on tcp > port '[/172.19.0.2:9200]' 6521 ms > > Whereas yours ends in a timeout: > > [ERROR] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Timeout after > 60739 ms while waiting on tcp port '[/172.19.0.2:9200]' > > As for the port binding, the Docker Maven Plugin is configured to bind > the container port 9200 to an ephemeral host port, assigning it to the > `elasticsearch.port` Maven property: > > > > localhost:elasticsearch.port:9200 > > > This assumes that the Docker host is accessible via `localhost`, which > is valid on Linux, but may not hold on macOS. > > You might want to try omitting the host name altogether: > > > > elasticsearch.port:9200 > Sadly, no love using: elasticsearch.port:9200 [ES]{"@timestamp":"2025-06-14T16:15:37.506Z", "log.level": "INFO", "message":"closing ...", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch-shutdown","log.logger":"org.elasticsearch.node.Node","elasticsearch.cluster.uuid":"GLSBe1MIRiSH5-Yn083k7Q","elasticsearch.node.id":"ABZT_d4JQbSOLCZlEemDdQ","elasticsearch.node.name":"af7394eff833","elasticsearch.cluster.name":"docker-cluster"} [ES]{"@timestamp":"2025-06-14T16:15:37.512Z", "log.level": "INFO", "message":"closed", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch-shutdown","log.logger":"org.elasticsearch.node.Node","elasticsearch.cluster.uuid":"GLSBe1MIRiSH5-Yn083k7Q","elasticsearch.node.id":"ABZT_d4JQbSOLCZlEemDdQ","elasticsearch.node.name":"af7394eff833","elasticsearch.cluster.name":"docker-cluster"} [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Stop and removed container af7394eff833 after 0 ms [ERROR] DOCKER> I/O Error [[elasticsearch:8.17.3] "elasticsearch": Timeout after 60723 ms while waiting on tcp port '[/172.19.0.2:9200]'] :( Gary > > If that works, please submit a PR to fix the issue in > `log4j-layout-template-json` and `log4j-mongodb`. > > Piotr
[DISCUSS][VOTE] Release Apache Log4j `2.25.0` (RC1)
Hi Gary, On 14.06.2025 03:22, Gary Gregory wrote: > Running: > > mvn clean verify -Pdocker > > I.get: > > [INFO] DOCKER> Pulling from library/elasticsearch > [INFO] DOCKER> Digest: > sha256:2cc40b15dff85281ac804e7ff27cbc07b31fdd542e94ea7a2bdb6470e3b6bb68 > [INFO] DOCKER> Status: Downloaded newer image for elasticsearch:8.17.3 > [INFO] DOCKER> Pulled elasticsearch:8.17.3 in 29 seconds > [INFO] DOCKER> Pulling from library/logstash > [INFO] DOCKER> Digest: > sha256:01feca1dd93ae1c7b0d16d6a7ec08070d13a2e9af16cba88ea916600af8ea8b8 > [INFO] DOCKER> Status: Downloaded newer image for logstash:8.17.3 > [INFO] DOCKER> Pulled logstash:8.17.3 in 27 seconds > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Start container > e514938157d8 > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Network mode: > log4j-layout-template-json-network > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Waiting for > ports [9200] directly on container with IP (172.19.0.2). > [ERROR] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Timeout after > 60736 ms while waiting on tcp port '[/172.19.0.2:9200]' > [ERROR] DOCKER> Error occurred during container startup, shutting down... > [INFO] DOCKER> [elasticsearch:8.17.3] "elasticsearch": Stop and > removed container e514938157d8 after 0 ms > [ERROR] DOCKER> I/O Error [[elasticsearch:8.17.3] "elasticsearch": > Timeout after 60736 ms while waiting on tcp port '[/172.19.0.2:9200]'] According to plugin documentation[1], you can print the logs from the container to the console by adding: -Ddocker.showLogs=true (perhaps -Ddocker.showLogs works too). I hope this helps you debug what is going on during the ElasticSearch startup. Note that unlike the `log4j-mongodb` tests, the integration tests in `log4j-layout-template-json` are not essential for the main capability of the module. They only verify that the ECS template we distribute is compatible with the newest version of ElasticSearch. The ITs for ElasticSearch succeeded in the Ubuntu CI build and on my Debian 12. Piotr [1] https://dmp.fabric8.io/#start-configuration