# Corrupted psoc index

**URL:** <https://community.stardog.com/t/corrupted-psoc-index/3154>\
**Category:** Support\
**Created:** [July 21, 2021, 11:23am UTC](https://community.stardog.com/t/corrupted-psoc-index/3154 "2021-07-21T11:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoyum](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/hoyum/32/213_2.png) [@hoyum](https://community.stardog.com/u/hoyum)\
**Post date:** [July 21, 2021, 11:23am UTC](https://community.stardog.com/t/corrupted-psoc-index/3154/1 "2021-07-21T11:23:27Z")

</div>

Hi  
Got a corrupten Stardog index. With error message "Caused by: com.complexible.stardog.index.IndexException: Inconsistent index size for PSOC"

Tried repair and got the same message

ERROR 2021-07-21 13:13:37,466 [stardog-user-1] com.stardog.http.server.undertow.ErrorHandling:writeError(138): Unexpected error on the server  
com.complexible.stardog.StardogException: Database repair failed  
at com.complexible.stardog.StardogKernel.repair(StardogKernel.java:1604) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.protocols.http.server.AdminDatabaseService.repair(AdminDatabaseService.java:170) ~[stardog-protocols-http-server-5.3.6.jar:?]  
at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$5(ExtractRoutes.java:192) ~[stardog-protocols-http-server-5.3.6.jar:?]  
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [shiro-core-1.3.0.jar:1.3.0]  
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [shiro-core-1.3.0.jar:1.3.0]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0\_181]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0\_181]  
at java.lang.Thread.run(Thread.java:748) [?:1.8.0\_181]  
Caused by: com.complexible.stardog.db.DatabaseException: Inconsistent index size for PSOC; expected=1565443357, got= 1565443907  
at com.complexible.stardog.db.DatabaseImpl.repair(DatabaseImpl.java:993) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.StardogKernel.repair(StardogKernel.java:1587) ~[stardog-5.3.6.jar:?]  
... 7 more  
Caused by: com.complexible.stardog.index.IndexException: Inconsistent index size for PSOC; expected=1565443357, got= 1565443907  
at com.complexible.stardog.index.AbstractIndexData.verifySizes(AbstractIndexData.java:259) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.index.AbstractIndexData.createIndexes(AbstractIndexData.java:243) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.index.disk.DiskIndexData.(DiskIndexData.java:50) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.index.disk.DiskIndex.(DiskIndex.java:40) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.index.disk.DefaultDiskIndexReader.read(DefaultDiskIndexReader.java:129) ~[stardog-5.3.6.jar:?]  
at com.complexible.stardog.index.io.IndexIO.read(IndexIO.java:324) ~[stardog-5.3.6.jar:?]  
at

Yours sincerely  
Øystein Høyum

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [August 4, 2021, 11:23am UTC](https://community.stardog.com/t/corrupted-psoc-index/3154/2 "2021-08-04T11:23:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
