Narrative:

While performing maneuvers around 6;500 feet; pui (pilot under instruction) went to raise the landing gear; where we received a gear system fail cas message and a red indication on our nose gear. At that moment; the pui was unable to identify if the nose gear was still down or not as it was night time. I recycled the gear down where all 3 indications showed green. I then raised the gear a second time and the nose gear showed red. We began a turn back to ZZZ (from the practice area) and the pui was finally able to identify that the nose gear was still down. I attempted once more to recycle the remaining gear down and then back up but there was no change. I chose to then lower the landing gear a final time and proceed back to ZZZ with the gear extended. I wrote the plane up for maintenance after landing.

Google
 

Original NASA ASRS Text

Title: PA-44 instructor reported nose landing gear extend/retract system failed; resulting in flight back to home base with gear extended.

Narrative: While performing maneuvers around 6;500 feet; PUI (Pilot under instruction) went to raise the landing gear; where we received a Gear System Fail CAS message and a red indication on our nose gear. At that moment; the PUI was unable to identify if the nose gear was still down or not as it was night time. I recycled the gear down where all 3 indications showed green. I then raised the gear a second time and the nose gear showed red. We began a turn back to ZZZ (from the practice area) and the PUI was finally able to identify that the nose gear was still down. I attempted once more to recycle the remaining gear down and then back up but there was no change. I chose to then lower the landing gear a final time and proceed back to ZZZ with the gear extended. I wrote the plane up for maintenance after landing.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.