A level crossing near miss occurred when a signaller, using a manual override to life the barriers, forgot a freight train was approaching.