Nine parked wagons in a Port Chalmers yard slowly rolled back and hit a locomotive, disconnecting it from other wagons it was already attached to.