Yum Metadata Rebuild Failed

Is it possible you mistakenly ran nexus as root/with sudo? This could cause some files to change ownership.I would suggest doing the following to be safe:

chown -R nexus:nexus /path/to/nexus-install-directory

chown -R nexus:nexus /path/to/nexus-data-directory