As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
STUDENT PILOT WAS ON A SOLO CROSS COUNTRY WHEN THE ENGINE LOST POWER, DECLARED AN EMERGENCY AND DIVERTED TO NEAREST AIRPORT. LANDED WITHOUT INCIDENT. MAINTENANCE ARRIVED AND RAN A MAGNETO CHECK. SHOWED RIGHT MAGNETO WAS DEAD AND ENGINE WAS RUNNING ONLY ON LEFT MAGNETO.