cloudstack/docs/tmp/en-US/html/troubleshooting-working-with-server-logs.html

20 lines
3.7 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>22.2. Working with Server Logs</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.0.0-incubating-en-US-1-" /><link rel="home" href="index.html" title="CloudStack Administrator's Guide" /><link rel="up" href="troubleshooting.html" title="Chapter 22. Troubleshooting" /><link rel="prev" href="events.html" title="22.1. Events" /><link rel="next" href="troubleshooting-dataloss-on-exported-primary-storage.html" title="22.3. Data Loss on Exported Primary Storage" /></head><body><p id="title"><a class="left" href="http://cloudstack.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://docs.cloudstack.org"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="events.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="troubleshooting-dataloss-on-exported-primary-storage.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="troubleshooting-working-with-server-logs" lang="en-US"><div class="titlepage"><div><div><h2 class="title" id="troubleshooting-working-with-server-logs">22.2. Working with Server Logs</h2></div></div></div><div class="para">
The CloudStack Management Server logs all web site, middle tier, and database activities for diagnostics purposes in /var/log/cloud/management/. The CloudStack logs a variety of error messages. We recommend this command to find the problematic output in the Management Server log:.
</div><div class="note"><div class="admonition_header"><h2>Note</h2></div><div class="admonition"><div class="para">
When copying and pasting a command, be sure the command has pasted as a single line before executing. Some document viewers may introduce unwanted line breaks in copied text.
</div></div></div><pre class="programlisting">
grep -i -E 'exception|unable|fail|invalid|leak|warn|error' /var/log/cloud/management/management-server.log
</pre><div class="para">
The CloudStack processes requests with a Job ID. If you find an error in the logs and you are interested in debugging the issue you can grep for this job ID in the management server log. For example, suppose that you find the following ERROR message:
</div><pre class="programlisting">
2010-10-04 13:49:32,595 ERROR [cloud.vm.UserVmManagerImpl] (Job-Executor-11:job-1076) Unable to find any host for [User|i-8-42-VM-untagged]
</pre><div class="para">
Note that the job ID is 1076. You can track back the events relating to job 1076 with the following grep:
</div><pre class="programlisting">
grep "job-1076)" management-server.log
</pre><div class="para">
The CloudStack Agent Server logs its activities in /var/log/cloud/agent/.
</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="events.html"><strong>Prev</strong>22.1. Events</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="troubleshooting-dataloss-on-exported-primary-storage.html"><strong>Next</strong>22.3. Data Loss on Exported Primary Storage</a></li></ul></body></html>