One of the biggest challenges of Aldi Novel Adilang's job was supposed to be boredom, as the sole caretaker of a wooden fishing hut miles out at sea. Instead, he was forced to survive more than a month on the ocean, after his hut lost its mooring and drifted from Indonesia to waters around Guam.

For 49 days, Aldi survived by stretching out his meager supplies, reportedly subsisting on fish and partially strained seawater. He had been living aboard a floating hut called a rompong, more than 77 miles off Indonesia's coast. But the line anchoring the hut had snapped in high winds, turning Aldi into a castaway.

Lacking any way to steer or power the unwieldy raft that carried his hut, Aldi, 19, drifted across the blue waters of the Pacific Ocean. The small hut sat on a rectangular wooden platform and was protected by a thatched roof. Inside, he had a walkie-talkie, a small stove and a generator. Aldi's supplies of food, water and fuel had been meant to last him only a week.

"After he ran out of the cooking gas, he burned the rompong's wooden fences to make a fire for cooking," said Mirza Nurhidayat, Indonesia's consul general in Osaka, Japan, who was quoted by The Jakarta Post. "He drank by sipping water from his clothes that had been wetted by sea water."

A passing ship, the Panama-flagged MV Arpeggio, finally rescued Aldi, pulling off an open-water rescue in which the castaway made a desperate leap to try to grab a rope thrown from a freighter. The Arpeggio was headed to Japan, and that's where Aldi went, before finally returning home earlier this month.

Aldi had been under a six-month contract to stay on the floating hut, with his main duty to light its lamps to attract fish at night. He had face-to-face contact with people only once a week, when new supplies were brought to him. But after his mooring line broke on July 14, he drifted for hundreds and possibly thousands of miles.

"Aldi said he had been scared and often cried while adrift," Fajar Firdaus, a diplomat at the consulate in Osaka, told the Post. "Every time he saw a large ship, he said, he was hopeful, but more than 10 ships had sailed past him, none of them stopped or saw Aldi."

That changed just after the Arpeggio had passed him, as Aldi was able to dial his radio to a frequency the vessel was using. His distress message — "Help Help Help" — reached the cargo ship's chief mate, Emmanuel Soriano, who informed the captain, Narciso Santillan — who ordered the ship to change course to carry out a rescue operation.

As video of the encounter shows, the freighter dwarfed the fish hut. It took four passes for the ship to get close enough to extract Aldi without endangering the wooden raft. To reach the freighter's deck, the young man had to cling to a life preserver in the water, before grabbing onto the bottom rungs of a wooden ladder so crew members could pull him free of the rolling ocean.

When he was brought aboard, Aldi, wearing shorts and a black Ferrari T-shirt, was given a blanket and water, followed by slices of dark bread. Within 5 minutes, he was able to stand, even managing a weak smile as someone offered a handshake. Other necessities followed, from a set of clothes to a haircut – given by the ship's cook, the Post reports.

After arriving at the Japanese port of Tokuyama on Sept. 6, Aldi had to spend another night on the cargo vessel. There were concerns about a possible health quarantine, and officials rushed to arrange travel documents for him that would allow him to disembark in Japan. He then traveled from Osaka to Tokyo and then flew to Jakarta, before finally making it back home.

On Sept. 9, Aldi returned to his family in North Sulawesi, an Indonesian province whose islands form the eastern ring of the Celebes Sea. The country's consulate in Osaka posted photos of the young man with his relatives in the coastal town of Manado.

Copyright 2018 NPR. To see more, visit http://www.npr.org/.