Boeing safely landed its crew capsule in the New Mexico desert Sunday after a failed flight to the International Space Station that could hold up the company's effort to launch astronauts for NASA next year.

The Starliner descended into the army's White Sands Missile Range in the frigid predawn darkness, ending a two-day demo that should have lasted more than a week. A trio of red, white and blue parachutes popped open and airbags also inflated around the spacecraft to ease the impact.

"We pinpoint landed it," NASA administrator Jim Bridenstine said at a post-landing briefing.

The successful return capped a rocky start to a mission that was supposed to include a docking with the space station. Managers will review all the data before deciding whether to do another test flight or go straight to flying astronauts, said NASA's Steve Stich.

Today, <a href="https://twitter.com/BoeingSpace?ref_src=twsrc%5Etfw">@BoeingSpace</a>’s <a href="https://twitter.com/hashtag/Starliner?src=hash&ref_src=twsrc%5Etfw">#Starliner</a> spacecraft safely returned to Earth with a bullseye landing. Although the spacecraft didn’t reach its intended orbit and dock to the <a href="https://twitter.com/Space_Station?ref_src=twsrc%5Etfw">@Space_Station</a>, it did complete many test objectives for our <a href="https://twitter.com/Commercial_Crew?ref_src=twsrc%5Etfw">@Commercial_Crew</a> program: <a href="https://t.co/1jWkMI5oA6">https://t.co/1jWkMI5oA6</a> <a href="https://t.co/SEm2iKUviR">pic.twitter.com/SEm2iKUviR</a> —@NASA

After seeing this first test flight cut short and the space station docking cancelled because of an improperly set clock on the capsule, Boeing employees were relieved to get the Starliner back.

Recovery teams cheered as they watched the capsule drift down through the air and make a bull's-eye landing. The touchdown was broadcast live on NASA TV; infrared cameras painted the descending capsule in a ghostly white.

'A beautiful soft landing'

As the sun rose, close-up views showed the large white and black capsule upright, with hardly any scorch marks from re-entry, next to a U.S. flag waving from a recovery vehicle. The astronauts assigned to the first Starliner crew — two from NASA and one from Boeing — were part of the welcoming committee.

"A beautiful soft landing," said NASA astronaut Mike Fincke. "Can't wait to try it out."It was the first American-made capsule designed for astronauts to make a ground landing after returning from orbit. NASA's early crew capsules — Mercury, Gemini and Apollo — all had splashdowns. SpaceX's Dragon capsule, which made its orbital debut last winter with a test dummy, also aims for the ocean at mission's end.

Minutes after touchdown, top NASA and Boeing officials poured into Mission Control in Houston to congratulate the team. The newly returned Starliner also got a personalized name: Calypso, after Jacques Cousteau's boat.

The capsule's first trip to space began with a smooth rocket ride from Cape Canaveral on Friday. But barely a half hour into the flight, it failed to fire its thrusters to give chase to the space station and ended up in the wrong orbit.

The problem was with the Starliner's internal clock: It did not sync up with the Atlas V rocket and was off by 11 hours, according to Boeing's Jim Chilton.

A United Launch Alliance Atlas V rocket carrying the unmanned Boeing Starliner crew capsule on the orbital flight test to the ISS lifted off from Cape Canaveral, Fla., on Friday, but the flight was abandoned. (Terry Renna/Associated Press)

The capsule burned so much fuel trying to orient itself in orbit that there wasn't enough left for a space station rendezvous. Flight controllers tried to correct the problem, but between the spacecraft's position and a gap in communications, their signals did not get through. They later managed to reset the clock.

Boeing is still trying to figure out how the timing error occurred. The mission lasted nearly 50 hours and included 33 orbits around the Earth, about 100 orbits fewer than planned.

ISS residents get apology for getting no gifts

A test dummy named Rosie the Rocketeer, after Rosie the Riveter from the Second World War, rode in the commander's seat. Also returning were holiday presents, clothes and food that should have been delivered to the space station crew.

Even though not all goals were met including a station docking, "in my eyes, it was a huge success," said Boeing flight director Richard Jones.

There were no parachute problems this time. Last month, only two parachutes deployed during an atmospheric test because workers failed to connect a pin in the rigging.

"We didn't do everything we wanted to do, but we don't see anything wrong with this spaceship right now," despite the timing error, Chilton said. He apologized to the six space station residents for not delivering their Christmas presents.

Boeing had been shooting for its first astronaut launch in the first half of 2020. This capsule is supposed to be recycled for the second flight with crew; each Starliner is built to fly in space 10 times.

The capsule will return to Florida's Kennedy Space Center in two weeks for inspections and refurbishments.

"We've got a lot of learning in front of us," Bridenstine said. "But we have enough information and data to where we can keep moving forward in a very positive way.

Still hope for SpaceX launching of astronauts

Despite its own setbacks, SpaceX remains in the lead in NASA's commercial crew program.

SpaceX's Dragon crew capsule successfully completed its first orbital demo last March. While the flight to the space station went well, the capsule exploded a month later on a test stand at Cape Canaveral.

If a launch abort test goes well next month, SpaceX could start launching NASA astronauts by spring and end a nearly nine-year gap in flying people from Cape Canaveral.

A close-up view of the Starliner spacecraft on top of a United Launch Alliance Atlas V rocket on Thursday, ahead of its test flight. (Terry Renna/Associated Press)

As its space shuttle program was winding down, NASA looked to private industry to take over cargo and crew deliveries to the space station. SpaceX kicked off supply runs in 2012. Two years later, NASA hired SpaceX and Boeing to ferry astronauts to the orbiting lab.

SpaceX got $2.6 US billion under NASA's commercial crew program, while Boeing received more than $4 billion.

The goal was to launch NASA astronauts by 2017.

NASA astronaut Nicole Mann, flanked by Boeing astronaut Chris Ferguson, left, and NASA astronaut Mike Fincke were set to be the first crew to fly on the Starliner spacecraft, sometime next year. (Terry Renna/Associated Press)

Because of delays, NASA is looking to buy another two seats on Russian rockets in 2020 and 2021 to guarantee a continuing U.S. presence on the space station. Even when private companies are regularly carrying up astronauts for NASA, the space agency always will reserve a seat for a Russian in exchange for a free U.S. seat on a Soyuz.

Over the years, these Soyuz rides have cost NASA up to $86 million apiece, with the tab totalling in the billions.

A recent audit by NASA's inspector general found a Starliner seat will cost slightly more than that, with a Dragon seat going for just over half the price.