Using solrctl with an HTTP proxy

Using solrctl to manage a deployment in an environment that uses an HTTP proxy fails because solrctl uses curl, which attempts to use the proxy. You can disable the proxy so solrctl succeeds:

  • Modify the settings for the current shell by exporting the NO_PROXY environment variable. For example:
    export NO_PROXY='*'
  • Modify the settings for single commands by prefacing solrctl with NO_PROXY='*'. For example:
    NO_PROXY='*' solrctl collection --create <collectionName> -s 3