You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Common-Errors.md
+26-19Lines changed: 26 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,41 @@
1
1
---
2
-
title: Common Errors
2
+
title: Common errors
3
3
tags: [troubleshooting]
4
4
keywords:
5
5
summary: "Some common errors can occasionally occur when you attempt to deploy a Node.js application using the cics-deploy plug-in."
6
6
sidebar: cdp_sidebar
7
-
permalink: cdp-Common-Errors.html
7
+
permalink: cdp-Common-errors.html
8
8
folder: cdp
9
9
---
10
10
11
11
## Precautionary checks
12
+
12
13
If you experience errors while using the cics-deploy plug-in, check the following potential causes before investigating further:
14
+
13
15
* CICS must be authorized to read the bundle directory `META-INF`.
14
-
* The port specified by the `--port` argument of the `cics-deploy generate bundle` command *must* be free on z/OS before you attempt to deploy an application.
16
+
* The port specified by the `--port` argument of the `cics-deploy generate bundle` command *must* be free on z/OS before you attempt to deploy an application.
15
17
* If you set a `WORK_DIR` in the CICS Node.js application profile, such as `nodejsapps/<your application name>.profile`, it must be *writeable* by CICS.
16
18
17
19
## Deployment errors
20
+
18
21
{% include note.html content="For further troubleshooting steps, see [Troubleshooting Node.js applications](https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.5.0/troubleshooting/node/node-troubleshooting.html)." %}
19
22
20
-
{% include important.html content="To definitively diagnose a problem based on the suggested symptoms, you might need to refer to one or more [system logs and traces](cdp-Troubleshooting-General) particularly the STDERR Node.js log and the file assigned the MSGUSR DD name in the relevant CICS job. Depending on your familiarity with z/OS and CICS, and your system privileges, you may also need to consult a CICS systems administrator to get to the bottom of certain problems." %}
23
+
{% include important.html content="To definitively diagnose a problem based on the suggested symptoms, you might need to refer to one or more [system logs and traces](cdp-Log-and-trace-files) particularly the STDERR Node.js log and the file assigned the MSGUSR DD name in the relevant CICS job. Depending on your familiarity with z/OS and CICS, and your system privileges, you may also need to consult a CICS systems administrator to get to the bottom of certain problems." %}
21
24
22
25
### Application incorrectly deploys in a DISABLED state
26
+
23
27
*Possible cause*: The port requested by the application is already in use.
24
28
25
29
*Suggested action*: Choose a new port number after double-checking that it is not in use. Redeploy the application using the new value for the port.
26
30
27
31
{% include note.html content="An application in a `DISABLED` state does not necessarily indicate an error condition. The `cics-deploy deploy`, `cics-deploy push` and `cics-deploy undeploy` commands allow you to specify a `--target-state` option which you may deliberately choose to set to `DISABLED`." %}
28
32
29
33
### Command error: DFHDPLOY stopped processing due to an error
30
-
*Possible causes*:
31
-
* The `--scope` and/or `--cicsplex` settings for the current deploy profile are wrong, and don't correctly identify a current CICS system, CICS System Group and/or a correct CICSPlex respectively.
32
-
33
-
* The CMAS for the current CICSPlex is inactive.
34
34
35
-
* CPSM is not functioning correctly.
35
+
*Possible causes*:
36
+
* The `--scope` and/or `--cicsplex` settings for the current deploy profile are wrong, and don't correctly identify a current CICS system, CICS System Group and/or a correct CICSPlex respectively.
37
+
* The CMAS for the current CICSPlex is inactive.
38
+
* CPSM is not functioning correctly.
36
39
37
40
*Representative output*:
38
41
<preclass="messageText">
@@ -45,11 +48,12 @@ If you experience errors while using the cics-deploy plug-in, check the followin
45
48
</pre>
46
49
47
50
*Suggested actions*:
48
-
* Confirm that the `--scope` and `--cicsplex` settings are correct.
49
51
50
-
* Ask your CICS Systems Programmer to check that the CMAS for the current CICSPlex is alive and that CPSM is working properly.
52
+
* Confirm that the `--scope` and `--cicsplex` settings are correct.
53
+
* Ask your CICS Systems Programmer to check that the CMAS for the current CICSPlex is alive and that CPSM is working properly.
51
54
52
55
### Command error: ... validation of - -cicshlq dataset failed: z/OSMF REST API Error
56
+
53
57
*Possible cause*: The profile setting for `--cicshlq` is incorrect.
54
58
55
59
*Representative output*:
@@ -69,6 +73,7 @@ details:
69
73
Check that your `--cicshlq` profile setting matches the value configured for CICS high-level qualifiers in your CICS region.
70
74
71
75
### BUNDLE ... cannot be deployed
76
+
72
77
*Possible cause*: The `cics.xml` file is malformed.
73
78
74
79
*Representative output*:
@@ -77,20 +82,22 @@ Check that your `--cicshlq` profile setting matches the value configured for CIC
77
82
15:56:17.419308 : DFHRL2055I Errors have occurred, processing terminated.
78
83
15:56:17.424650 : DFHRL2014I Disconnecting from CICSPLEX(CAPLEX).
79
84
...
80
-
DFHRL0107 I 05/17/2019 15:56:15 CALMAS1 CICSUSER The CICS resource lifecycle manager has started to create the BUNDLE resource
81
-
CICSJS02.
82
-
DFHPI1007 05/17/2019 15:56:15 CALMAS1 COIE 00672 XML to data transformation failed because of incorrect input
83
-
(MISSING_CLOSE_TAG_CHAR manifest) for BUNDLE CICSJS02.
84
-
DFHRL0113 E 05/17/2019 15:56:15 CALMAS1 COIE The CICS resource lifecycle manager failed to create the BUNDLE resource CICSJS02
85
+
DFHRL0107 I 05/17/2019 15:56:15 CALMAS1 CICSUSER The CICS resource lifecycle manager has started to create the BUNDLE resource
86
+
CICSJS02.
87
+
DFHPI1007 05/17/2019 15:56:15 CALMAS1 COIE 00672 XML to data transformation failed because of incorrect input
88
+
(MISSING_CLOSE_TAG_CHAR manifest) for BUNDLE CICSJS02.
89
+
DFHRL0113 E 05/17/2019 15:56:15 CALMAS1 COIE The CICS resource lifecycle manager failed to create the BUNDLE resource CICSJS02
85
90
because CICS failed to parse the manifest /u/<your user id>/pushtest2/CICSJSON_1.0.0/META-INF/cics.xml specified in the bundle
86
-
root directory. The manifest is not valid.
91
+
root directory. The manifest is not valid.
87
92
</pre>
88
93
89
94
*Suggested action*:
90
95
Check that your `cics.xml` file is well-formed.
91
96
92
97
## General errors
98
+
93
99
### Syntax error: Invalid value length for option
100
+
94
101
*Possible cause*: The length of the option you provided in a command was either too long or two short.
95
102
96
103
*Representative output*:
@@ -105,5 +112,5 @@ NODETESTS
105
112
The length must be between 1 and 8 (inclusive)
106
113
</pre>
107
114
108
-
*Suggested action*:
109
-
Review the error output text and reissue the original command having corrected the name of the option so that its length falls within acceptable limits.
115
+
*Suggested action*:
116
+
Review the error output text and reissue the original command having corrected the name of the option so that its length falls within acceptable limits.
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Deploying-a-CICS-policy.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,14 @@ This tutorial shows how to download a sample CICS policy and deploy it using the
43
43
44
44
The warning can be ignored as the default values result in the files being uploaded in text that is suitable for this bundle.
45
45
46
-
The CICS BUNDLE resource named `Policy` is defined, installed, and enabled in CICS. If the BUNDLE `Policy` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the policy is also enabled. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Troubleshooting-General).
46
+
The CICS BUNDLE resource named `Policy` is defined, installed, and enabled in CICS. If the BUNDLE `Policy` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the policy is also enabled. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Log-and-trace-files).
47
47
48
48
### Results
49
49
50
-
The CICS policy is enabled in the CICS region. When the policy rule is triggered, CICS will write message DFHMP3009 to the CICS region JES job log. For details on how to view this log see [Log and trace files](cdp-Troubleshooting-General).
50
+
The CICS policy is enabled in the CICS region. When the policy rule is triggered, CICS will write message DFHMP3009 to the CICS region JES job log. For details on how to view this log see [Log and trace files](cdp-Log-and-trace-files).
51
51
52
52
To get started with defining your own CICS policy:
53
+
53
54
*[Download and start the CICS Explorer](https://www.ibm.com/support/knowledgecenter/en/SSSQ3W_5.5.0/com.ibm.cics.core.help/topics/concepts/install_planning_client.html).
54
55
* Create a CICS bundle project using the procedure [Creating a CICS bundle project](https://www.ibm.com/support/knowledgecenter/SSSQ3W_5.5.0/com.ibm.cics.core.help/topics/tasks/create_bundle.html).
55
56
* Create a policy using the procedure [To create a policy in a CICS bundle project](https://www.ibm.com/support/knowledgecenter/SSSQ3W_5.5.0/com.ibm.cics.core.help/topics/tasks/task_create_policy.html).
@@ -31,7 +31,7 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
31
31
32
32
The Node.js application will start. You can call the application from a browser by using URL [http://localhost:3000/](http://localhost:3000/). To stop the application in the console press CTRL+C.
33
33
34
-
4. Package the Node.js application into a [CICS bundle](cdp-cics-bundles).
34
+
4. Package the Node.js application into a [CICS bundle](cdp-CICS-bundles).
35
35
36
36
Make sure that you are in the root directory of the application.
37
37
@@ -71,7 +71,7 @@ CICS TS V5.5 introduced support to run Node.js applications and is required by t
This results in a CICS BUNDLE resource named `Express` being defined, installed, and enabled in CICS. If the BUNDLE `Express` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the application is started. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Troubleshooting-General).
74
+
This results in a CICS BUNDLE resource named `Express` being defined, installed, and enabled in CICS. If the BUNDLE `Express` was already defined or installed in CICS, it is undeployed first. As the BUNDLE is enabled, the application is started. If there are errors, retry with the `--verbose` option for more detailed output, or refer to [Troubleshooting](cdp-Log-and-trace-files).
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Deploying-using-individual-actions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ folder: cdp
9
9
toc: true
10
10
---
11
11
12
-
The `zowe cics-deploy push bundle` command performs a set of actions to deploy applications to CICS, as can be seen in [Deploying a Node.js application](cdp-Deploying-a-nodejs-application). The main actions include:
12
+
The `zowe cics-deploy push bundle` command performs a set of actions to deploy applications to CICS, as can be seen in [Deploying a Node.js application](cdp-Deploying-a-Nodejs-application). The main actions include:
13
13
14
14
* undeploy the old version of the CICS bundle in CICS
15
15
* upload the new version of the CICS bundle to z/OS
@@ -99,4 +99,4 @@ Alternatively, to define and install the BUNDLE but not enable it:
Copy file name to clipboardExpand all lines: docs/pages/cdp/cdp-Log-and-trace-files.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,19 @@
2
2
title: Log and trace files
3
3
tags: [troubleshooting]
4
4
keywords:
5
-
summary: "When you use Zowe, log and trace files are written on both your local workstation and the z/OS machine."
5
+
summary: "When you use Zowe, log and trace files are written on both your local workstation and z/OS."
6
6
sidebar: cdp_sidebar
7
-
permalink: cdp-Troubleshooting-General.html
7
+
permalink: cdp-Log-and-trace-files.html
8
8
folder: cdp
9
9
---
10
10
11
11
### Console output
12
+
12
13
All Zowe CLI CICS deploy plug-in commands send output to the console when invoked. Very often, enough information is provided for you to diagnose and pinpoint the cause of a problem. The commands `cics-deploy push`, `cics-deploy deploy` and `cics-deploy undeploy` accept a `--verbose` command-line option which can generate extra information if needed.
13
14
14
15
### zowe.log
15
-
The .zowe directory on your local workstation contains log files, profiles, and plug-ins. The location of this directory can be customised as described in [ Setting the Zowe CLI home directory](https://zowe.github.io/docs-site/latest/user-guide/cli-configuringcli.html#setting-the-zowe-cli-home-directory) and logging level set as described in [Setting Zowe CLI log levels](https://zowe.github.io/docs-site/latest/user-guide/cli-configuringcli.html#setting-zowe-cli-log-levels).
16
+
17
+
The .zowe directory on your local workstation contains log files, profiles, and plug-ins. The location of this directory can be customized as described in [Setting the Zowe CLI home directory](https://zowe.github.io/docs-site/latest/user-guide/cli-configuringcli.html#setting-the-zowe-cli-home-directory) and logging level set as described in [Setting Zowe CLI log levels](https://zowe.github.io/docs-site/latest/user-guide/cli-configuringcli.html#setting-zowe-cli-log-levels).
16
18
17
19
You can use the following command to display messages written to the log file as they occur. This can be useful when troubleshooting problems when using `zowe` and `zowe cics-plugin` commands in another terminal.
18
20
<ulid="profileTabs"class="nav nav-tabs">
@@ -22,25 +24,27 @@ You can use the following command to display messages written to the log file as
<p>On Linux, use <tt>tail -f -n 0 ~/.zowe/zowe/logs/zowe.log</tt></p></div>
33
+
<p>On Linux, use command: <tt>tail -f -n 0 ~/.zowe/zowe/logs/zowe.log</tt></p></div>
32
34
33
35
<divrole="tabpanel"class="tab-pane"id="macos">
34
-
<p>On macOS, use <tt>tail -f -n 0 ~/.zowe/zowe/logs/zowe.log</tt></p>
36
+
<p>On macOS, use command: <tt>tail -f -n 0 ~/.zowe/zowe/logs/zowe.log</tt></p>
35
37
</div>
36
38
</div>
37
39
38
40
### Node.js logs
41
+
39
42
By default, CICS writes Node.js log files on z/OS to the `/tmp` directory. However, the `generate bundle` command creates a number of files including `nodejsapps/<my app name>.profile` (often referred to as the Node.js profile), which you can edit to specify a more convenient log file location. Such logs get written to the directory referenced by the environment variable `WORK_DIR`. For example, you might edit your Node.js profile so that it includes the line:
40
43
41
-
```
44
+
```properties
42
45
WORK_DIR=/u/<your user id>/nodelogs
43
46
```
47
+
44
48
This causes CICS to write all Node.js logs to the specified directory.
45
49
46
50
Files typically written to `WORK_DIR` include:
@@ -55,6 +59,7 @@ They can all be useful when identifying the cause of an error, especially STDERR
55
59
{% include tip.html content="The `cics-deploy push` command outputs the full paths of STDOUT and STDERR after a deployment." %}
56
60
57
61
### JES job logs
62
+
58
63
If you are familiar with the z/OS environment, you can often find some useful diagnostics by accessing the JES job log associated with the CICS region you deployed to. The `cics-deploy push` command outputs the job IDs for all the CICS regions in the scope after a deployment. The MSGUSR, SYSPRINT, SYSOUT and JESMSGLG spool files can all provide useful information. If you are not so fluent with the world of z/OS, you may need to discuss your needs with one of your organization's CICS system administrators.
59
64
60
-
{% include note.html content="If you use [Visual Studio Code](https://code.visualstudio.com/) as your editor, there is a [Zowe extension](https://marketplace.visualstudio.com/items?itemName=Zowe.vscode-extension-for-zowe) that enables you to interact with USS files and examine JES job logs from your local workstation." %}
65
+
{% include note.html content="If you use [Visual Studio Code](https://code.visualstudio.com/) as your editor, there is a [Zowe extension](https://marketplace.visualstudio.com/items?itemName=Zowe.vscode-extension-for-zowe) that enables you to interact with USS files and examine JES job logs from your local workstation." %}
0 commit comments