Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jaime Israel Ramírez Hernández
Lock obtain timed out: PhantomReadLock
August 26, 2008 8:32 AM
Answer

Jaime Israel Ramírez Hernández

Rank: Regular Member

Posts: 115

Join Date: April 14, 2008

Recent Posts

Hello!!!

I answered this post on the legacy section but then I found this post about no new post o_O... so I decide to post it again emoticon

I'm running Liferay 5.1.1 with a MSSQL Server database and I'm getting this on my log:

 115:15:55,124 ERROR [LuceneUtil:240] Check Lucene directory failed for 0
 2
 3org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: PhantomReadLock[write.lock/LUCENE_0]
 4
 5        at org.apache.lucene.store.Lock.obtain(Lock.java:70)
 6
 7        at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:598)
 8
 9        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:410)
10
11        at com.liferay.portal.search.lucene.LuceneUtil.checkLuceneDir(LuceneUtil.java:231)
12
13        at com.liferay.portal.events.StartupAction.run(StartupAction.java:82)
14
15        at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:146)
16
17        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
18
19        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
20
21        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
22
23        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
24
25        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
26
27        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
28
29        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
30
31        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
32
33        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
34
35        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
36
37        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
38
39        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
40
41        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
42
43        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
44
45        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
46
47        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
48
49        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
50
51        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
52
53        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
54
55        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
56
57        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
58
59        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
60
61        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
62
63        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
64
65        at java.lang.reflect.Method.invoke(Method.java:597)
66
67        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
68
69        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


I haven't noticed anything on the portal.. perhaps just a little low in performance, but those errors are overpopulating (I don't know if this word exists emoticon ) my log file.

In my portal-ext.properties I have index.on.startup=true, lucene.store.type=jdbc and lucene.store.jdbc.auto.clean.up=true.

Thanks!!!!
Brian Scott Schupbach
RE: Lock obtain timed out: PhantomReadLock
January 23, 2009 2:02 PM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Have you found a fix for this issue? I am having the same issue. If anyone has any idea I would greatly appreciate it. This is kind of an emergency situation for us....
Jaime Israel Ramírez Hernández
RE: Lock obtain timed out: PhantomReadLock
January 23, 2009 2:07 PM
Answer

Jaime Israel Ramírez Hernández

Rank: Regular Member

Posts: 115

Join Date: April 14, 2008

Recent Posts

Hi Brian:

Well.. I upgraded to version 5.2 and I'm no longer getting that error, I haven't used it on production... will see what happends emoticon.

Greetings!!!
Jaime Israel Ramírez Hernández
RE: Lock obtain timed out: PhantomReadLock
January 23, 2009 5:57 PM
Answer

Jaime Israel Ramírez Hernández

Rank: Regular Member

Posts: 115

Join Date: April 14, 2008

Recent Posts

Hi Brian:

I don't have this error in version 5.2 because I'm not storing serach index on database, don't know if it's a problem with sql server or liferay and don't know if it's fixed on version 5.2 (and don't have a sql server here emoticon... perhaps I'll try it on monday).

But I didn't remember having any problem with the portal, did't try searching anything, maybe there's the problem.

Why is it an emergency situation?, are you having strange behaviors on portal?
Brian Scott Schupbach
RE: Lock obtain timed out: PhantomReadLock
January 26, 2009 7:31 AM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Thanks for the quick reply. It was an emergency situation because we had about 60 sites that were down for an extended period. I am using liferay 4.4. The problem was fixed by removing the lucene folder and restarting tomcat. Thank you for your help.