How to get the selector option and the selector that are creating the error "Invalid Javascript migrations response with properties: 'selector option with no selector'" in Ops Manager
search cancel

How to get the selector option and the selector that are creating the error "Invalid Javascript migrations response with properties: 'selector option with no selector'" in Ops Manager

book

Article ID: 385187

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When upgrading a product by clicking the + symbol next to a product listing left of Installation Dashboard in Ops Manager UI, you might get an error as shown:

The same error message could also be found when calling OM CLI command 'om stage-product'.

Even if reviewing the related ops manager log under Ops Manager vm /var/log/opsmanager/, except the error message itself, no other useful info can be found:

{"timestamp":"20XX-XX-XXT04:12:48.340+00:00","component":"Tanzu Ops Manager 3.0.35-build.1608","component_scheme":"https","component_host":"10.XX.XX.20","component_port":443,"result":422,"target":"/api/v0/staged/products/cf-XX,"event_type":"PUT","origination":"10.XX.XX.20","forwarded_for":"10.XX.XX.20","user_identification":"XXX","uaa_authentication_mechanism":"client_authenticated","request_body":{"to_version":"6.0.10","id":"cf-**","product":{"to_version":"6.0.10"}},"reason":"{\"errors\":[\"Invalid Javascript migrations response with properties: 'selector option with no selector'. Please contact your VMware representative.\"]}"}

The error message "Invalid Javascript migrations response with properties: 'selector option with no selector'" is not informative for further troubleshooting.

Environment

Operations Managers 3.0

Resolution

Starting Operations Manager 3.0.37+LTS-T, the error message becomes more informative:

Related release note:

  • [Feature] Update ‘selector option with no selector’ tile migration error message with more information

One example error: