Cbupgrade Process Reports Error 400 Cycle Detected or Stuck on Migrating Events
search cancel

Cbupgrade Process Reports Error 400 Cycle Detected or Stuck on Migrating Events

book

Article ID: 291144

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

After starting the cbupgrade process it appears to be stuck migrating events during the Solr portion. 

  • A proxy is in place 
    cat /etc/environment | grep 'proxy'
  • The following error may be seen. 
    Request to http://127.0.0.1:8080/solr/cbmodules/select failed with error < 400 cycle detected
  • Running this command creates similar behavior 
    curl "http://127.0.0.1:8080/solr/admin/cores?action=STATUS&wt=json&indexInfo=false&indent=true"

 

Environment

  • EDR Server: All Supported Versions
  • Linux: All Supported Versions

Cause

The above error is generated when the server is configured to use a proxy server. The call to 127.0.0.1/localhost is not processed correctly 

Resolution

Add the following to the proxy configuration files 

  • /etc/profile.d/http_proxy.sh 
    export no_proxy=127.0.0.1,localhost
  • /etc/environment 
    export no_proxy=127.0.0.1,localhost

     

Additional Information

  • The configuration can also be tested with the curl command before attempting upgrade again. 
    curl "http://127.0.0.1:8080/solr/admin/cores?action=STATUS&wt=json&indexInfo=false&indent=true"
     
  • If the proxy is not configured properly the result returned from the curl command will be similar to the error reported during cbupgrade or the command will hang.