I'm running solr 8.11.2 on a single server. I have the server configured to support basic authentication, which works fine when I connect to the server on port 8983 using a web browser. The problem I'm having is that the command fails with an "HTTP ERROR 401 require authentication" error when I try to run the "solr status" command from the command line of my server machine:
me@myserver:/opt/solr$ sudo -u solr ./bin/solr status [sudo] password for me: Found 1 Solr nodes: Solr process 1534364 running on port 8983 INFO - 2023-09-23 08:54:37.511; org.apache.solr.util.configuration.SSLConfigurations; Setting javax.net.ssl.keyStorePassword INFO - 2023-09-23 08:54:37.519; org.apache.solr.util.configuration.SSLConfigurations; Setting javax.net.ssl.trustStorePassword ERROR: Failed to get system information from https://localhost:8983/solr due to: org.apache.solr.common.SolrException: Parse error : <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 401 require authentication</title> </head> <body><h2>HTTP ERROR 401 require authentication</h2> <table> <tr><th>URI:</th><td>/solr/admin/info/system</td></tr> <tr><th>STATUS:</th><td>401</td></tr> <tr><th>MESSAGE:</th><td>require authentication</td></tr> <tr><th>SERVLET:</th><td>default</td></tr> </table> </body> </html> me@myserver:/opt/solr$ The status command does not accept parameters. How can I provide the user name and password for basic authentication when running the status command?