An Acela train at Union Station. (Gerald Martineau/The Washington Post)

An Amtrak train traveling in Virginia had a mechanical problem on Sunday night, stranding riders near Richmond for several hours.

Amtrak train 91 was going from New York to Miami when an axle problem on the dining car halted the train just north of Richmond on Sunday at 9 p.m. The dining car couldn’t be moved because of the axle issue, while riders couldn’t be easily moved from the train because it was between stops, according to Amtrak.

Eventually, the tracks were greased and the train was slowly moved to the Richmond station. The train arrived in Richmond shortly after 6:30 a.m., nearly three hours after it began slowly moving and more than nine hours after the train first stopped moving. A replacement car was added and the train began moving again at 7:12 a.m.

The train’s 261 passengers had air conditioning and access to food, water and bathrooms during the stoppage, according to Amtrak.

Riders looking for a refund should call 1-800-USA-RAIL.