The Oahu Railway in Honolulu had a vibrant commuter rail system for years until at least the end of WWII. They shut down their lines west of Pearl Harbor in 1947 and converted to a terminal railway. The exact end of passenger and commuter rail on Oahu I can’t recall.