Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

AMQ222141: Node Manager can not open file /data/message-broker/journal-directory/server.lock #494

Open
cmoulliard opened this issue Nov 3, 2016 · 0 comments

Comments

@cmoulliard
Copy link
Contributor

When we install the message broker using a hostPath persistent volume, then we get this error at bootstrap

I> No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed
Jolokia: Agent started with URL https://172.17.0.7:8778/jolokia/
2016-11-03 14:20:06.563:INFO:ifasjipjsoejs.Server:jetty-8.y.z-SNAPSHOT
2016-11-03 14:20:06.602:INFO:ifasjipjsoejs.AbstractConnector:Started [email protected]:9779

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.7.RELEASE)

HV000001: Hibernate Validator 5.2.4.Final
Starting Artemis on message-broker-2-b69nk with PID 1 (/app/message-broker-2.2.158.jar started by jboss in /app)
No active profile set, falling back to default profiles: default
Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@77846d2c: startup date [Thu Nov 03 14:20:07 UTC 2016]; root of context hierarchy
JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
Bound to persistent volume /data/message-broker/
AMQ222141: Node Manager can not open file /data/message-broker/journal-directory/server.lock
java.io.IOException: No such file or directory
	at java.io.UnixFileSystem.createFileExclusively(Native Method)[:1.8.0_91]
	at java.io.File.createNewFile(File.java:1012)[:1.8.0_91]
	at org.apache.activemq.artemis.core.server.NodeManager.setUpServerLockFile(NodeManager.java:157)[jar:file:/app/message-broker-2.2.158.jar!/lib/artemis-server-1.2.0.jar!/:1.2.0]
	at org.apache.activemq.artemis.core.server.impl.FileLockNodeManager.start(FileLockNodeManager.java:71)[jar:file:/app/message-broker-2.2.158.jar!/lib/artemis-server-1.2.0.jar!/:1.2.0]
	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:394)[jar:file:/app/message-broker-2.2.158.jar!/lib/artemis-server-1.2.0.jar!/:1.2.0]
	at org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:384)[jar:file:/app/message-broker-2.2.158.jar!/lib/artemis-jms-server-1.2.0.jar!/:1.2.0]
	at org.apache.activemq.artemis.jms.server.embedded.EmbeddedJMS.start(EmbeddedJMS.java:118)[jar:file:/app/message-broker-2.2.158.jar!/lib/artemis-jms-server-1.2.0.jar!/:1.2.0]
	at io.fabric8.msg.artemis.Artemis.start(Artemis.java:81)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-context-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-context-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at io.fabric8.msg.artemis.Artemis.main(Artemis.java:93)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:104)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:61)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)[jar:file:/app/message-broker-2.2.158.jar!/:]
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artemis': Invocation of init method failed; nested exception is java.io.IOException: No such file or directory
Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artemis': Invocation of init method failed; nested exception is java.io.IOException: No such file or directory
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-beans-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-context-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-context-4.2.7.RELEASE.jar!/:4.2.7.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[jar:file:/app/message-broker-2.2.158.jar!/lib/spring-boot-1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
	at io.fabric8.msg.artemis.Artemis.main(Artemis.java:93)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_91]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_91]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
	at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:104)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:61)[jar:file:/app/message-broker-2.2.158.jar!/:]
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)[jar:file:/app/message-broker-2.2.158.jar!/:]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant