nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Witt <joe.w...@gmail.com>
Subject Re: OverlappingFileLockException while restarting
Date Thu, 25 May 2017 16:13:47 GMT
most likely there is another instance of nifi still running.  Check ps
-ef | grep nifi.  Kill that and try again.

Thanks

On Thu, May 25, 2017 at 12:10 PM, Karthik Kothareddy (karthikk) [CONT
- Type 2] <karthikk@micron.com> wrote:
> Hello,
>
> I am running 1.2.0 Snapshot on a Linux instance with some custom processors. I was trying
to update a certificate this morning and restart the instance and I'm stuck with the "OverlappingFileLockException".
The instance would not start and soon after I start it ,it will shutdown with the following
logs in bootstrap.log
>
> 2017-05-25 15:37:12,935 ERROR [NiFi logging handler] org.apache.nifi.StdErr Failed to
start web server: Unable to start Flow Controller.
> 2017-05-25 15:37:12,936 ERROR [NiFi logging handler] org.apache.nifi.StdErr Shutting
down...
> 2017-05-25 15:37:13,884 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started.
Will not restart NiFi
>
> However, I was going through the app-log to make sure everything is okay and I found
the below trace
>
>
> WARN [Thread-1] org.apache.nifi.web.server.JettyServer Failed to stop web server
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'flowService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'flowController': FactoryBean threw exception on object creation;
nested exception is java.lang.RuntimeException: java.nio.channels.OverlappingFileLockException
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
~[na:na]
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
~[na:na]
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585)
~[na:na]
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
~[na:na]
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
~[na:na]
>         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1060)
~[na:na]
>         at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextDestroyed(ApplicationStartupContextListener.java:103)
~[na:na]
>         at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:845)
~[na:na]
>         at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:546)
~[na:na]
>         at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:826)
~[na:na]
>         at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:356)
~[na:na]
>         at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1410)
~[na:na]
>         at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1374)
~[na:na]
>         at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:874)
~[na:na]
>         at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:272)
~[na:na]
>         at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:544) ~[na:na]
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
~[na:na]
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
~[na:na]
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161)
~[na:na]
>         at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
~[na:na]
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
~[na:na]
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
~[na:na]
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161)
~[na:na]
>         at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
~[na:na]
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
~[na:na]
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143)
~[na:na]
>         at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161)
~[na:na]
>         at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73)
~[na:na]
>         at org.eclipse.jetty.server.Server.doStop(Server.java:482) ~[na:na]
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
~[na:na]
>         at org.apache.nifi.web.server.JettyServer.stop(JettyServer.java:854) ~[na:na]
>         at org.apache.nifi.NiFi.shutdownHook(NiFi.java:188) [nifi-runtime-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at org.apache.nifi.NiFi$2.run(NiFi.java:89) [nifi-runtime-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'flowController': FactoryBean threw exception on object creation; nested exception
is java.lang.RuntimeException: java.nio.channels.OverlappingFileLockException
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
~[na:na]
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
~[na:na]
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585)
~[na:na]
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
~[na:na]
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
~[na:na]
>         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1060)
~[na:na]
>         at org.apache.nifi.spring.StandardFlowServiceFactoryBean.getObject(StandardFlowServiceFactoryBean.java:48)
~[na:na]
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
~[na:na]
>         ... 33 common frames omitted
> Caused by: java.lang.RuntimeException: java.nio.channels.OverlappingFileLockException
>         at org.apache.nifi.controller.FlowController.createFlowFileRepository(FlowController.java:641)
~[na:na]
>         at org.apache.nifi.controller.FlowController.<init>(FlowController.java:447)
~[na:na]
>         at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:375)
~[na:na]
>         at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:74)
~[na:na]
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
~[na:na]
>         ... 40 common frames omitted
> Caused by: java.nio.channels.OverlappingFileLockException: null
>         at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) ~[na:1.8.0_101]
>         at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) ~[na:1.8.0_101]
>         at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1063) ~[na:1.8.0_101]
>         at java.nio.channels.FileChannel.lock(FileChannel.java:1053) ~[na:1.8.0_101]
>         at org.wali.MinimalLockingWriteAheadLog.<init>(MinimalLockingWriteAheadLog.java:187)
~[na:na]
>         at org.wali.MinimalLockingWriteAheadLog.<init>(MinimalLockingWriteAheadLog.java:112)
~[na:na]
>         at org.apache.nifi.controller.repository.WriteAheadFlowFileRepository.initialize(WriteAheadFlowFileRepository.java:148)
~[na:na]
>         at org.apache.nifi.controller.FlowController.createFlowFileRepository(FlowController.java:637)
~[na:na]
>         ... 44 common frames omitted
> 2017-05-25 15:41:28,117 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown
completed (nicely or otherwise).
>
>
> Can anyone suggest anything at this point, I double checked all the server configurations
like jetty properties and web ports, everything seems to be normal. I still cannot think of
why this would be happening all of a sudden. Any help on this would be appreciated.
>
>
> Thanks
> Karthik
>
>
>
>
>

Mime
View raw message