It happened to me
The alternator tripped off and the hydraulic pump couldn't manage getting the gear up on battery. Also the alternator warning light was not working. We were wondering why the plane was so slow until we did some checking. Moving the gear handle up only managed to budge the gear just enough to have the green lights go out.