"tried to create Proc object without a block" error after running uaac target command with Ruby version 3.0+ in Tanzu Application Service for VMs
search cancel

"tried to create Proc object without a block" error after running uaac target command with Ruby version 3.0+ in Tanzu Application Service for VMs

book

Article ID: 297526

calendar_today

Updated On: 04-21-2024

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

You receive the following error after running the uaac target command with Ruby version 3.0+ in Tanzu Application Service for VMs (TAS for VMs):
uaac target https://<OpsMan-Hostname>/uaa --skip-ssl-validation

failed to access https://<OpsMan-Hostname>/uaa: tried to create Proc object without a block


Resolution

To check Ruby version you are using, run this command: 
ruby --version 

To work around this issue, downgrade Ruby to a version to < 3.0.0 and then reinstall the UAA Command Line from Rubygems with this command: 
gem install cf-uaac