streamnative / pulsar-manager

A tool for managing Apache Pulsar.
Apache License 2.0
12 stars 3 forks source link

ISSUE-432: While logging to pulsar admin which says username or password are incorrect . #237

Open sijie opened 2 years ago

sijie commented 2 years ago

Original Issue: apache/pulsar-manager#432


Below steps i followed

For installing pulsar-manager :

  1. docker pull apachepulsar/pulsar-manager:v0.2.0
  2. docker run -it \ -p 9527:9527 -p 7750:7750 \ -e SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties \ -e URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' \ -e USERNAME=pulsar \ -e PASSWORD=postgres \ --link pulsar-standalone \ apachepulsar/pulsar-manager:v0.2.0

    Pulsar manager installed successfully . Then i need to set administrator account and password , for that i followed below command

CSRF_TOKEN=$(curl http://localhost:7750/pulsar-manager/csrf-token) curl \ -H "X-XSRF-TOKEN: $CSRF_TOKEN" \ -H "Cookie: XSRF-TOKEN=$CSRF_TOKEN;" \ -H "Content-Type: application/json"\ -X PUT http://localhost:7750/pulsar-manager/users/superuser \ -d "{"name": "admin", "password": "apachepulsar", "description": "test", "email": "username@test.org"}"

After this step , i hit this url http://127.0.0.1:9527 in browser and logging with credentials ( admin/apachepulsar ) . But it says incorrect username or password .

FYI , But this issue is not happened when i am using pulsar-manager v0.1.0 . Here i am able to login with ( pulsar/pulsar ). For this v0.1.0 , i didn't use the command to set account and password because by default ( pulsar/pulsar ) are the credentials .

Please help me on this issue .