BajrangDubeyPersistent commented on issue #15351:
URL: https://github.com/apache/pulsar/issues/15351#issuecomment-1114654736

   I am using apachepulsar/pulsar-all:2.5.0 docker image to run pulsar. 
Everything is running well because I have tried all pulsar functions using this 
image only. While doing some changes in conf files taken from sijie's repo: 
https://github.com/streamnative/tgip/tree/master/episodes/001/conf and making 
changes to implement authentication using TLS as mentioned in official 
documentation https://pulsar.apache.org/docs/en/security-tls-transport/ and 
https://pulsar.apache.org/docs/en/security-tls-authentication/, I faced 
mentioned issues.
   The broker got exited as these changes were made and logs show these details 
for exited broker container:
   
   1. ERROR org.apache.pulsar.common.util.FileModifiedTimeUpdater - Unable to 
fetch lastModified time for file /home/bajrang_dubey/my-ca/certs/ca.cert.pem:
   java.nio.file.NoSuchFileException: 
/home/bajrang_dubey/my-ca/certs/ca.cert.pem
   Same for all 3 certificates: broker.cert.pem, broker.key-pk8.pem, ca.cert.pem
   
   2. After regular tries, it shows this: ERROR 
org.apache.pulsar.common.util.SslContextAutoRefreshBuilder - Execption while 
trying to refresh ssl Context Certificate loading error
   java.security.KeyManagementException: Certificate loading error
           at 
org.apache.pulsar.common.util.SecurityUtility.loadCertificatesFromPemFile(SecurityUtility.java:179)
 ~[org.apache.pulsar-pulsar-common-2.5.0.jar:2.5.0]
   
   3. ERROR org.apache.pulsar.broker.PulsarService - 
java.lang.NullPointerException
   org.apache.pulsar.broker.PulsarServerException: 
java.lang.NullPointerException
   ERROR org.apache.pulsar.PulsarBrokerStarter - Failed to start pulsar service.
   org.apache.pulsar.broker.PulsarServerException: 
org.apache.pulsar.broker.PulsarServerException: java.lang.NullPointerException
   
   4. Will not attempt to authenticate using SASL (unknown error)
   
   These are 4 errors that I can see in broker container logs, couldn't find 
apt solution to it. Please help me if I am missing something here as I am stuck 
here for quite some time.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to