A train was driving slowly along the track with its lights on.