I have set up Nexus 2.15 on a RHEL 8 server and confirmed the Nexus process is running as expected. When I log into the Nexus Repository Manager UI, I cannot see all of the repositories that are in the storage directory under the sonatype-work directory. As of right now, I only see the default repositories. Has anyone else experienced this situation? If so, how did you get all of the repositories to populate in the UI? Thanks.
Hey there, @dmac. Repository isn’t a web server that just dishes out the files that are behind it, it’s a binary management system that maintains a separate understanding of its configuration and (in most cases) a full index of the binaries it’s managing. In the case of Nexus 2, there’s a configuration XML file that defines (among other things) the repositories. In the case of Nexus 3, there’s an external PostgreSQL database (or for small installs, an embedded H2).
I’m assuming the storage directory was originally associated with another Nexus instance; you’ll need to ensure you’ve moved over the rest of the config (e.g. the entire sonatype-work folder). The repositories are defined in sonatype-work/nexus/conf.
Please note also that Nexus 2 is in extended maintenance; we recommend you migrate to Nexus 3.x at your earliest convenience.
Thanks for your help, once I copied over the repositories from our other Nexus instance to the new instance in the nexus.xml file the repositories showed up in the UI! We will definitely upgrade to Nexus 3.x soon.