Zowe fails to start components if zowe.launchScript.logLevel is empty
search cancel

Zowe fails to start components if zowe.launchScript.logLevel is empty

book

Article ID: 395455

calendar_today

Updated On:

Products

Brightside

Issue/Introduction

Upgrade ZOWE from V2.18 to V3.1 and found the following error in the STC log: 

 2025-04-10 12:36:49.302 <ZWELNCH:197253> STCXXXX INFO ZWEL0058I WORKSPACE_DIR is '/PRODUCTS/zowe/workspace'
 TypeError: cannot read property 'toUpperCase' of null
     at execute (/PRODUCTS/zowe/bin/commands/internal/start/prepare/index:398)
     at <anonymous> (/PRODUCTS/zowe/bin/commands/internal/start/prepare/cli.js:12)

Environment

ZOWE v3.1

Cause

zowe.launchScript.logLevel is unset (empty) in zowe.yaml

Config validation will allow null value when schema allows empty string. If logLevel variable is empty Zowe will fail to start components trying to call toUpperCase() on null variable.

Resolution

Workaround: 

Update ZOWE.yaml and set

zowe:

  launchScript:       
    logLevel: "info" 

 

 

Additional Information

Issue is fixed in the upcoming ZOWE v3.2 release.