Miscellaneous

Solr on Azure – Password Not Working

June 16, 2019

I was playing around with Azure this afternoon and when I created a Solr resource I found myself unable to login after it was created. I was using the username and password I had entered during the setup, yet it was not accepting it.

It was only after a bit of digging around that I discovered that the SOlr username and password had nothing to do with what you set in that field. Your default username will be ‘user’ and to get your password, well, you’ll have to dig through the logs for that one.

If you’d prefer to watch a video of this, here’s the one from Bitnami:

  1. Go to Virtual Machines
  2. Select the VM for your Solr resource
  3. Select Boot Diagnostics
  4. Click the Serial Log tab
  5. Search for the word password in the log until you find a block of text like this:
2019/06/16 17:24:51.040648 INFO ExtHandler Set block dev timeout: sdb with timeout: 300
2019/06/16 17:24:51.045954 INFO ExtHandler Set block dev timeout: sda with timeout: 300
[   28.664566] bitnami[1499]: ## 2019-06-16 17:24:51+00:00 ## INFO ## 443 has been blocked
[   28.878305] bitnami[1499]: #########################################################################
[   28.880936] bitnami[1499]: #                                                                       #
[   28.891076] bitnami[1499]: #        Setting Bitnami application password to 'YOUR_PASSWORD'         #
[   28.891740] bitnami[1499]: #        (the default application username is 'user')                   #
[   28.899330] bitnami[1499]: #                                                                       #
[   28.899943] bitnami[1499]: #########################################################################
[   28.968613] bitnami[1499]: [Sun Jun 16 17:24:51 UTC 2019] Regenerating keys for apache2

I personally was unable to search the text in the browser and found it easier to copy and paste into notepad and search there. But you may find your browser to be more co-operative.

Now use that passsword and the username ‘user’ to log into Solr. Voila!

Though why it couldn’t use use the one you entered during the setup is beyond me.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.