title: Error getting replica locations : No node can satisfy the rules while add replica
body: <p><strong>FINAL EDIT</strong>: It was disk space.</p>
  <p>Node 1, which already had a replica of this collection, was over 80% used disk space. Specifically, 94%. I increased disk space a few times on both nodes and only when both were under 80% used disk space, then suddenly the replica could be placed on the 2nd node.</p>
  <p>I searched for literal hours and read entire pages of documentation. I did not encounter this. If anyone knows a page where this is mentioned, feel free to reply with the link.</p>
  <hr />
  <p>Original question:</p>
  <p>I'm using solr 7.6</p>
  <p>No, I'm not in a position where I can upgrade.</p>
  <p>I saw this: <a href="https://stackoverflow.com/questions/65782935/solr-8-3-error-getting-replica-locations-no-node-can-satisfy-the-rules-while">Solr 8.3 - Error getting replica locations : No node can satisfy the rules while add replica</a></p>
  <p>And my situation is different.</p>
  <p>That is: there are no policy rules in my cluster:</p>
  <pre><code>  &quot;config&quot;:{
      &quot;cluster-preferences&quot;:[{
          &quot;minimize&quot;:&quot;cores&quot;,
          &quot;precision&quot;:1}]}}
  </code></pre>
  <p>And there just isn't a <code>cluster-policy</code> here.</p>
  <p>Suggestions says the following:</p>
  <pre><code>{
    &quot;responseHeader&quot;:{
      &quot;status&quot;:0,
      &quot;QTime&quot;:100},
    &quot;suggestions&quot;:[{
        &quot;type&quot;:&quot;repair&quot;,
        &quot;operation&quot;:{
          &quot;method&quot;:&quot;POST&quot;,
          &quot;path&quot;:&quot;/c/your_collection/shards&quot;,
          &quot;command&quot;:{&quot;add-replica&quot;:{
              &quot;shard&quot;:&quot;shard1&quot;,
              &quot;node&quot;:&quot;yournode-0002:8985_solr&quot;,
              &quot;type&quot;:&quot;NRT&quot;}}}}],
  </code></pre>
  <p>I can also see this on the admin interface. Running the action just gives the exception again:</p>
  <pre><code>No node can satisfy the rules \&quot;[] More details from logs in node : yournode-0002:8985_solr, errorId : AutoScaling.error.diagnostics.87839911064550\&quot;&quot;
  </code></pre>
  <p>Even though there aren't actually any rules I can find.</p>
  <p>That log itself says nothing special:</p>
  <pre><code>errorId : AutoScaling.error.diagnostics.90356851192695&quot;
          at org.apache.solr.cloud.api.collections.Assign.getPositionsUsingPolicy(Assign.java:381)
          at org.apache.solr.cloud.api.collections.Assign$PolicyBasedAssignStrategy.assign(Assign.java:617)
          at org.apache.solr.cloud.api.collections.Assign.getNodesForNewReplicas(Assign.java:355)
          at org.apache.solr.cloud.api.collections.AddReplicaCmd.buildReplicaPositions(AddReplicaCmd.java:360)
          at org.apache.solr.cloud.api.collections.AddReplicaCmd.addReplica(AddReplicaCmd.java:146)
          at org.apache.solr.cloud.api.collections.AddReplicaCmd.call(AddReplicaCmd.java:91)
          at org.apache.solr.cloud.api.collections.OverseerCollectionMessageHandler.processMessage(OverseerCollectionMessageHandler.java:259)
          at org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:478)
          at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:834)
  Caused by: org.apache.solr.common.SolrException:  No node can satisfy the rules &quot;[] More details from logs in node : yournode-0002:8985_solr, errorId : AutoScaling.error.diagnostics.90356851192695&quot;
          at org.apache.solr.client.solrj.cloud.autoscaling.PolicyHelper.getReplicaLocations(PolicyHelper.java:179)
          at org.apache.solr.cloud.api.collections.Assign.getPositionsUsingPolicy(Assign.java:369)
  
  </code></pre>
  <p>And I can't find anything about how to analyze this. Do I need to add policy rules? How do I do that? The rest api documentation doesn't show how.</p>
  <p>I need to add this replica. There's disk space left and there aren't actually any policies in place. So why is the server refusing?</p>
  <p>EDIT: I've found how to add policy rules, but that doesn't work either.</p>
  <p>Far as I can tell, this rule:</p>
  <pre><code>&quot;replica&quot;: &quot;&lt;2&quot;, &quot;shard&quot;: &quot;#EACH&quot;, &quot;node&quot;: &quot;#ANY&quot;
  </code></pre>
  <p>Should mean that for each shard, on any node, there should be less than 1 replica.</p>
  <p>The suggested repair action once again fails to create a replica on the node that doesn't have on yet, showing only this rule and nothing else.</p>
  <p>It should be ok, but solr refuses.</p>