Jump to content
  • 0

Erro : File is already opened and is locked: webrtcapp.db


mohsen karimi
 Share

Question

javax.servlet.ServletException: org.mapdb.DBException$FileLocked: File is already opened and is locked: webrtcapp.db	org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:432)	org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229)	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33)	org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364)	org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170)	org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84)

Root Cause

org.mapdb.DBException$FileLocked: File is already opened and is locked: webrtcapp.db	org.mapdb.volume.Volume.lockFile(Volume.java:495)	org.mapdb.volume.MappedFileVol.<init>(MappedFileVol.java:88)	org.mapdb.volume.MappedFileVol$MappedFileFactory.factory(MappedFileVol.java:64)	org.mapdb.volume.MappedFileVol$MappedFileFactory.makeVolume(MappedFileVol.java:38)	org.mapdb.StoreWAL$realVolume$1.invoke(StoreWAL.kt:75)	org.mapdb.StoreWAL$realVolume$1.invoke(StoreWAL.kt:18)	org.mapdb.StoreWAL.<init>(StoreWAL.kt:74)	org.mapdb.StoreWAL$Companion.make(StoreWAL.kt:56)	org.mapdb.StoreWAL$Companion.make$default(StoreWAL.kt:55)	org.mapdb.DBMaker$Maker.make(DBMaker.kt:464)	io.antmedia.datastore.db.MapDBStore.<init>(MapDBStore.java:63)	io.antmedia.datastore.db.DataStoreFactory.getDataStore(DataStoreFactory.java:78)	io.antmedia.AntMediaApplicationAdapter.getDataStore(AntMediaApplicationAdapter.java:782)	io.antmedia.console.AdminApplication.getAppLiveStreamCount(AdminApplication.java:289)	io.antmedia.console.rest.RestService.getSystemResourcesInfo(RestService.java:523)	sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	java.lang.reflect.Method.invoke(Method.java:498)	org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)	org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:243)	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)	org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)	org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)	org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)	org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277)	org.glassfish.jersey.internal.Errors$1.call(Errors.java:272)	org.glassfish.jersey.internal.Errors$1.call(Errors.java:268)	org.glassfish.jersey.internal.Errors.process(Errors.java:316)	org.glassfish.jersey.internal.Errors.process(Errors.java:298)	org.glassfish.jersey.internal.Errors.process(Errors.java:268)	org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)	org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)	org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)	org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416)	org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229)	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33)	org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364)	org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170)	org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84)

Root Cause

java.nio.channels.OverlappingFileLockException	sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)	sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)	sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1107)	java.nio.channels.FileChannel.tryLock(FileChannel.java:1155)	org.mapdb.volume.Volume.lockFile(Volume.java:490)	org.mapdb.volume.MappedFileVol.<init>(MappedFileVol.java:88)	org.mapdb.volume.MappedFileVol$MappedFileFactory.factory(MappedFileVol.java:64)	org.mapdb.volume.MappedFileVol$MappedFileFactory.makeVolume(MappedFileVol.java:38)	org.mapdb.StoreWAL$realVolume$1.invoke(StoreWAL.kt:75)	org.mapdb.StoreWAL$realVolume$1.invoke(StoreWAL.kt:18)	org.mapdb.StoreWAL.<init>(StoreWAL.kt:74)	org.mapdb.StoreWAL$Companion.make(StoreWAL.kt:56)	org.mapdb.StoreWAL$Companion.make$default(StoreWAL.kt:55)	org.mapdb.DBMaker$Maker.make(DBMaker.kt:464)	io.antmedia.datastore.db.MapDBStore.<init>(MapDBStore.java:63)	io.antmedia.datastore.db.DataStoreFactory.getDataStore(DataStoreFactory.java:78)	io.antmedia.AntMediaApplicationAdapter.getDataStore(AntMediaApplicationAdapter.java:782)	io.antmedia.console.AdminApplication.getAppLiveStreamCount(AdminApplication.java:289)	io.antmedia.console.rest.RestService.getSystemResourcesInfo(RestService.java:523)	sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	java.lang.reflect.Method.invoke(Method.java:498)	org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:76)	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:148)	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:191)	org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:243)	org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:103)	org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:493)	org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:415)	org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:104)	org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:277)	org.glassfish.jersey.internal.Errors$1.call(Errors.java:272)	org.glassfish.jersey.internal.Errors$1.call(Errors.java:268)	org.glassfish.jersey.internal.Errors.process(Errors.java:316)	org.glassfish.jersey.internal.Errors.process(Errors.java:298)	org.glassfish.jersey.internal.Errors.process(Errors.java:268)	org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:289)	org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:256)	org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:703)	org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:416)	org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:370)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:389)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:342)	org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:229)	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	io.antmedia.console.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:33)	org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364)	org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170)	org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.java:84)
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
Hi mohsen,

We are sorry for this. I will investigate this issue.

Could you please give us more detail about your use case?

* Operating system and version:
* Java version: 
* Ant Media Server version:
* Browser name and version:

### Short description
__Brief description of what happened__

### Expected behavior
__Put as much detail here as possible__

### Actual behavior
__Put as much detail here as possible__

### Steps to reproduce
1. 
2. 
3. 


### Logs (usr/local/antmedia/log/ant-media-server.log & antmedia-error.log)
__Place logs on [pastebin](http://pastebin.com/) or elsewhere and put links here__

Looking forwarding to hearing from you soon

May the Live Streaming be with you!

Thanks,
Selim
Link to comment
Share on other sites

  • 0
Hi Mr. Mohsen,

I will investigate and inform you.

For a now, if you delete webrtcapp.db in /usr/local/antmedia/webrtcapp.db and restart AMS, this problem will be solved.

Looking forwarding to hearing from you soon.

May the Live Streaming be with you!

Best Regards,
Selim
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...