Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zowe startup does not stop when an error happens in internal start prepare #3443

Open
pablocarle opened this issue Jun 2, 2023 · 0 comments
Assignees
Labels
bug Something isn't working Config Manager Related to the config manager component Priority - High v2 zwe

Comments

@pablocarle
Copy link
Contributor

Describe the bug
Related to #3178

With the latest changes in the launcher, some stderr-ouput can be seen in the spool, where if a nodejs module fails to load for some reason, the internal start prepare stage will not finish properly. However, even when this error happens, the execution continues and the message ZWEL0018I can be seen in the logs.

Example logs:

2023-06-02 11:53:02 <ZWELNCH:50659913> ZWESVUSR INFO ZWEL0058I WORKSPACE_DIR is '/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime/instance/workspace'
2023-06-02 11:53:02 <ZWELNCH:50659913> ZWESVUSR DEBUG about to prepare Zowe instance
2023-06-02 11:53:02 <ZWELNCH:50659913> ZWESVUSR DEBUG about to run command '_CEE_RUNOPTS="HEAPPOOLS(OFF)" CONFIG="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" __IPC_CLEANUP="1" ZLDEBUG="ON" ROOT_DIR="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime" /z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime/bin/zwe internal start prepare --config "/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" --ha-instance ca31 2>&1'
js_load_file failure. A file requested module '/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime/bin/commands/internal/start/prepare/index' but it could not be loaded.
Getting file info for diagnosis
File found with ccsid=0
First 256 bytes of module=/*
  This program and the accompanying materials are made available
  under the terms of the Eclipse Public License v2.0 which
  accompanies this distribution, and is available at
  https://www.eclipse.org/legal/epl-v20.html

  SPDX-License-Identifier: EP
ReferenceError: �@�@�}l�

2023-06-02 11:53:12 <ZWELNCH:50659913> ZWESVUSR DEBUG command '_CEE_RUNOPTS="HEAPPOOLS(OFF)" CONFIG="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" __IPC_CLEANUP="1" ZLDEBUG="ON" ROOT_DIR="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime" /z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime/bin/zwe internal start prepare --config "/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" --ha-instance ca31 2>&1' ran successfully
2023-06-02 11:53:12 <ZWELNCH:50659913> ZWESVUSR INFO ZWEL0018I Zowe instance prepared successfully
2023-06-02 11:53:12 <ZWELNCH:50659913> ZWESVUSR DEBUG about to get component list
2023-06-02 11:53:12 <ZWELNCH:50659913> ZWESVUSR DEBUG about to run command '_CEE_RUNOPTS="HEAPPOOLS(OFF)" CONFIG="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" __IPC_CLEANUP="1" ZLDEBUG="ON" ROOT_DIR="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime" /z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime/bin/zwe internal get-launch-components --config "/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" --ha-instance ca31'
2023-06-02 11:53:22 <ZWELNCH:50659913> ZWESVUSR DEBUG command '_CEE_RUNOPTS="HEAPPOOLS(OFF)" CONFIG="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" __IPC_CLEANUP="1" ZLDEBUG="ON" ROOT_DIR="/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime" /z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/runtime/bin/zwe internal get-launch-components --config "/z/zwesvusr/zowe-ha/zowe-v2.9.0-RC1/zowe.yaml" --ha-instance ca31' ran successfully
2023-06-02 11:53:22 <ZWELNCH:50659913> ZWESVUSR ERROR ZWEL0029E start component list is empty

Expected behavior
If an error happens in the internal start prepare, execution should finish showing the appropriate error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Config Manager Related to the config manager component Priority - High v2 zwe
Projects
Status: New
Development

No branches or pull requests

2 participants