-
Notifications
You must be signed in to change notification settings - Fork 86
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
zos-console issue command ends with Return Code 5 Reason Code 7 #1843
Comments
Thank you for creating a bug report. |
To get a more clear display of your error, you can set the environment variable named ZOWE_V3_ERR_FORMAT to true. However the primary information of the error message will remain the same. You are getting an HTTP 500 error code, which indicates that the error occurs on your server. This implies that the problem has to do with your working environment on your z/OS server. The return-code=5 and reason-code=7 are being returned from z/OS. You will have to identify why your console command fails on your z/OS system. You can look up those z/OS codes to identify more specific details about the error. One guess is that you may not have authority to create a console on lpar2.net? The command that you issued is correct. When your environment is correct, the following is an example of successful output of this command:
To further isolate the problem, here are a couple of things to try:
|
I do have authority to submit the commands on both the lpars and the specified zowe command works when run in isolation ie after a long time.. only second command fails if submitted on different lpar .. lpar 2 followed by lpar 1 leads to same error… can you clarify your first point - how zos-job will accomplish my goal… can you suggest what that command will look like.. which is equivalent to mine.. And I don’t understand how list jobs is same as purging or starting a job especially with only job name as input… |
I did not mean to imply that list-jobs would accomplish your objective. It was just an example to confirm that you can run zos-jobs commands on LPAR2. You could then review the set of zos-jobs commands to see if any fit your needs (perhaps cancel or delete?). If I understand your situation correctly, you can successfully issue your console command to LPAR2, but if you first issue your console command to LPAR1, and then issue the same Zowe command that originally worked on LPAR2, it fails on LPAR2. Is that correct? The only command that you identified in your issue is:
Can you describe or show how you switch from LPAR1 to LPAR2? |
@gejohnston issues goes something like below... I am able to download uss files, list jobs etc. Issue seems to be specific to zos-console....
|
While investigating similar issues (as I noticed your did also), I found the following two issues with the same root cause: zowe/zowe-explorer-vscode#523 z/OS does not permit the same console name to be used against 2 LPARs in the same SYSPLEX. The default console name used by zosmf (and thus by the zowe CLI) is used by both CLI commands. Thus, z/OS detects the same console name on 2 different LPARs. The existing GitHub issues request that a new console name property be added to the zosmf profile type. No work on that enhancement is currently planned. A fairly simple alternative exists for CLI users. By specifying the --console-name parameter on your zowe command line, you can specify one console name for LPAR1 and a different console name for LPAR2. |
Because Zowe CLI has the --console-name option, we decided to relabel this issue as an enhancement request with the enhancement being to add a profile property that allows users to specify console name in their profiles/configs. |
Thank you for raising this enhancement request. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. |
Describe the bug
I have two lpars where I am trying to submit commands like following. It seems to work on lpar1 but when I submit on similar command on lpar2 in a few minutes after lpar1 it fails with following error. Either CLI should suggest how to can correct it like additonal parameters or work. Error is confusing.
Describe your environment
zowe --version
): latest (7.18.9)zowe plugins list --short
): @zowe/clinode --version
,npm --version
): NodeJS 16The text was updated successfully, but these errors were encountered: