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 <ugo.v...@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.v...@procne.it <mailto:ugo.v...@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 i...@procne.it
<mailto:i...@procne.it>.