[fcrepo-user] error rebuilding FeSL policy cache

4 views
Skip to first unread message

ps552

unread,
Jan 27, 2011, 11:41:31 AM1/27/11
to fedora-com...@lists.sourceforge.net

Hi

fedora-rebuild.sh is throwing an error when I try to run option 3 rebuild the FeSL policy cache:

“unable to allocate memory for mutex; resize mutex region

Error: Error instantiating PolicyIndex org.fcrepo.server.security.xacml.pdp.data.DbXmlPolicyIndex”

the rest of the stack trace is 

org.fcrepo.server.security.xacml.pdp.data.PolicyIndexException: Error instantiating PolicyIndex org.fcrepo.server.security.xacml.pdp.data.DbXmlPolicyIndex

        at org.fcrepo.server.security.xacml.pdp.data.PolicyIndexFactory.newPolicyIndex(PolicyIndexFactory.java:38)

        at org.fcrepo.server.security.xacml.pdp.data.PolicyIndexRebuilder.init(PolicyIndexRebuilder.java:70)

        at org.fcrepo.server.utilities.rebuild.Rebuild.getUserInput(Rebuild.java:316)

        at org.fcrepo.server.utilities.rebuild.Rebuild.main(Rebuild.java:392)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.fcrepo.server.utilities.rebuild.cli.CLILoader.main(CLILoader.java:77)

Caused by: org.fcrepo.server.security.xacml.pdp.data.PolicyStoreException: Error: Cannot allocate memory

        at org.fcrepo.server.security.xacml.pdp.data.DbXmlManager.<init>(DbXmlManager.java:157)

        at org.fcrepo.server.security.xacml.pdp.data.DbXmlPolicyIndex.init(DbXmlPolicyIndex.java:99)

        at org.fcrepo.server.security.xacml.pdp.data.DbXmlPolicyIndex.<init>(DbXmlPolicyIndex.java:90)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at java.lang.Class.newInstance0(Class.java:355)

        at java.lang.Class.newInstance(Class.java:308)

        at org.fcrepo.server.security.xacml.pdp.data.PolicyIndexFactory.newPolicyIndex(PolicyIndexFactory.java:36)

        ... 8 more

Caused by: com.sleepycat.dbxml.XmlException: Error: Cannot allocate memory, errcode = DATABASE_ERROR

        at com.sleepycat.dbxml.dbxml_javaJNI.XmlManager_openContainerInternal__SWIG_0(Native Method)

        at com.sleepycat.dbxml.XmlManager.openContainerInternal(XmlManager.java:621)

        at com.sleepycat.dbxml.XmlManager.openContainer(XmlManager.java:197)

        at org.fcrepo.server.security.xacml.pdp.data.DbXmlManager.<init>(DbXmlManager.java:147)

        ... 17 more

 I have tried rebuilding the SQL database and resource index from scratch and then running it again both run perfectly well, but makes no difference.  Does anyone have any ideas? Cant believe the underlying cause is a memory problem

cat /proc/meminfo shows the following  (our install sits on a linux ubuntu box)

MemTotal:        2057832 kB

MemFree:          468324 kB

Buffers:          203732 kB

Cheers
Peri Stracchino
Digital Library Team
University of York
ext 4082

new email address peri.st...@york.ac.uk

ps552

unread,
Jan 27, 2011, 11:53:48 AM1/27/11
to peri.st...@york.ac.uk, Support and info exchange list for Fedora users.

sorted – corrupt pdp database

(the penny always drops just after you post, doesnt it ;-D)

 

***my email address has changed and may need updating in your address book***

 

Cheers
Peri Stracchino
Digital Library Team
University of York
ext 4082

new email address peri.st...@york.ac.uk

Reply all
Reply to author
Forward
0 new messages