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

Bake fails on jbake.org due to duplicate SHA1 hashes in index #339

Closed
jonbullock opened this Issue Jan 30, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@jonbullock
Member

jonbullock commented Jan 30, 2017

Log:

JBake v2.5.1-SNAPSHOT (2017-01-30 21:05:09PM) [http://jbake.org]

21:35:34.365 [main] WARN com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract$2 - Current implementation of storage does not support sbtree collections
21:35:34.730 [main] WARN com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract$1 - Current implementation of storage does not support sbtree collections
21:35:34.750 [main] DEBUG org.jbake.app.ContentStore - Create document class 'page'
21:35:34.813 [main] DEBUG org.jbake.app.ContentStore - Create document class 'post'
21:35:34.899 [main] DEBUG org.jbake.app.ContentStore - Create document class 'masterindex'
21:35:34.966 [main] DEBUG org.jbake.app.ContentStore - Create document class 'archive'
21:35:35.017 [main] DEBUG org.jbake.app.ContentStore - Create document class 'feed'
21:35:35.102 [main] INFO org.jbake.template.ModelExtractors - register new extractors for document type: news
21:35:35.102 [main] INFO org.jbake.template.ModelExtractors - register new extractors for document type: masterindex
21:35:35.102 [main] INFO org.jbake.template.ModelExtractors - register new extractors for document type: tag
21:35:35.102 [main] INFO org.jbake.template.ModelExtractors - register new extractors for document type: sitemap
21:35:35.103 [main] DEBUG org.jbake.app.ContentStore - Create document class 'news'
21:35:35.147 [main] DEBUG org.jbake.app.ContentStore - Create document class 'tag'
21:35:35.198 [main] DEBUG org.jbake.app.ContentStore - Create document class 'sitemap'
21:35:35.244 [main] INFO org.jbake.app.Oven - Baking has started...
21:35:35.279 [main] INFO org.jbake.parser.AsciidoctorEngine - Initializing Asciidoctor engine...
21:35:38.812 [main] INFO org.jbake.parser.AsciidoctorEngine - Asciidoctor engine initialized.
21:35:39.191 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/community/index.ad]... (aa7332895e9668af87d87905f62cef06a1f5a4f8) : new 
21:35:39.396 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/community/sites.ad]... (5f5e90d7fbaabb1de6c51daee0d59563f2d1758f) : new 
21:35:39.435 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.2.1/configuration.ad]... (d323d7cad68ad44b46ff39452def3faa69c9bf5d) : new 
21:35:39.521 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.2.1/data-variables.ad]... (a2181494a2501d165326902dc483f7ae4755a3ba) : new 
21:35:39.593 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.2.1/getting-started.ad]... (337e5d321b3abd650d64ef03a34c60c8a54a701c) : new 
21:35:39.805 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.2.1/index.ad]... (1c8b844af7c81daf4d95f949ed5d73b065a8e301) : new 
21:35:39.877 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.2.1/project-structure.ad]... (b1ca7e72cb155706b0dc8944f3bd5545b380860d) : new 
21:35:39.911 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.3.0/configuration.ad]... (35faeafd1790f21f37924a49b38f6dd96b7feb86) : new 
21:35:39.960 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.3.0/data-variables.ad]... (e82035227e53654ac05ba0e231d3cee60900caf1) : new 
21:35:40.013 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.3.0/getting-started.ad]... (b8b608f1df38d9744d91d5b2e1b0bdf4e38a47c6) : new 
21:35:40.140 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.3.0/index.ad]... (7a86bbdfae5418666a5b2d3da6b8960bf54988ab) : new 
21:35:40.200 [main] INFO org.jbake.app.Crawler - Processing [/Users/jon/code/git/jbake.org/content/docs/2.3.0/project-structure.ad]... (f12fc4f829771a37a3c97522d154edfdf066b54c) : new 
21:35:40.231 [main] INFO com.orientechnologies.orient.core.Orient - - storage: cache...
21:35:40.232 [main] INFO com.orientechnologies.orient.core.Orient - OrientDB Engine shutdown complete
An unexpected error occurred: Cannot index record page{body:<div class="sect1">
<h2 id="configuration">Configuration</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The <code>jbake.properties</code> (or <code>custom.properties</code>) file allows you to override the default configuration of JBake.
You can change the name of the folder that stores your content or templates, decide whether to generate a
RSS feed or not. See <a href="https://github.com/jbake-org/jbake/blob/master/src/main/resources/default.properties">default.properties</a>
for what options you can override.</p>
</div>
<div class="sect2">
<h3 id="export_to_asciidoctor">Export to Asciidoctor</h3>
<div class="paragraph">
<p>If <code>asciidoctor.attributes.export</code> is set to true then the JBake configuration options are made available from within Asciidoctor
formatted pages. You can also set a prefix for the JBake configuration options by defining a value for <code>asciidoctor.attributes.export.prefix</code>.</p>
</div>
</div>
<div class="sect2">
<h3 id="default_status">Default Status</h3>
<div class="paragraph">
<p>You can avoid having to include a status value in every content file by setting a default using the option <code>default.status</code>. The default is
only used if one hasn&#8217;t been defined in the content file itself.</p>
</div>
</div>
</div>
</div>,jbake-status:published,manname-title:NAME,attribute-undefined:drop-line,linkcss:,doctime:22:00:48 BST,backend-html5:,type:page,docname:configuration,basebackend:html,authors:Jonathan Bullock,important-caption:Important,doctitle:Configuration,file:/Users/jon/code/git/jbake.org/content/docs/2.3.1/configuration.ad,prewrap:,docdir:,table-caption:Table,safe-mode-secure:,jbake-type:page,asciidoctor:,toc-title:Table of Contents,appendix-caption:Appendix,attribute-missing:skip,docdate:2014-05-10,note-caption:Note,max-include-depth:64,status:published,basebackend-html:,caution-caption:Caution,user-home:.,last-update-label:Last updated,rendered:false,uri:docs/2.3.1/configuration.html,toc-placement:auto,embedded:,sectids:,iconfont-remote:,figure-caption:Figure,authorcount:1,idprefix:,revdate:2013-10-17,stylesdir:.,docdatetime:2014-05-10 22:00:48 BST,safe-mode-name:secure,tip-caption:Tip,safe-mode-level:20,doctype:article,localdatetime:2017-01-30 21:35:40 GMT,authorinitials:JB,lastname:Bullock,sha1:35faeafd1790f21f37924a49b38f6dd96b7feb86,localdate:2017-01-30,date:Thu Oct 17 00:00:00 BST 2013,basebackend-html-doctype-article:,author:Jonathan Bullock,title:Configuration,warning-caption:Warning,stylesheet:,filetype:html,filetype-html:,tags:[1],localtime:21:35:40 GMT,example-caption:Example,untitled-label:Untitled,htmlsyntax:html,firstname:Jonathan,docfile:configuration.ad,asciidoctor-version:1.5.4,sourceuri:docs/2.3.1/configuration.html,outfilesuffix:.html,rootpath:../../,backend:html5,version-label:Version,iconsdir:./images/icons,webfonts:,backend-html5-doctype-article:,doctype-article:,notitle:,cached:true}: found duplicated key '35faeafd1790f21f37924a49b38f6dd96b7feb86' in index 'pagesha1Index' previously assigned to the record #9:7

@jonbullock jonbullock added the bug label Jan 30, 2017

@jonbullock jonbullock added this to the v2.5.1 milestone Jan 30, 2017

@jonbullock jonbullock self-assigned this Jan 30, 2017

@jonbullock

This comment has been minimized.

Show comment
Hide comment
@jonbullock

jonbullock Jan 30, 2017

Member

Caused by content pages that are identical so SHA1 hash generated is the same.

Member

jonbullock commented Jan 30, 2017

Caused by content pages that are identical so SHA1 hash generated is the same.

@ancho

This comment has been minimized.

Show comment
Hide comment
@ancho

ancho Jan 30, 2017

Member

Hihi. Jbake doesn't like documentation duplication as well 😜
Just kidding.

Member

ancho commented Jan 30, 2017

Hihi. Jbake doesn't like documentation duplication as well 😜
Just kidding.

@jonbullock

This comment has been minimized.

Show comment
Hide comment
@jonbullock

jonbullock Jan 30, 2017

Member

Haha 😜 took me a while to work out why I was getting that error!

Member

jonbullock commented Jan 30, 2017

Haha 😜 took me a while to work out why I was getting that error!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment