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
All Zowe CLI cics deploy plugin 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
+
11
14
### zowe.log
12
-
The .zowe directory 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).
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).
13
16
14
17
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.
<p>On Linux, use <tt>tail -f -n 0 ~/.zowe/zowe/logs/zowe.log</tt></p></div>
32
+
33
+
<divrole="tabpanel"class="tab-pane"id="macos">
34
+
<p>On macOS, use <tt>tail -f -n 0 ~/.zowe/zowe/logs/zowe.log</tt></p>
35
+
</div>
36
+
</div>
37
+
38
+
### Node.js logs
39
+
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
+
41
+
```
42
+
WORK_DIR=/u/<your user id>/nodelogs
43
+
```
44
+
This causes CICS to write all Node.js logs to the specified directory.
45
+
46
+
Files typically written to `WORK_DIR` include:
47
+
48
+
* LOG
49
+
* STDERR
50
+
* STDOUT
51
+
* TRACE
52
+
53
+
They can all be useful when identifying the cause of an error, especially STDERR.
54
+
55
+
{% include note.html content="If you use [Visual Studio Code](https://code.visualstudio.com/) as your editor, there is a [zowe extension](https://github.com/zowe/vscode-extension-for-zowe) that enables you to interact with USS files from your local workstation." %}
56
+
57
+
### JES job logs
58
+
DFHDPLOY is a CICS utility which provides a set of commands that you can use to deploy, undeploy and set the state of CICS bundles. When you deploy or undeploy a Node.js application to or from CICS, a batch DFHDPLOY job is initiated on z/OS.
59
+
60
+
If you are familiar with the z/OS environment, you can often find some useful diagnostics by accessing z/OS file assigned to the MSGUSR DD name for the deploy/undeploy job associated with your CICS region. 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 Systems Programmers.
summary: "This section describes sets of problem symptoms, their possible causes and suggested solutions."
6
+
sidebar: cdp_sidebar
7
+
permalink: cdp-Troubleshooting-Symptoms.html
8
+
folder: cdp
9
+
---
10
+
11
+
{% include important.html content="To definitively diagnose a problem based on the suggested symptoms, you will 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 DFHDPLOY job. Depending on your familiarity with z/OS and CICS, and your system privileges, you may need to consult a CICS Systems Programmer to get to the bottom of certain problems." %}
12
+
13
+
## Deployment errors
14
+
15
+
### Application incorrectly deploys in a DISABLED state
16
+
*Possible cause*: The port requested by the application is already in use.
17
+
18
+
*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.
19
+
20
+
{% 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`." %}
21
+
22
+
### Command error: DFHDPLOY stopped processing due to an error
23
+
*Possible causes*:
24
+
* 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.
0 commit comments