I stopped the Solr by using

 * /sudo /opt/solr/bin/solr stop -force/

Then tried using restarting by using:

 * /sudo service solr start
   /
 * /sudo systemctl start/

The results of both commands indicated that solr started but I could not get to the admin ui.

Checked the process id, indicated from the results but there was none.

Based on what Shawn said, I must have overridden the service name but I can't image how and when, seeing that they once worked.

Funny enough, if I start the Solr using

 * /sudo /opt/solr/bin/solr stop -force/

The stop it using:

 * /sudo service solr stop/

It stops.

Can someone please advise?/
/

Thanks/./

/
/

/
/

On 2024-05-26 14:24, Shawn Heisey wrote:
On 5/22/24 10:16, Lee Daniel wrote:
  * Upon installing Apache Solr, a user */solr/* was automatically created.
      o Running Solr through from the root is not recommend and will
        terminate unless `-force` is used.
  * If I switch accounts `su solr`/*, */run `/opt/solr/bin/solr start`,
    I then get prompted for a password.
      o Apparently, I cannot find any default password anywhere and it's
        not the root.
          + It's not `solrocks` or `SolrRocks`.
      o I have went through the installation .sh file but can't find any
        password set during creation.

When you install Solr, the service starts as root just like every other service, and switches to the unprivileged user as part of startup.  This switch happens in the service script, not in the solr script.

What happens if you type this command?

sudo service solr restart

This assumes that when you installed Solr that you did not override the service name.  If you did, then you will have to change "solr" in that command to the actual service name you used.

You should not be calling the solr script directly, even as the solr user.  Ran in this way, it will not be configured correctly even if it does start ... and chances are that it won't even start.

The installation script creates the solr user without a working password, not even a blank password.

Thanks,
Shawn

Reply via email to