Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EF7C5200CBD for ; Thu, 6 Jul 2017 09:37:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EE45F165A55; Thu, 6 Jul 2017 07:37:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D332165A52 for ; Thu, 6 Jul 2017 09:37:33 +0200 (CEST) Received: (qmail 25955 invoked by uid 500); 6 Jul 2017 07:37:32 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 25943 invoked by uid 99); 6 Jul 2017 07:37:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2017 07:37:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 29B94C6AA8 for ; Thu, 6 Jul 2017 07:37:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.952 X-Spam-Level: ** X-Spam-Status: No, score=2.952 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_SOFTFAIL=0.972] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=indiqus-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 61XY4NIYNWC1 for ; Thu, 6 Jul 2017 07:37:27 +0000 (UTC) Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6209A5F341 for ; Thu, 6 Jul 2017 07:37:26 +0000 (UTC) Received: by mail-pg0-f41.google.com with SMTP id t186so7243330pgb.1 for ; Thu, 06 Jul 2017 00:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=indiqus-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=fdgB7LFektcsL7zpcHZ+S+bf15X44O0H97W+cnSL6mE=; b=YAaTay+CvKxkh+/z2hpTX22zhPVSEBw5+5s1LqcNk6egxUw/FzhAykhbnnEMFW9Zlw bQNDfiENIgZM4rdxkSR5r8Y+qXWH0Movjjrc9lDmwtrdLfBq7Iq2haRDgWxR1URaYODG lEJrT1rDeIDmfy59VCRr0TchcK3bLLUuuHys0AOMj5cgFjlkYh28NrzfKKFWGZximU9q LObRa7icU52Eaj19ZOtgNtFfhyMSGcTmS5PD5ILIh9AxsSi85leq3q4GM28jOkCLdCE4 5AAsNEYaqwcfyd4Z2g1dEe1nXg4bGZHB0sU6b7B1Z/z1dJ7maOpydwlrveN5sN0H85YY HpGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=fdgB7LFektcsL7zpcHZ+S+bf15X44O0H97W+cnSL6mE=; b=USvp9QDo7JLYeWGLW/mOTtnO5q0ENqDwnzvm4z5l4268M+a3wRoCBuIngfgp6e1TI7 wDzfBL/tRLnFjlZL4zYBd0qpPCSHUoRgnFR08pdQu7DDdeRCb+9bP8UGlZ80ZEE46899 MUl+fWKAbVGu+5jKAi+nLWx85A4AeXERn+++7mjvCBnZV89k8+w6ERVssf0EjVP9sDFW 7agBe9uZRfCZp5LYwus963n9nwjFnxZFkumKBbH3aEo85Ada94qIBL+SAVbRrb1u2fnm q8VrrTkznWD+4wkaYTj2Djr0zJiVaz0VFyql5yapDjqJPJ5yKEjQH7TJT31BsxTdrdFI 6FjA== X-Gm-Message-State: AIVw110dHh4tiOj3cAHpTMFlevS8tDStr/XLByZxXXWhawwASNy7Jvpy JBGHPOSwwHJLs+tT5BM= X-Received: by 10.98.73.205 with SMTP id r74mr24199123pfi.166.1499326644648; Thu, 06 Jul 2017 00:37:24 -0700 (PDT) Received: from [192.168.0.145] ([49.204.111.36]) by smtp.gmail.com with ESMTPSA id h3sm2766456pfj.72.2017.07.06.00.37.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 00:37:24 -0700 (PDT) From: Vivek Kumar Content-Type: multipart/alternative; boundary="Apple-Mail=_8022F6EB-C7D8-4C2F-8816-A8041AFBE260" Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: Re: Cloudstack Usage Service stucks at Activating Date: Thu, 6 Jul 2017 13:07:19 +0530 References: To: users@cloudstack.apache.org In-Reply-To: Message-Id: <34748503-22CC-4953-858D-C4B37AC9923A@indiqus.com> X-Mailer: Apple Mail (2.3226) archived-at: Thu, 06 Jul 2017 07:37:34 -0000 --Apple-Mail=_8022F6EB-C7D8-4C2F-8816-A8041AFBE260 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Update this. open /usr/lib/systemd/system/cloudstack-usage.service Update the service definition to match below. [Service] Type=3Dsimple Environment=3DJAVA_HOME=3D/usr/lib/jvm/jre Environment=3DJAVA_HEAP_INITIAL=3D256m Environment=3DJAVA_HEAP_MAX=3D2048m Environment=3DJAVA_CLASS=3Dcom.cloud.usage.UsageServer Environment=3DJAVA_PID=3D$$ ExecStart=3D/bin/sh -ec '\ export UCP=3D`ls /usr/share/cloudstack-usage/cloud-usage-*.jar = /usr/share/cloudstack-usage/lib/*.jar | tr "\\n" ":"`; \ export = CLASSPATH=3D"$UCP:/etc/cloudstack/usage:/usr/share/java/mysql-connector-ja= va.jar"; \ ${JAVA_HOME}/bin/java -Dpid=3D${JAVA_PID} -Xms${JAVA_HEAP_INITIAL} = -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH" $JAVA_CLASS' Restart=3Dalways RestartSec=3D10s Run below commands: systemctl daemon-reload systemctl stop cloudstack-usage.service systemctl start cloudstack-usage.service Vivek Kumar > On 06-Jul-2017, at 12:40 PM, Vijay Sachdeva = wrote: >=20 > Dear Team, >=20 > I have configure Usage Server on 4.7.1 and enable it global settings = set as =E2=80=9CTrue=E2=80=9D with all the required settings. After = restarting the management services and cloudstack-usage service, usage = service stucks at activating state. >=20 > >=20 > Sometime it shows running and sometimes it stucks at activating, = although not able to get the records in Database. All the tables are = empty. >=20 > Any suggestion will be appreciated. >=20 > Thanks >=20 > Vijay Sachdeva > Consultant - Cloud & Virtualisation >=20 > > A-98, LGF, C.R.Park, New Delhi - 110019=20 > 24x7 011-40551409 | M +918826699409 > www.indiqus.com =20 >=20 --Apple-Mail=_8022F6EB-C7D8-4C2F-8816-A8041AFBE260--