Monday, June 17, 2013

CTX138026 - Steps to Recover From cloud_usage service Crash - Citrix Knowledge Center

CTX138026 - Steps to Recover From cloud_usage service Crash - Citrix Knowledge Center

Steps to Recover From cloud_usage service Crash

Document ID: CTX138026   /   Created On: Jun 17, 2013   /   Updated On: Jun 17, 2013
Average Rating: not yet rated
Symptoms
The cloud usage server fails abruptly and stops collecting the usage information when attempting to start the cloud-usage server as “service cloud-usage start”.
The /var/log/messages on the cloud-usage server have the following errors in the logs:
May 20 17:43:01 citrix cloud-usage[6946]: could not setuid() to uid 498
May 20 17:43:02 citrix cloud-usage[6944]: /usr/libexec/usage-runner exited abnormally with status 8
May 20 17:43:02 citrix cloud-usage[6944]: shutting down
May 20 17:43:02 citrix cloud-usage[6944]: syslog connection closed
Cause
The issue occurs when the number of open files allowed for cloud user or number of processes allowed for root user exceeds the default limits.
Resolution
To resolve the issue:
  1. Login as root user to the machine running the cloud-usage service and add the following lines to /etc/security/limits.conf file:
    cloud hard nofile 8192
    cloud soft nofile 4096
    root soft nproc -1
    root hard nproc -1
  2. Logout as root user and login another time.
    Note:
    This step is required to reflect the changes made (for root user) in the limits.conf file.
The cloud-usage service will start without any issues.
Disclaimer
The above mentioned sample code is provided to you AS IS with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the code.

This document applies to:

No comments:

Post a Comment