At 3 p.m. on the Friday after Hurricane Sandy hit New York City, the St. Jacobi church in Sunset Park, Brooklyn, was overflowing with boxes of water bottles, piles of clothes and volunteers baking bread pudding. The mood was busy and hopeful as 350 people helped sort donations from across Brooklyn to be sent out to neighborhoods like Staten Island and Far Rockaway that were devastated by the storm.

But one key element was missing: gasoline.

"We have a lot of everything right now," said Diana Aguinaga, a dental hygienist who was volunteering at the donation hub, a joint effort of 350.org and Occupy Wall Street. "What we really need is a car with gas." Outside the church, there were about 15 parked drivers loading and unloading supplies, though not all of them had enough gas in their tank to go as far as was needed.

All over New York City, the story was the same. Thursday, a deadly cocktail of mass power outages, port closures and skyrocketing demand for fuel shut down gas stations across New York and New Jersey, spurring mile-long lines and fights at the few pumps that remained open.

Now, the shortage is crippling aid organizations spearheading relief in devastated areas. While some national organizations like the Red Cross have managed to secure fuel, many local charities are using vehicles running on empty. Without gas, basic necessities like flashlights, clothing, food and water can't make it to people whose entire lives were wiped out by the storm.

"This problem with gas is a game changer," said Lisa Hines-Johnson, chief operating officier of the Food Bank for New York City, the city's main hunger relief nonprofit and one of the largest food banks in the country. The food bank had initially made an arrangement with a gas station near its 190,000 square foot warehouse in the Bronx to get fuel to its fleet of trucks. But that station ran out of gas Friday, making it difficult to deliver supplies to its 1,000-some agencies across the five boroughs.

Though the situation seems grim, officials have been working hard to get fuel to organizations like the Food Bank. The federal government is stepping in to ease the crisis. On Friday, President Barack Obama ordered the Department of Defense to send trucks carrying 12 million gallons of gas and 12 million gallons of diesel to help supply gas stations in the region. And on Friday, the U.S. Department of Homeland Security temporarily waived the so-called Jones Act, which requires that only U.S. ships transport goods between U.S. ports, to allow more foreign oil imports. Meanwhile, a large pipeline supplying fuel from the Gulf Coast, the Colonial Pipeline, started pumping fuel again to its tank farm in Linden, N.J. That will supply about 700,000 barrels a day to the region.

Also on Friday, New Jersey Gov. Chris Christie put in place a gas rationing system limiting the days on which cars can get fuel, based on whether their license plates end in even or odd numbers.

Earlier in the week, federal and state officials also loosened other regulations to let more fuel flow into the region. Storm-damaged refineries, waterways and storage terminals are slowly opening again.

Update: Late Friday President Obama ordered the Defense Department to buy up to 12 million gallons of gasoline and 10 million gallons of diesel fuel to be trucked to the region, and also ordered it to loan ultra-low-sulfur diesel fuel to the region from the Northeast Home Heating Oil Reserve.

Still, none of these steps are solving the biggest problem -- electricity. Gas stations in powerless areas are still unable to pump the gas they have out of the ground. "If we can get any power, there's gas in the tanks that drivers will get," said Phil Flynn, energy analyst at Price Futures Group in Chicago. "But for now the shortage is getting worse and worse."

Disaster relief contractors, who repair damaged homes, also began to feel the pinch on Friday. "We have hundreds of phone calls to respond to and our vehicles are running out of fuel," said Charles Deckert, general manager at Advanced Restoration in Babylon, N.Y., on Long Island. "This could really hurt us." On Friday morning, the wait for gas was three to four hours at the stations near Deckert's office.

On Friday, New Jersey utility PSE&G said it had made restoring power to refineries and gas stations a top priority. PSE&G reached out to the state's gas station trade association on Friday to find out which stations had gas and needed power.

As of Friday afternoon, there had been no such contact between New York utility Consolidated Edison and New York's gas stations, according to Ralph Bombardiere, head of the New York State Association of Service Stations and Repair Shops.

"If you know anybody from ConEd, tell them to give me a ring," Bombardiere said in a telephone interview.

ConEd did not respond to a request for comment. It restored power to some of lower Manhattan Friday afternoon, which could help alleviate the gas shortage in that borough, at least.

Though more fuel was flowing to the region on Friday, Bombardiere stuck to an assessment he'd made 24 hours earlier, that the severe gas shortages would last through the weekend, and that service would not return to "normal" until the end of next week.

Officials are currently rationing the little gas there is for critical services. In New York City, ambulances, police cars and fire trucks have gas, thanks to an agreement between the city and a major energy supplier. In New Jersey, certain gas stations have agreed to fuel only emergency vehicles.

Some national charities have also made arrangements to get fuel. The Red Cross has not been affected by the shortage because of its government partnerships, a spokesperson said on Thursday. The Salvation Army, meanwhile, has received fuel from the State of New Jersey and partnered with police to make sure its mobile feeding vehicles get priority service at gas stations, according to a spokesperson for the The Salvation Army Eastern Territory.

Grassroots relief efforts, such as the one at the St. Jacobi church, had to concoct other ways to get around the shortage, such as recruiting volunteers to use their personal cars and gas to deliver supplies.

"We're a little different than the nonprofits because we don't have to deal with a lot of the bureaucracy and legal challenges," said Yoni Miller, a volunteer and social media organizer for Occupy Sandy, as that group's relief effort is being dubbed. "We just get things done. And we get them done faster."

-- Janean Chun contributed reporting.

Loading Slideshow...
  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    The Hess gas station located at 45th street and 10th ave. in Manhattan was inundated with customers on Friday Nov. 2, 2012 as gas shortages in New York city became a problem in the aftermath of Hurricane Sandy. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of customers on foot carrying gas cans wait to have their containers filled at the Hess gas station located at 45th street and 10th ave. in Manhattan on Friday Nov. 2, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of cars wait to have their tanks filled at the Hess gas station located at 45th street and 10th ave. in Manhattan on Friday Nov. 2, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Cab driver John Ghriab waits in line to fill-up his gas tank at the Hess gas station located at 45th street and 10th ave in New York on Friday Nov. 2, 2012. Ghriab said he had entered the line at 29th street and 10th ave. and that it took him six hours to get to the gas station. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Silvio Fernandez, left along with Alex Alvarado help push a customer's car into the LUKOIL gas station located at Palisade Ave. and South Marginal Rd. in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Customers waited in their cars and stood in long lines at the LUKOIL gas station located at Palisade Ave. and South Marginal Rd. in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Customers waited in their cars and stood in long lines at the LUKOIL gas station located at Palisade Ave. and South Marginal Rd. in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Customers looking to purchase gas waited in their cars and stood in long lines at the Fuel Stop gas station located at 11th Street and John F. Kennedy Blvd in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Customers looking to purchase gas waited in their cars and stood in long lines at the Fuel Stop gas station located at 11th Street and John F. Kennedy Blvd in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    A customer looking to purchase gas breaks the line and is reprimanded and turned away by Union City Police Officers. Customers looking to purchase gas waited in their cars and stood in long lines at the Fuel Stop gas station located at 11th Street and John F. Kennedy Blvd in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Customers looking to purchase gas waited in their cars and stood in long lines at the Fuel Stop gas station located at 11th Street and John F. Kennedy Blvd in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    James Brown, left along with Adrian Arenas pose for a photo as they wait in line for gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    A customer who had waiting in line argued with Union City police officers after the gas station shut down because they had run out of gas. Customers looking to purchase gas waited in their cars and stood in long lines at the Fuel Stop gas station located at 11th Street and John F. Kennedy Blvd in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Jose Gonzales pays the attendant for his gas purchase at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Jose Pena, a customer looking to purchase gas waited checks out the line of cars leading up to the Fuel Stop gas station located at 11th Street and John F. Kennedy Blvd in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Alesandra Stankiewicz and her nephew Jayden sit at the gas pumps after they had just learned the gas station had run out of gas. Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Customer Joseph Adams makes change for another customer at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City, NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City, NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City, NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City, NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)

  • Gas Shortages Lead To Long Lines Amid Sandy Recovery

    Alesandra Stankiewicz and her nephew Jayden sit at the gas pumps after they had just learned the gas station had run out of gas. Long lines of cars and customers carrying gas cans wait to get gas at the Gas & Diesel B&S gas station located at 10th and Liberty Street in Union City, NJ on Thursday Nov. 1, 2012. There are heavy gas shortages due the the aftermath of Hurricane Sandy which made landfall in New Jersey on Monday Oct. 29, 2012. (Damon Dahlen, AOL)