# Failed When I Tried to Upgrade Nexus2 repository to Nexus3

**URL:** <https://community.sonatype.com/t/failed-when-i-tried-to-upgrade-nexus2-repository-to-nexus3/2803>\
**Category:** Sonatype Nexus Repository\
**Tags:** upgrade\
**Created:** [November 1, 2019, 1:24am UTC](https://community.sonatype.com/t/failed-when-i-tried-to-upgrade-nexus2-repository-to-nexus3/2803 "2019-11-01T01:24:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramujavad](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@ramujavad](https://community.sonatype.com/u/ramujavad)\
**Post date:** [November 1, 2019, 1:24am UTC](https://community.sonatype.com/t/failed-when-i-tried-to-upgrade-nexus2-repository-to-nexus3/2803/1 "2019-11-01T01:24:15Z")

</div>

I followed the steps provided on ‘[404 Page not found](https://help.sonatype.com/repomanager3/upgrading/upgrade-procedures)’ to upgrade our Nexus2 individual repositories to Nexus3. I upgraded most of them successfully. But It got failed for one repository with exception ‘Failed: java.lang.IllegalStateException: Scan failed’. I tried this several times by increasing file descriptors to ‘65536’ and also ‘85536’. I attached a screenshot to this Topic. Please anyone can suggest some solution.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/1X/8c50c1ad6f10bc290b0b61798afe2c3d027f1d2a.png)

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [November 1, 2019, 5:33pm UTC](https://community.sonatype.com/t/failed-when-i-tried-to-upgrade-nexus2-repository-to-nexus3/2803/2 "2019-11-01T17:33:53Z")

</div>

Have you checked the nexus.log files of both instances to see what errors occurred?

---

<div class="post-metadata">

**Author:** ![ramujavad](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@ramujavad](https://community.sonatype.com/u/ramujavad)\
**Post date:** [November 1, 2019, 9:17pm UTC](https://community.sonatype.com/t/failed-when-i-tried-to-upgrade-nexus2-repository-to-nexus3/2803/3 "2019-11-01T21:17:05Z")

</div>

Thanks for your advice, I figured out the issue in Nexus2 logs. There was one artifact missing from the server but not deleted from the database. I rebuilt metadata and restart upgrading that repository, Now it is upgraded successfully.
