freedev opened a new pull request, #2225: URL: https://github.com/apache/solr/pull/2225
https://issues.apache.org/jira/browse/SOLR-17112 <!-- _(If you are a project committer then you may remove some/all of the following template.)_ Before creating a pull request, please file an issue in the ASF Jira system for Solr: * https://issues.apache.org/jira/projects/SOLR For something minor (i.e. that wouldn't be worth putting in release notes), you can skip JIRA. To create a Jira issue, you will need to create an account there first. The title of the PR should reference the Jira issue number in the form: * SOLR-####: <short description of problem or changes> SOLR must be fully capitalized. A short description helps people scanning pull requests for items they can work on. Properly referencing the issue in the title ensures that Jira is correctly updated with code review comments and commits. --> # Description in google colab with linux ubuntu 22.04 the command returns an error: bin/solr package add-repo data-import-handler "https://raw.githubusercontent.com/searchscale/dataimporthandler/master/repo/" returns an error: ``` Solr process 5377 from /content/solr-9.4.1/bin/solr-8983.pid not found. java.lang.IllegalArgumentException: Invalid URI host: null (authority: null) at org.eclipse.jetty.client.HttpRequest.<init>(HttpRequest.java:102) at org.eclipse.jetty.client.HttpClient.newHttpRequest(HttpClient.java:471) at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:461) at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:450) at org.apache.solr.client.solrj.impl.Http2SolrClient.makeRequestAndSend(Http2SolrClient.java:688) at org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:529) at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1192) at org.apache.solr.cli.PackageTool.getZkHost(PackageTool.java:372) at org.apache.solr.cli.PackageTool.runImpl(PackageTool.java:90) at org.apache.solr.cli.ToolBase.runTool(ToolBase.java:52) at org.apache.solr.cli.SolrCLI.main(SolrCLI.java:153) ERROR: Invalid URI host: null (authority: null) ``` the error was due to `ps` shell command in `function jetty_port()` # Solution It is a two liner fix coming from @epugh. adding the `ww` parameter to `ps` shell command fixed the problem. I have just added to bin/solr, tested with google colab and created the PR. # Tests I was able to replicate the error and tested the fix in google colab # Checklist Please review the following and check all that apply: - [X] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. - [] I have created a Jira issue and added the issue ID to my pull request title. - [X] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended) - [X] I have developed this patch against the `main` branch. - [ ] I have run `./gradlew check`. - [ ] I have added tests for my changes. - [ ] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
