You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/03/31 13:53:19 UTC

[GitHub] [bookkeeper] eolivelli opened a new issue #3165: Bookie does not show logs in 4.15.0rc0

eolivelli opened a new issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165


   **BUG REPORT**
   
   ***Describe the bug***
   
   It looks like in BK 4.15.0rc0 the bookie does not log anything.
   We still have log4j1 configuration files in "conf" and we are not setting "log4j.configurationFile" (but log4j.configuration) in the shell scripts
   
   https://logging.apache.org/log4j/2.x/manual/configuration.html
   
   ***To Reproduce***
   
   Unpack the binary tarball and then run `bin/bookkeeper localbookie 3`
   
   ***Expected behavior***
   
   A clear and concise description of what you expected to happen.
   
   ***Screenshots***
   
   The logs show up
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] eolivelli commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1085610090


   According to the log4j2 documentation if we set the old system property log4j2 should behave like log41 
   https://logging.apache.org/log4j/2.x/manual/migration.html
   
   
   ![image](https://user-images.githubusercontent.com/9469110/161226999-d1e8d30c-2f0c-48ac-a4fd-48868a20d546.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] hangc0276 edited a comment on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
hangc0276 edited a comment on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1086535025


   Thanks for you reply @RaulGracia .  I test https://github.com/apache/bookkeeper/issues/2837 by update the log4j version from 2.14.1 to 2.17.1, It only print few logs out. But use log4j 2.14.1  works well.
   
   The detail log paste here: https://github.com/apache/bookkeeper/pull/2816#issuecomment-1086538721


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Shoothzj commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
Shoothzj commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1085421534


   I change the params in `common.sh`, but it's still no log out


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] RaulGracia commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
RaulGracia commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1086110467


   Thanks @hangc0276, I agree with you. I remember testing logging with PR #2816 and the follow-up PR #2837. Anyway, I just checked out the project on commit `6e3c82cbfba7e75b946075a65c16cb390c09f9a6` (PR #2837) and logging seems to be working fine:
   ```
   $ bin/bookkeeper localbookie 1
   2022-04-01T18:18:16,114 - INFO  - [main:LocalBookKeeper@458] - Using configuration file /home/raul/Documents/workspace/bookkeeper-log4j2-config-issue/bookkeeper/bookkeeper-dist/server/target/bookkeeper-server-4.15.0-SNAPSHOT/conf/bk_server.conf
   2022-04-01T18:18:16,121 - INFO  - [main:LocalBookKeeper@90] - Running 1 bookie(s) on zk ensemble = '127.0.0.1:2181'.
   2022-04-01T18:18:16,123 - INFO  - [main:LocalBookKeeper@120] - Starting ZK server
   2022-04-01T18:18:16,128 - INFO  - [main:ZookeeperBanner@42] - 
   2022-04-01T18:18:16,128 - INFO  - [main:ZookeeperBanner@42] -   ______                  _                                          
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -  |___  /                 | |                                         
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -     / /    ___     ___   | | __   ___    ___   _ __     ___   _ __   
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -    / /    / _ \   / _ \  | |/ /  / _ \  / _ \ | '_ \   / _ \ | '__|
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -   / /__  | (_) | | (_) | |   <  |  __/ |  __/ | |_) | |  __/ | |    
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -  /_____|  \___/   \___/  |_|\_\  \___|  \___| | .__/   \___| |_|
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -                                               | |                     
   2022-04-01T18:18:16,129 - INFO  - [main:ZookeeperBanner@42] -                                               |_|                     
   2022-04-01T18:18:16,130 - INFO  - [main:ZookeeperBanner@42] - 
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server environment:zookeeper.version=3.6.2--803c7f1a12f85978cb049af5e4ef23bd8b688715, built on 09/04/2020 12:44 GMT
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server environment:host.name=ignatius
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server environment:java.version=11.0.14.1
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server environment:java.vendor=Ubuntu
   2022-04-01T18:18:16,131 - INFO  - [main:Environment@98] - Server environment:java.home=/usr/lib/jvm/java-11-openjdk-amd64
   ```
   However, when doing the same exact experiment with last `branch-4.15` commit, I can confirm that logging is not working:
   ```
   $ bin/bookkeeper localbookie 1
   2022-04-01T15:38:45,252 - WARN  - [main:ServerCnxnFactory@309] - maxCnxns is not configured, using default value 0.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] eolivelli commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1085843856


   we could:
   - add the Log41 bridge (is is a separate jar?)
   - switch to reload4j
   - convert the configuration files to log4j2 format (YAML)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Shoothzj commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
Shoothzj commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1085891446


   I suggest convert the configuration files to log4j2 format (YAML). I can work on this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] eolivelli commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1085861198


   basically we should move forward with the work started here https://github.com/apache/bookkeeper/pull/2816


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] hangc0276 commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1086011592


   This PR https://github.com/apache/bookkeeper/pull/2816 use log41 bridge to support log4j, and it works well. The root cause of can't log anything is introduced by https://github.com/apache/bookkeeper/pull/3130 . I'm working on fix it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] hangc0276 commented on issue #3165: Bookie does not show logs in 4.15.0rc0

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on issue #3165:
URL: https://github.com/apache/bookkeeper/issues/3165#issuecomment-1086535025


   Thanks for you reply @RaulGracia .  I test https://github.com/apache/bookkeeper/issues/2837 by update the log4j version from 2.14.1 to 2.17.1, It only print few logs out. But use log4j 2.14.1  works well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org