You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ugo Vasi <ug...@procne.it.INVALID> on 2018/09/24 08:02:59 UTC

cloudstack-usage does not start

Hi all,
after a fresh installation of ACS 4.11.1 we see that the 
cloudstack-usage  does not start giving these messages in 
/var/log/cloudstack/usage/usage.log:

INFO  [context.support.ClassPathXmlApplicationContext] (main:null) 
(logid:) Refreshing 
org.springframework.context.support.ClassPathXmlApplicationContext@48503868: 
startup date [Mon Sep 24 09:59:19 CEST 2018]; root of context hierarchy
INFO  [factory.xml.XmlBeanDefinitionReader] (main:null) (logid:) Loading 
XML bean definitions from class path resource [usageApplicationContext.xml]
INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor] 
(main:null) (logid:) JSR-330 'javax.inject.Inject' annotation found and 
supported for autowiring
INFO 
[context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] 
(main:null) (logid:) Bean 'transactionContextBuilder' of type 
[com.cloud.utils.db.TransactionContextBuilder] is not eligible for 
getting processed by all BeanPostProcessors (for example: not eligible 
for auto-proxying)
DEBUG [utils.crypt.EncryptionSecretKeyChecker] (main:null) (logid:) 
Encryption Type: file
WARN  [context.support.ClassPathXmlApplicationContext] (main:null) 
(logid:) Exception encountered during context initialization - 
cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'usageVolumeDaoImpl' defined in URL 
[jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.11.1.0.jar!/com/cloud/usage/dao/UsageVolumeDaoImpl.class]: 
BeanPostProcessor before instantiation of bean failed; nested exception 
is net.sf.cglib.core.CodeGenerationException: 
java.lang.ExceptionInInitializerError-->null

Any idea?



-- 

*Ugo Vasi* / System Administrator
ugo.vasi@procne.it <ma...@procne.it>




*Procne S.r.l.*
+39 0432 486 523
via Cotonificio, 45
33010 Tavagnacco (UD)
www.procne.it <http://www.procne.it/>


Le informazioni contenute nella presente comunicazione ed i relativi 
allegati possono essere riservate e sono, comunque, destinate 
esclusivamente alle persone od alla Società sopraindicati. La 
diffusione, distribuzione e/o copiatura del documento trasmesso da parte 
di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi 
dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003 
"Codice in materia di protezione dei dati personali". Se avete ricevuto 
questo messaggio per errore, vi preghiamo di distruggerlo e di informare 
immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail 
info@procne.it <ma...@procne.it>.


Re: cloudstack-usage does not start

Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi Ugo,


The usage server is unable to find the 'key' file, make sure to create a symlink to the key file. Are you trying to run the usage server on a server that does not have management server installed? If that's the case, you'll need to copy the key and db.properties file from the management server to the server where you're running usage server.



- Rohit

<https://cloudstack.apache.org>



________________________________
From: Ugo Vasi <ug...@procne.it.INVALID>
Sent: Wednesday, September 26, 2018 1:47:34 PM
To: users@cloudstack.apache.org
Subject: Fwd: cloudstack-usage does not start

I found this messages in /var/log/syslog:


Sep 26 10:14:02 server sh[28683]: Caused by:
com.cloud.utils.exception.CloudRuntimeException: key File containing
secret key not found in the classpath:
Sep 26 10:14:02 server sh[28683]: #011at
com.cloud.utils.crypt.EncryptionSecretKeyChecker.check(EncryptionSecretKeyChecker.java:83)
Sep 26 10:14:02 server sh[28683]: #011at
com.cloud.utils.db.DbProperties.getDbProperties(DbProperties.java:80)
Sep 26 10:14:02 server sh[28683]: #011at
com.cloud.utils.db.TransactionLegacy.<clinit>(TransactionLegacy.java:1009)
Sep 26 10:14:02 server sh[28683]: #011... 31 more
Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Main
process exited, code=exited, status=1/FAILURE
Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Unit
entered failed state.
Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Failed with
result 'exit-code'.

How can I fix this?


-------- Messaggio Inoltrato --------
Oggetto:         cloudstack-usage does not start
Data:    Mon, 24 Sep 2018 10:02:59 +0200
Mittente:        Ugo Vasi <ug...@procne.it.INVALID>
Rispondi-a:      users@cloudstack.apache.org
Organizzazione:  PROCNE SRL
A:       users@cloudstack.apache.org



Hi all,
after a fresh installation of ACS 4.11.1 we see that the
cloudstack-usage  does not start giving these messages in
/var/log/cloudstack/usage/usage.log:

INFO  [context.support.ClassPathXmlApplicationContext] (main:null)
(logid:) Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@48503868:
startup date [Mon Sep 24 09:59:19 CEST 2018]; root of context hierarchy
INFO  [factory.xml.XmlBeanDefinitionReader] (main:null) (logid:) Loading
XML bean definitions from class path resource [usageApplicationContext.xml]
INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor]
(main:null) (logid:) JSR-330 'javax.inject.Inject' annotation found and
supported for autowiring
INFO
[context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]
(main:null) (logid:) Bean 'transactionContextBuilder' of type
[com.cloud.utils.db.TransactionContextBuilder] is not eligible for
getting processed by all BeanPostProcessors (for example: not eligible
for auto-proxying)
DEBUG [utils.crypt.EncryptionSecretKeyChecker] (main:null) (logid:)
Encryption Type: file
WARN  [context.support.ClassPathXmlApplicationContext] (main:null)
(logid:) Exception encountered during context initialization -
cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'usageVolumeDaoImpl' defined in URL
[jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.11.1.0.jar!/com/cloud/usage/dao/UsageVolumeDaoImpl.class]:
BeanPostProcessor before instantiation of bean failed; nested exception
is net.sf.cglib.core.CodeGenerationException:
java.lang.ExceptionInInitializerError-->null

Any idea?



--

*Ugo Vasi* / System Administrator
ugo.vasi@procne.it <ma...@procne.it>




*Procne S.r.l.*
+39 0432 486 523
via Cotonificio, 45
33010 Tavagnacco (UD)
www.procne.it<http://www.procne.it> <http://www.procne.it/>


Le informazioni contenute nella presente comunicazione ed i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone od alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei dati personali". Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail info@procne.it <ma...@procne.it>.






rohit.yadav@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


Re: cloudstack-usage does not start

Posted by Dag Sonstebo <Da...@shapeblue.com>.
Ugo - what do you have listed under /etc/cloudstack/usage ?

You should see these symbolic links:


# cd /etc/cloudstack/usage/
# ll
total 4
lrwxrwxrwx. 1 root root   40 Jul 11 14:58 db.properties -> /etc/cloudstack/management/db.properties
lrwxrwxrwx. 1 root root   30 Jul 11 14:58 key -> /etc/cloudstack/management/key
-rw-r--r--. 1 root root 2968 Jun  6 10:30 log4j-cloud.xml



Regards, 
Dag Sonstebo
Cloud Architect
ShapeBlue
 S: +44 20 3603 0540  | dag.sonstebo@shapeblue.com | http://www.shapeblue.com <http://www.shapeblue.com/> | Twitter:@ShapeBlue <https://twitter.com/#!/shapeblue>

On 26/09/2018, 04:17, "Ugo Vasi" <ug...@procne.it.INVALID> wrote:

    I found this messages in /var/log/syslog:
    
    
    Sep 26 10:14:02 server sh[28683]: Caused by: 
    com.cloud.utils.exception.CloudRuntimeException: key File containing 
    secret key not found in the classpath:
    Sep 26 10:14:02 server sh[28683]: #011at 
    com.cloud.utils.crypt.EncryptionSecretKeyChecker.check(EncryptionSecretKeyChecker.java:83)
    Sep 26 10:14:02 server sh[28683]: #011at 
    com.cloud.utils.db.DbProperties.getDbProperties(DbProperties.java:80)
    Sep 26 10:14:02 server sh[28683]: #011at 
    com.cloud.utils.db.TransactionLegacy.<clinit>(TransactionLegacy.java:1009)
    Sep 26 10:14:02 server sh[28683]: #011... 31 more
    Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Main 
    process exited, code=exited, status=1/FAILURE
    Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Unit 
    entered failed state.
    Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Failed with 
    result 'exit-code'.
    
    How can I fix this?
    
    
    -------- Messaggio Inoltrato --------
    Oggetto: 	cloudstack-usage does not start
    Data: 	Mon, 24 Sep 2018 10:02:59 +0200
    Mittente: 	Ugo Vasi <ug...@procne.it.INVALID>
    Rispondi-a: 	users@cloudstack.apache.org
    Organizzazione: 	PROCNE SRL
    A: 	users@cloudstack.apache.org
    
    
    
    Hi all,
    after a fresh installation of ACS 4.11.1 we see that the 
    cloudstack-usage  does not start giving these messages in 
    /var/log/cloudstack/usage/usage.log:
    
    INFO  [context.support.ClassPathXmlApplicationContext] (main:null) 
    (logid:) Refreshing 
    org.springframework.context.support.ClassPathXmlApplicationContext@48503868: 
    startup date [Mon Sep 24 09:59:19 CEST 2018]; root of context hierarchy
    INFO  [factory.xml.XmlBeanDefinitionReader] (main:null) (logid:) Loading 
    XML bean definitions from class path resource [usageApplicationContext.xml]
    INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor] 
    (main:null) (logid:) JSR-330 'javax.inject.Inject' annotation found and 
    supported for autowiring
    INFO 
    [context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] 
    (main:null) (logid:) Bean 'transactionContextBuilder' of type 
    [com.cloud.utils.db.TransactionContextBuilder] is not eligible for 
    getting processed by all BeanPostProcessors (for example: not eligible 
    for auto-proxying)
    DEBUG [utils.crypt.EncryptionSecretKeyChecker] (main:null) (logid:) 
    Encryption Type: file
    WARN  [context.support.ClassPathXmlApplicationContext] (main:null) 
    (logid:) Exception encountered during context initialization - 
    cancelling refresh attempt: 
    org.springframework.beans.factory.BeanCreationException: Error creating 
    bean with name 'usageVolumeDaoImpl' defined in URL 
    [jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.11.1.0.jar!/com/cloud/usage/dao/UsageVolumeDaoImpl.class]: 
    BeanPostProcessor before instantiation of bean failed; nested exception 
    is net.sf.cglib.core.CodeGenerationException: 
    java.lang.ExceptionInInitializerError-->null
    
    Any idea?
    
    
    
    -- 
    
    *Ugo Vasi* / System Administrator
    ugo.vasi@procne.it <ma...@procne.it>
    
    
    
    
    *Procne S.r.l.*
    +39 0432 486 523
    via Cotonificio, 45
    33010 Tavagnacco (UD)
    www.procne.it <http://www.procne.it/>
    
    
    Le informazioni contenute nella presente comunicazione ed i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone od alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei dati personali". Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail info@procne.it <ma...@procne.it>.
    
    
    
    
    
    


Dag.Sonstebo@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


Fwd: cloudstack-usage does not start

Posted by Ugo Vasi <ug...@procne.it.INVALID>.
I found this messages in /var/log/syslog:


Sep 26 10:14:02 server sh[28683]: Caused by: 
com.cloud.utils.exception.CloudRuntimeException: key File containing 
secret key not found in the classpath:
Sep 26 10:14:02 server sh[28683]: #011at 
com.cloud.utils.crypt.EncryptionSecretKeyChecker.check(EncryptionSecretKeyChecker.java:83)
Sep 26 10:14:02 server sh[28683]: #011at 
com.cloud.utils.db.DbProperties.getDbProperties(DbProperties.java:80)
Sep 26 10:14:02 server sh[28683]: #011at 
com.cloud.utils.db.TransactionLegacy.<clinit>(TransactionLegacy.java:1009)
Sep 26 10:14:02 server sh[28683]: #011... 31 more
Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Main 
process exited, code=exited, status=1/FAILURE
Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Unit 
entered failed state.
Sep 26 10:14:02 server systemd[1]: cloudstack-usage.service: Failed with 
result 'exit-code'.

How can I fix this?


-------- Messaggio Inoltrato --------
Oggetto: 	cloudstack-usage does not start
Data: 	Mon, 24 Sep 2018 10:02:59 +0200
Mittente: 	Ugo Vasi <ug...@procne.it.INVALID>
Rispondi-a: 	users@cloudstack.apache.org
Organizzazione: 	PROCNE SRL
A: 	users@cloudstack.apache.org



Hi all,
after a fresh installation of ACS 4.11.1 we see that the 
cloudstack-usage  does not start giving these messages in 
/var/log/cloudstack/usage/usage.log:

INFO  [context.support.ClassPathXmlApplicationContext] (main:null) 
(logid:) Refreshing 
org.springframework.context.support.ClassPathXmlApplicationContext@48503868: 
startup date [Mon Sep 24 09:59:19 CEST 2018]; root of context hierarchy
INFO  [factory.xml.XmlBeanDefinitionReader] (main:null) (logid:) Loading 
XML bean definitions from class path resource [usageApplicationContext.xml]
INFO  [factory.annotation.AutowiredAnnotationBeanPostProcessor] 
(main:null) (logid:) JSR-330 'javax.inject.Inject' annotation found and 
supported for autowiring
INFO 
[context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] 
(main:null) (logid:) Bean 'transactionContextBuilder' of type 
[com.cloud.utils.db.TransactionContextBuilder] is not eligible for 
getting processed by all BeanPostProcessors (for example: not eligible 
for auto-proxying)
DEBUG [utils.crypt.EncryptionSecretKeyChecker] (main:null) (logid:) 
Encryption Type: file
WARN  [context.support.ClassPathXmlApplicationContext] (main:null) 
(logid:) Exception encountered during context initialization - 
cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'usageVolumeDaoImpl' defined in URL 
[jar:file:/usr/share/cloudstack-usage/lib/cloud-engine-schema-4.11.1.0.jar!/com/cloud/usage/dao/UsageVolumeDaoImpl.class]: 
BeanPostProcessor before instantiation of bean failed; nested exception 
is net.sf.cglib.core.CodeGenerationException: 
java.lang.ExceptionInInitializerError-->null

Any idea?



-- 

*Ugo Vasi* / System Administrator
ugo.vasi@procne.it <ma...@procne.it>




*Procne S.r.l.*
+39 0432 486 523
via Cotonificio, 45
33010 Tavagnacco (UD)
www.procne.it <http://www.procne.it/>


Le informazioni contenute nella presente comunicazione ed i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone od alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita sia ai sensi dell'art. 616 c.p., che ai sensi del Decreto Legislativo n. 196/2003 "Codice in materia di protezione dei dati personali". Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informare immediatamente Procne S.r.l. scrivendo all' indirizzo e-mail info@procne.it <ma...@procne.it>.