Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Wayback fails to restart due to com.sleepycat.je.EnvironmentFailureException #428

Open
schmika opened this issue Mar 25, 2020 · 2 comments

Comments

@schmika
Copy link

schmika commented Mar 25, 2020

After reboot Open Wayback crashes with the following error

org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter [RequestFilter]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localbdbresourceindex' defined in URL [file:/local/apache-tomcat-9.0.30/webapps/ROOT/WEB-INF/BDBCollection.xml]: Cannot create inner bean 'org.archive.wayback.resourceindex.bdb.BDBIndex#1b49a173' of type [org.archive.wayback.resourceindex.bdb.BDBIndex] while setting bean property 'source'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.archive.wayback.resourceindex.bdb.BDBIndex#1b49a173' defined in URL [file:/local/apache-tomcat-9.0.30/webapps/ROOT/WEB-INF/BDBCollection.xml]: Invocation of init method failed; nested exception is com.sleepycat.je.EnvironmentFailureException: (JE 4.1.6) Environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: Environment invalid because of previous exception: (JE 4.1.6) /xxxx/xxxx/index fetchTarget of 0x11e8/0x12424aa parent IN=22387642 IN class=com.sleepycat.je.tree.IN lastFullVersion=0x1221/0x1f4263f parent.getDirty()=false state=0 LOG_FILE_NOT_FOUND: Log file missing, log is likely invalid. Environment is invalid and must be closed.

After deleting the index, Open Wayback restarts without any problems.

Open Wayback version 2.4.0
Apache Tomcat 9.0.3
Java 11.0.6
Ubuntu

Could this be due to a bug in Berkeley DB JE 4.1.6? I've come across a similar error in the changelogs. Are there any plans of upgrading to a newer version of Berkeley DB JE?

Thank you in advance for any help you can provide.

@ldko
Copy link
Member

ldko commented Mar 31, 2020

Hi @schmika, unfortunately I can't provide much assistance with your issue, as I was unable to reproduce your error using the default OpenWayback configuration (except a different wayback.basedir that would persist after a reboot) with this environment:

OpenWayback 2.4.0
Apache Tomcat 9.0.33
Java 11.0.6
Ubuntu 18.04.4

Regarding upgrading Berkeley DB JE: at this point we are only providing minimal maintenance to OpenWayback (due to its age, its not keeping pace with website trends, and lack of developer resources) and encouraging people to use pywb. However we are still happy to consider pull requests submitted to upgrade/improve OpenWayback.

@schmika
Copy link
Author

schmika commented Apr 1, 2020

Hi @ldko, thank you for looking into it and getting back to me. I'll see whether I can figure out the issue and take a look at pywb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants