solr_wrapper
solr_wrapper copied to clipboard
Error on clean when bin is missing says solr still running
Run solr_wrapper clean twice. The first was successful. The error message on the second run was:
Please stop solr before cleaning
Of course, by that point no solr is running (or even installed) so that is unhelpful.
Same problem today on already clean instance. The message is counter-productive. If there is no solr running and no solr even downloaded, let alone installed, it should not be talking about a solr presumed to be running.
$ ps -ef |grep solr
503 34521 529 0 4:34PM ttys002 0:00.00 grep solr
$ be solr_wrapper clean
Please stop solr before cleaning
$ be solr_wrapper dir
/var/folders/6q/13dm9dcn1qx_gw9x66lhl7jc0000gq/T/solr-6.5.1
$ ls -l /var/folders/6q/13dm9dcn1qx_gw9x66lhl7jc0000gq/T/solr-6.5.1
ls: /var/folders/6q/13dm9dcn1qx_gw9x66lhl7jc0000gq/T/solr-6.5.1: No such file or directory
@atz is it possible your config is managed? https://github.com/cbeer/solr_wrapper/blob/3653a6a699187d0d6bce85ccf71bdfe0c9ba4a1a/lib/solr_wrapper/instance.rb#L105