Re: Usage service issue on Ubuntu

2022-08-03 Thread Vivek Kumar
Hello Folks,

Can anyone help me on this ?


Vivek Kumar
Sr. Manager - Cloud & DevOps
TechOps | Indiqus Technologies

vivek.ku...@indiqus.com 
www.indiqus.com 




> On 28-Jul-2022, at 10:55 PM, Vivek Kumar  wrote:
> 
> Hello Wei, 
> 
> Any suggestion on below issue ?
> 
> Vivek Kumar
> Sr. Manager - Cloud & DevOps
> TechOps | Indiqus Technologies
> 
> vivek.ku...@indiqus.com 
>   www.indiqus.com 
> 
> 
> 
> 
>> On 22-Jul-2022, at 1:52 PM, Vivek Kumar > > wrote:
>> 
>> Hello Wei, 
>> 
>> Thanks for the response..! Please find the content below - 
>> 
>> 
>> 
>> 
>> 
>> 
>> http://jakarta.apache.org/log4j/ 
>> " debug="false">
>> 
>>
>>
>>
>> 
>>
>>   
>>   
>> 
>>   
>>  
>>   
>>
>> 
>>
>>
>>
>> 
>>
>>> class="org.apache.log4j.rolling.RollingFileAppender">
>>   
>>   
>>   
>> > value="/var/log/cloudstack/usage/usage.log.%d{-MM-dd}{GMT}.gz"/>
>> > value="/var/log/cloudstack/usage/usage.log"/>
>>   
>> 
>>   
>>  
>>   
>>
>> 
>>
>>
>>
>> 
>>
>>  
>>
>> 
>>
>>
>>   
>>
>> 
>>
>>   
>>
>> 
>>
>>  
>>
>> 
>>
>>
>>
>> 
>>
>>   
>>   
>>   
>>
>> 
>> 
>> 
>> 
>> Vivek Kumar
>> Sr. Manager - Cloud & DevOps
>> TechOps | Indiqus Technologies
>> 
>> vivek.ku...@indiqus.com 
>>  www.indiqus.com 
>> 
>> 
>> 
>> 
>>> On 22-Jul-2022, at 1:47 PM, Wei ZHOU >> > wrote:
>>> 
>>> Hi Vivek,
>>> 
>>> Can you share the log4j conf file `/etc/cloudstack/usage/log4j-cloud.xml` ?
>>> 
>>> -Wei
>>> 
>>> On Fri, 22 Jul 2022 at 08:31, Vivek Kumar >> >
>>> wrote:
>>> 
 Hello Folks,
 
 Can anyone help me on this ?
 
 
 Vivek Kumar
 Sr. Manager - Cloud & DevOps
 TechOps | Indiqus Technologies
 
 vivek.ku...@indiqus.com  
 >
www.indiqus.com  >
 
 
 
 
> On 14-Jul-2022, at 12:41 PM, Vivek Kumar  >
 wrote:
> 
> Hello Folks,
> We have deployed cloudstack 4.16.1 on ubuntu OS. Management service is
 working fine but getting error with cloudstack-usage. This is a clean new
 installation. Can someone help me out ? Pasting the details below -
> 
> 
> 
> root@SPRPVTCLDACS02:~# systemctl status cloudstack-usage
> ● cloudstack-usage.service - CloudStack Usage Server
> Loaded: loaded (/lib/systemd/system/cloudstack-usage.service;
 enabled; vendor preset: enabled)
> Active: activating (auto-restart) (Result: exit-code) since Thu
 2022-07-14 11:17:16 IST; 3s ago
>   Docs: http://www.cloudstack.org/  
> >
>Process: 294817 ExecStart=/bin/sh -ec /usr/bin/java
 -Dpid=${JAVA_PID} $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH $JAVA_CLASS
 (code=exited, status=1/FAILURE)
>   Main PID: 294817 (code=exited, status=1/FAILURE)
> 
> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: cloudstack-usage.service:
 Scheduled restart job, restart counter is at 4970.
> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Stopped CloudStack Usage
 Server.
> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Started CloudStack Usage
 Server.
> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN No appenders could
 be found for logger (com.cloud.utils.LogUtils).
> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN Please initialize
 the log4j system properly.
> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN See
 http://logging.apache.org/log4j/1.2/faq.html#noconfig 
  <
 http://logging.apache.org/log4j/1.2/faq.html#noconfig 
 > for more info.
> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Failed to load class
 "org.slf4j.impl.StaticLoggerBinder".
> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Defaulting to
 no-operation (NOP) logger implementation
> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: See
 http://www.slf4j.org/codes.html#StaticLoggerBinder 
  <
 http://www.slf4j.org/codes.html#StaticLoggerBinder 
 > for further details.
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878

Re: Usage service issue on Ubuntu

2022-07-28 Thread Vivek Kumar
Hello Wei, 

Any suggestion on below issue ?

Vivek Kumar
Sr. Manager - Cloud & DevOps
TechOps | Indiqus Technologies

vivek.ku...@indiqus.com 
www.indiqus.com 




> On 22-Jul-2022, at 1:52 PM, Vivek Kumar  wrote:
> 
> Hello Wei, 
> 
> Thanks for the response..! Please find the content below - 
> 
> 
> 
> 
> 
> 
> http://jakarta.apache.org/log4j/ 
> " debug="false">
> 
>
>
>
> 
>
>   
>   
> 
>   
>  
>   
>
> 
>
>
>
> 
>
> class="org.apache.log4j.rolling.RollingFileAppender">
>   
>   
>   
>  value="/var/log/cloudstack/usage/usage.log.%d{-MM-dd}{GMT}.gz"/>
>  value="/var/log/cloudstack/usage/usage.log"/>
>   
> 
>   
>  
>   
>
> 
>
>
>
> 
>
>  
>
> 
>
>
>   
>
> 
>
>   
>
> 
>
>  
>
> 
>
>
>
> 
>
>   
>   
>   
>
> 
> 
> 
> 
> Vivek Kumar
> Sr. Manager - Cloud & DevOps
> TechOps | Indiqus Technologies
> 
> vivek.ku...@indiqus.com 
>   www.indiqus.com 
> 
> 
> 
> 
>> On 22-Jul-2022, at 1:47 PM, Wei ZHOU > > wrote:
>> 
>> Hi Vivek,
>> 
>> Can you share the log4j conf file `/etc/cloudstack/usage/log4j-cloud.xml` ?
>> 
>> -Wei
>> 
>> On Fri, 22 Jul 2022 at 08:31, Vivek Kumar > >
>> wrote:
>> 
>>> Hello Folks,
>>> 
>>> Can anyone help me on this ?
>>> 
>>> 
>>> Vivek Kumar
>>> Sr. Manager - Cloud & DevOps
>>> TechOps | Indiqus Technologies
>>> 
>>> vivek.ku...@indiqus.com  
>>> >
>>>www.indiqus.com  >> >
>>> 
>>> 
>>> 
>>> 
 On 14-Jul-2022, at 12:41 PM, Vivek Kumar >>> >
>>> wrote:
 
 Hello Folks,
 We have deployed cloudstack 4.16.1 on ubuntu OS. Management service is
>>> working fine but getting error with cloudstack-usage. This is a clean new
>>> installation. Can someone help me out ? Pasting the details below -
 
 
 
 root@SPRPVTCLDACS02:~# systemctl status cloudstack-usage
 ● cloudstack-usage.service - CloudStack Usage Server
 Loaded: loaded (/lib/systemd/system/cloudstack-usage.service;
>>> enabled; vendor preset: enabled)
 Active: activating (auto-restart) (Result: exit-code) since Thu
>>> 2022-07-14 11:17:16 IST; 3s ago
   Docs: http://www.cloudstack.org/  
 >
Process: 294817 ExecStart=/bin/sh -ec /usr/bin/java
>>> -Dpid=${JAVA_PID} $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH $JAVA_CLASS
>>> (code=exited, status=1/FAILURE)
   Main PID: 294817 (code=exited, status=1/FAILURE)
 
 Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: cloudstack-usage.service:
>>> Scheduled restart job, restart counter is at 4970.
 Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Stopped CloudStack Usage
>>> Server.
 Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Started CloudStack Usage
>>> Server.
 Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN No appenders could
>>> be found for logger (com.cloud.utils.LogUtils).
 Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN Please initialize
>>> the log4j system properly.
 Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN See
>>> http://logging.apache.org/log4j/1.2/faq.html#noconfig 
>>>  <
>>> http://logging.apache.org/log4j/1.2/faq.html#noconfig 
>>> > for more info.
 Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Failed to load class
>>> "org.slf4j.impl.StaticLoggerBinder".
 Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Defaulting to
>>> no-operation (NOP) logger implementation
 Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: See
>>> http://www.slf4j.org/codes.html#StaticLoggerBinder 
>>>  <
>>> http://www.slf4j.org/codes.html#StaticLoggerBinder 
>>> > for further details.
 Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: An illegal
>>> reflective access operation has occurred
 Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Illegal reflective
>>> access by net.sf.cglib.core.ReflectUtils$1
>>> (file:/usr/share/cloudstack-usage/lib/cglib-nodep-3.3.0.jar) to me>
 Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Please consider
>>> reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
 Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Use
>>> --illegal-access=warn to enable warnings

Re: Usage service issue on Ubuntu

2022-07-22 Thread Vivek Kumar
Hello Wei, 

Thanks for the response..! Please find the content below - 






http://jakarta.apache.org/log4j/"; 
debug="false">

   
   
   

   
  
  

  
 
  
   

   
   
   

   
   
  
  
  


  

  
 
  
   

   
   
   

   
 
   

   
   
  
   

   
  
   

   
 
   

   
   
   

   
  
  
  
   




Vivek Kumar
Sr. Manager - Cloud & DevOps
TechOps | Indiqus Technologies

vivek.ku...@indiqus.com 
www.indiqus.com 




> On 22-Jul-2022, at 1:47 PM, Wei ZHOU  wrote:
> 
> Hi Vivek,
> 
> Can you share the log4j conf file `/etc/cloudstack/usage/log4j-cloud.xml` ?
> 
> -Wei
> 
> On Fri, 22 Jul 2022 at 08:31, Vivek Kumar 
> wrote:
> 
>> Hello Folks,
>> 
>> Can anyone help me on this ?
>> 
>> 
>> Vivek Kumar
>> Sr. Manager - Cloud & DevOps
>> TechOps | Indiqus Technologies
>> 
>> vivek.ku...@indiqus.com 
>>www.indiqus.com 
>> 
>> 
>> 
>> 
>>> On 14-Jul-2022, at 12:41 PM, Vivek Kumar 
>> wrote:
>>> 
>>> Hello Folks,
>>> We have deployed cloudstack 4.16.1 on ubuntu OS. Management service is
>> working fine but getting error with cloudstack-usage. This is a clean new
>> installation. Can someone help me out ? Pasting the details below -
>>> 
>>> 
>>> 
>>> root@SPRPVTCLDACS02:~# systemctl status cloudstack-usage
>>> ● cloudstack-usage.service - CloudStack Usage Server
>>> Loaded: loaded (/lib/systemd/system/cloudstack-usage.service;
>> enabled; vendor preset: enabled)
>>> Active: activating (auto-restart) (Result: exit-code) since Thu
>> 2022-07-14 11:17:16 IST; 3s ago
>>>   Docs: http://www.cloudstack.org/ 
>>>Process: 294817 ExecStart=/bin/sh -ec /usr/bin/java
>> -Dpid=${JAVA_PID} $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH $JAVA_CLASS
>> (code=exited, status=1/FAILURE)
>>>   Main PID: 294817 (code=exited, status=1/FAILURE)
>>> 
>>> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: cloudstack-usage.service:
>> Scheduled restart job, restart counter is at 4970.
>>> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Stopped CloudStack Usage
>> Server.
>>> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Started CloudStack Usage
>> Server.
>>> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN No appenders could
>> be found for logger (com.cloud.utils.LogUtils).
>>> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN Please initialize
>> the log4j system properly.
>>> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN See
>> http://logging.apache.org/log4j/1.2/faq.html#noconfig <
>> http://logging.apache.org/log4j/1.2/faq.html#noconfig> for more info.
>>> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Failed to load class
>> "org.slf4j.impl.StaticLoggerBinder".
>>> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Defaulting to
>> no-operation (NOP) logger implementation
>>> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: See
>> http://www.slf4j.org/codes.html#StaticLoggerBinder <
>> http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: An illegal
>> reflective access operation has occurred
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Illegal reflective
>> access by net.sf.cglib.core.ReflectUtils$1
>> (file:/usr/share/cloudstack-usage/lib/cglib-nodep-3.3.0.jar) to me>
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Please consider
>> reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Use
>> --illegal-access=warn to enable warnings of further illegal reflective
>> access operations
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: All illegal access
>> operations will be denied in a future release
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: Exception in thread "main"
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'usageVMSnapshotOnPrima>
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.jav>
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
>> org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
>>> Jul 14 11:17:30 SPRPVTCLDACS02 sh[29487

Re: Usage service issue on Ubuntu

2022-07-22 Thread Wei ZHOU
Hi Vivek,

Can you share the log4j conf file `/etc/cloudstack/usage/log4j-cloud.xml` ?

-Wei

On Fri, 22 Jul 2022 at 08:31, Vivek Kumar 
wrote:

> Hello Folks,
>
> Can anyone help me on this ?
>
>
> Vivek Kumar
> Sr. Manager - Cloud & DevOps
> TechOps | Indiqus Technologies
>
> vivek.ku...@indiqus.com 
> www.indiqus.com 
>
>
>
>
> > On 14-Jul-2022, at 12:41 PM, Vivek Kumar 
> wrote:
> >
> > Hello Folks,
> > We have deployed cloudstack 4.16.1 on ubuntu OS. Management service is
> working fine but getting error with cloudstack-usage. This is a clean new
> installation. Can someone help me out ? Pasting the details below -
> >
> >
> >
> > root@SPRPVTCLDACS02:~# systemctl status cloudstack-usage
> > ● cloudstack-usage.service - CloudStack Usage Server
> >  Loaded: loaded (/lib/systemd/system/cloudstack-usage.service;
> enabled; vendor preset: enabled)
> >  Active: activating (auto-restart) (Result: exit-code) since Thu
> 2022-07-14 11:17:16 IST; 3s ago
> >Docs: http://www.cloudstack.org/ 
> > Process: 294817 ExecStart=/bin/sh -ec /usr/bin/java
> -Dpid=${JAVA_PID} $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH $JAVA_CLASS
> (code=exited, status=1/FAILURE)
> >Main PID: 294817 (code=exited, status=1/FAILURE)
> >
> > Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: cloudstack-usage.service:
> Scheduled restart job, restart counter is at 4970.
> > Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Stopped CloudStack Usage
> Server.
> > Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Started CloudStack Usage
> Server.
> > Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN No appenders could
> be found for logger (com.cloud.utils.LogUtils).
> > Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN Please initialize
> the log4j system properly.
> > Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN See
> http://logging.apache.org/log4j/1.2/faq.html#noconfig <
> http://logging.apache.org/log4j/1.2/faq.html#noconfig> for more info.
> > Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Failed to load class
> "org.slf4j.impl.StaticLoggerBinder".
> > Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Defaulting to
> no-operation (NOP) logger implementation
> > Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: See
> http://www.slf4j.org/codes.html#StaticLoggerBinder <
> http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: An illegal
> reflective access operation has occurred
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Illegal reflective
> access by net.sf.cglib.core.ReflectUtils$1
> (file:/usr/share/cloudstack-usage/lib/cglib-nodep-3.3.0.jar) to me>
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Please consider
> reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Use
> --illegal-access=warn to enable warnings of further illegal reflective
> access operations
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: All illegal access
> operations will be denied in a future release
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'usageVMSnapshotOnPrima>
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.jav>
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:>
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java>
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at
> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
> > Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: 

Re: Usage service issue on Ubuntu

2022-07-21 Thread Vivek Kumar
Hello Folks,

Can anyone help me on this ?


Vivek Kumar
Sr. Manager - Cloud & DevOps
TechOps | Indiqus Technologies

vivek.ku...@indiqus.com 
www.indiqus.com 




> On 14-Jul-2022, at 12:41 PM, Vivek Kumar  wrote:
> 
> Hello Folks,
> We have deployed cloudstack 4.16.1 on ubuntu OS. Management service is 
> working fine but getting error with cloudstack-usage. This is a clean new 
> installation. Can someone help me out ? Pasting the details below - 
> 
> 
> 
> root@SPRPVTCLDACS02:~# systemctl status cloudstack-usage
> ● cloudstack-usage.service - CloudStack Usage Server
>  Loaded: loaded (/lib/systemd/system/cloudstack-usage.service; enabled; 
> vendor preset: enabled)
>  Active: activating (auto-restart) (Result: exit-code) since Thu 
> 2022-07-14 11:17:16 IST; 3s ago
>Docs: http://www.cloudstack.org/ 
> Process: 294817 ExecStart=/bin/sh -ec /usr/bin/java -Dpid=${JAVA_PID} 
> $JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH $JAVA_CLASS (code=exited, 
> status=1/FAILURE)
>Main PID: 294817 (code=exited, status=1/FAILURE)
> 
> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: cloudstack-usage.service: 
> Scheduled restart job, restart counter is at 4970.
> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Stopped CloudStack Usage Server.
> Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Started CloudStack Usage Server.
> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN No appenders could be 
> found for logger (com.cloud.utils.LogUtils).
> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN Please initialize the 
> log4j system properly.
> Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN See 
> http://logging.apache.org/log4j/1.2/faq.html#noconfig 
>  for more info.
> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Failed to load class 
> "org.slf4j.impl.StaticLoggerBinder".
> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Defaulting to no-operation 
> (NOP) logger implementation
> Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: See 
> http://www.slf4j.org/codes.html#StaticLoggerBinder 
>  for further details.
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: An illegal reflective 
> access operation has occurred
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Illegal reflective access 
> by net.sf.cglib.core.ReflectUtils$1 
> (file:/usr/share/cloudstack-usage/lib/cglib-nodep-3.3.0.jar) to me>
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Please consider reporting 
> this to the maintainers of net.sf.cglib.core.ReflectUtils$1
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Use --illegal-access=warn 
> to enable warnings of further illegal reflective access operations
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: All illegal access 
> operations will be denied in a future release
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: Exception in thread "main" 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'usageVMSnapshotOnPrima>
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.jav>
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:>
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java>
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:85)
> Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
> com.cloud.usage.UsageServer.start(UsageSer

Usage service issue on Ubuntu

2022-07-14 Thread Vivek Kumar
Hello Folks,
We have deployed cloudstack 4.16.1 on ubuntu OS. Management service is working 
fine but getting error with cloudstack-usage. This is a clean new installation. 
Can someone help me out ? Pasting the details below - 



root@SPRPVTCLDACS02:~# systemctl status cloudstack-usage
● cloudstack-usage.service - CloudStack Usage Server
 Loaded: loaded (/lib/systemd/system/cloudstack-usage.service; enabled; 
vendor preset: enabled)
 Active: activating (auto-restart) (Result: exit-code) since Thu 2022-07-14 
11:17:16 IST; 3s ago
   Docs: http://www.cloudstack.org/
Process: 294817 ExecStart=/bin/sh -ec /usr/bin/java -Dpid=${JAVA_PID} 
$JAVA_OPTS $JAVA_DEBUG -cp $CLASSPATH $JAVA_CLASS (code=exited, 
status=1/FAILURE)
   Main PID: 294817 (code=exited, status=1/FAILURE)

Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: cloudstack-usage.service: Scheduled 
restart job, restart counter is at 4970.
Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Stopped CloudStack Usage Server.
Jul 14 11:17:27 SPRPVTCLDACS02 systemd[1]: Started CloudStack Usage Server.
Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN No appenders could be 
found for logger (com.cloud.utils.LogUtils).
Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN Please initialize the 
log4j system properly.
Jul 14 11:17:27 SPRPVTCLDACS02 sh[294878]: log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Failed to load class 
"org.slf4j.impl.StaticLoggerBinder".
Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: Defaulting to no-operation 
(NOP) logger implementation
Jul 14 11:17:28 SPRPVTCLDACS02 sh[294878]: SLF4J: See 
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: An illegal reflective 
access operation has occurred
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Illegal reflective access 
by net.sf.cglib.core.ReflectUtils$1 
(file:/usr/share/cloudstack-usage/lib/cglib-nodep-3.3.0.jar) to me>
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Please consider reporting 
this to the maintainers of net.sf.cglib.core.ReflectUtils$1
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: Use --illegal-access=warn 
to enable warnings of further illegal reflective access operations
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: WARNING: All illegal access 
operations will be denied in a future release
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: Exception in thread "main" 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'usageVMSnapshotOnPrima>
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.jav>
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:>
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java>
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:85)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
com.cloud.usage.UsageServer.start(UsageServer.java:52)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
com.cloud.usage.UsageServer.main(UsageServer.java:41)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: Caused by: 
net.sf.cglib.core.CodeGenerationException: 
java.lang.ExceptionInInitializerError-->null
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:298)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: at 
net.sf.cglib.proxy.Enhancer$EnhancerFactoryData.newInstance(Enhancer.java:448)
Jul 14 11:17:30 SPRPVTCLDACS02 sh[294878]: