As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
RIGHT MAIN LANDING GEAR UNSAFE LIGHT REMAINED ILLUMINATED ENTIRE TRIP. DURING UPLATCH CHECK GEAR DOOR OPEN LIGHT ILLUMINATED, GEAR WAS RECYCLED. REPLACED LANDING GEAR CONTROL VALVE IAW DC-9 MM 32-32-1 PAGES 201 TO 205. SYSTEM OPS CHECKED GOOD IAW DC-9 MM 32-32-0 PAGES 201 TO 203.