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 | [email protected] | http://www.shapeblue.com <http://www.shapeblue.com/> | Twitter:@ShapeBlue <https://twitter.com/#!/shapeblue> On 26/09/2018, 04:17, "Ugo Vasi" <[email protected]> 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 <[email protected]> Rispondi-a: [email protected] Organizzazione: PROCNE SRL A: [email protected] 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 [email protected] <mailto:[email protected]> *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 [email protected] <mailto:[email protected]>. [email protected] www.shapeblue.com Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue
