You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Vijay Sachdeva <vi...@indiqus.com> on 2017/07/06 07:10:56 UTC
Cloudstack Usage Service stucks at Activating
Dear Team,
I have configure Usage Server on 4.7.1 and enable it global settings set as “True” with all the required settings. After restarting the management services and cloudstack-usage service, usage service stucks at activating state.
Sometime it shows running and sometimes it stucks at activating, although not able to get the records in Database. All the tables are empty.
Any suggestion will be appreciated.
Thanks
Vijay Sachdeva
Consultant - Cloud & Virtualisation
A-98, LGF, C.R.Park, New Delhi - 110019
24x7 011-40551409 | M +918826699409
www.indiqus.com
Re: Cloudstack Usage Service stucks at Activating
Posted by Vivek Kumar <vi...@indiqus.com>.
Update this.
open /usr/lib/systemd/system/cloudstack-usage.service
Update the service definition to match below.
[Service]
Type=simple
Environment=JAVA_HOME=/usr/lib/jvm/jre
Environment=JAVA_HEAP_INITIAL=256m
Environment=JAVA_HEAP_MAX=2048m
Environment=JAVA_CLASS=com.cloud.usage.UsageServer
Environment=JAVA_PID=$$
ExecStart=/bin/sh -ec '\
export UCP=`ls /usr/share/cloudstack-usage/cloud-usage-*.jar /usr/share/cloudstack-usage/lib/*.jar | tr "\\n" ":"`; \
export CLASSPATH="$UCP:/etc/cloudstack/usage:/usr/share/java/mysql-connector-java.jar"; \
${JAVA_HOME}/bin/java -Dpid=${JAVA_PID} -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH" $JAVA_CLASS'
Restart=always
RestartSec=10s
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 <vi...@indiqus.com> wrote:
>
> Dear Team,
>
> I have configure Usage Server on 4.7.1 and enable it global settings set as “True” with all the required settings. After restarting the management services and cloudstack-usage service, usage service stucks at activating state.
>
> <Screenshot 2017-07-06 12.39.13.png>
>
> Sometime it shows running and sometimes it stucks at activating, although not able to get the records in Database. All the tables are empty.
>
> Any suggestion will be appreciated.
>
> Thanks
>
> Vijay Sachdeva
> Consultant - Cloud & Virtualisation
>
> <PastedGraphic-1.tiff>
> A-98, LGF, C.R.Park, New Delhi - 110019
> 24x7 011-40551409 | M +918826699409
> www.indiqus.com <http://www.indiqus.com/>
>