Robert Lewandowski's goal eight minutes from time spared Bayern Munich’s blushes as they toiled against fourth-tier side Drochtersen/Assel in the DFB-Pokal before winning 1-0.
Niko Kovac named arguably his strongest side possible but his team struggled to create chances against diligent and organised opponents until late on.
Thomas Muller thought he had opened the scoring with 12 minutes to go, only for Franck Ribery to be adjudged offside, before Lewandowski finally put Bayern ahead by diverting Leon Goretzka's shot home.
Nevertheless, it was hardly a convincing performance from Kovac's men ahead of their Bundesliga opener next week.
Bayern's big guns had been rolled out at the Kehdinger Stadion but they were limited to few opportunities.
Javi Martinez had a header cleared off the line and Mats Hummels nodded over, yet Drochtersen/Assel were otherwise comfortable in the first half.
They even threatened themselves when Manuel Neuer, on his 300th Bayern appearance, saved from Florian Nagel with his feet.
It was more of the same after the break and within six minutes Kovac called for Kingsley Coman and Goretzka from the bench.
Thiago Alcantara then saw a shaped shot from range crash back off the crossbar and fall the right side of the line from a Drochtersen/Assel perspective.
The fourth-tier side would have welcomed a break to regroup and they got one as Bayern fans threw beachballs and tape onto the pitch in an apparent protest.
Play eventually restarted, after substitute Sandro Wagner had appealed for calm, and Bayern lost momentum.
Facing extra-time, Bayern finally had the ball in the net when Muller poked in Coman's cross only for a hurdling Ribery to be deemed offside.
Yet Kovac's side found a way through again shortly after. After good work from Ribery, Goretzka fired in a shot and Lewandowski stuck out a leg to divert the ball into the net, as Bayern breathed a sigh of relief.
What does it mean: Kovac has work to do
Having made an excellent first impression when his Bayern side routed Eintracht Frankfurt 5-0 in the DFL-Supercup final, Kovac’s honeymoon period may soon be over.
Bayern were overwhelming favourites to not just win, but win comfortably, and they looked worryingly short of ideas.
Smaller teams in the Bundesliga will surely have noted Drochtersen/Assel’s tactics when it comes to trying to stop Kovac's side in the league.
Pat on the back: Drochtersen/Assel’s diligent showing
Teams far superior to Drochtersen/Assel have been picked apart at will by Bayern so their display deserves plaudits.
They were brilliantly organised, unafraid to play it about when they could and deserved to take their illustrious opponents to extra time.
Boot up the backside: Arjen anonymous as Bayern struggle
Kovac would have been looking to Ribery and Arjen Robben to create openings and though the former finally woke up late on, Bayern's other winger was anonymous before being replaced early in the second half.
With Coman and James Rodriguez candidates to come into the team, Robben cannot afford too many poor performances.
Kovac's side will look to improve when Bayern's Bundesliga title defence begins at home to Hoffenheim on Friday. Drochtersen/Assel will be expecting a more straightforward assignment when they return to Regionalliga Nord action.
|Griezmann rejection ´hurt´ Barcelona, says Xavi|
|Rosberg ´strongly inspired´ by Lauda|
|Borussia Dortmund sign Germany defender Schulz|
|My blood is blue - Giroud relishing facing Arsenal in Europa League final|
|Wolff: Mercedes has lost a guiding light in legendary Lauda|
|Archer, Dawson named in England squad|
|Niki Lauda: Hill mourns ´remarkable´ three-time F1 champion|
|Bale named in Wales training squad amid Madrid exit speculation|
|Osasuna seal LaLiga return|
|Don´t underrate Warriors´ five straight NBA Finals – Kerr|
|Mets snap five-game losing streak|
|Warriors first team to five straight NBA Finals since 1966 Celtics|
|Green plans to fly out reporter for NBA Finals: You were good luck today|
|Three takeaways from Warriors´ sweep of Trail Blazers|
|Curry & Warriors team-mate Green make NBA playoff history|
|Warriors sweep Trail Blazers to reach NBA Finals|
|Mbappe wanted Madrid but PSG convinced him to stay – Emery|
|Pelinka: Lakers can win NBA championship next year|
|Three-time F1 champion Niki Lauda dies aged 70|
|Pochettino or Sarri for Juve? We´ll see – Lippi|
|Buccaneers release McCoy after nine seasons|
|England want to leave Europe and they´re in two finals – Mancini jokes about Brexit|
|Raptors star Leonard ´will be ready´ to face Bucks – Nurse|
|Iguodala out of Game 4 against Trail Blazers|
|Allegri inducted into Italian Football Hall of Fame|
|Steelers QB Roethlisberger ´genuinely sorry´ for Brown comments|
|Mets´ Cespedes fractures ankle in ranch accident|
|Italy remain at top table, Great Britain rally to relegate France|
|Guardiola convinced Kompany´s destined to return to Manchester City|
|Yastremska sets up Stosur clash in Strasbourg|
|Anderson stars for Lancashire on return from injury|
|Ebden and Seppi shocked in Geneva, Humbert shines at Lyon Open|
|AFC Champions League Review: Spain great Xavi ends playing career with defeat|
|Bernardo Silva makes Champions League pledge after winning Man City award|
|Henin impressed by Halep ahead of French Open defence|
|I love you, I´m out - Departing Kompany has his mic-drop moment in City´s trophy parade|
|Abelardo opts to leave post as Alaves coach|
|Magic Johnson points finger at Pelinka after Lakers power struggle|
|Junaid deletes inflammatory tweet following World Cup squad omission|
|Bosz: Champions League improves chances of keeping Brandt & Havertz|
|PSG insist Mbappe will stay despite forward´s ´new project´ comments|
|Former Salford forward Turgut hospitalised with ´severe injuries´|
|Potter takes over as Brighton and Hove Albion boss|
|Ancelotti happy at Napoli amid Juventus links|
|Hemel Stags on course for Ottawa relocation, New York club a work in progress|
|Nadal overtakes Federer´s top-10 streak|
|Omitting Wahab and Amir would have been foolish - Inzamam|
|Scotland appoint Kilmarnock boss Clarke|
|I´ll keep my place if Pogba arrives at Madrid – Kroos|
|Kroos: Madrid struggles ´normal´ after Champions League dominance|
|Pogba, Hazard and Mbappe in, Bale and Isco out? - Real Madrid set for busy close-season|
|Double amputee Monger stunned by Grand Prix de Pau triumph|
|Walter to take over Stuttgart from next season|
|Giannis expects Milwaukee to buck their ideas up after Game 3 loss|
|Bolivian FA confirms death of referee Victor Hugo Hurtado|
|Australia opener Burns leaves Lancashire for personal reasons|
|Record-breaking female driver Chadwick lands Williams development chance|
|Semedo cleared of concussion to boost Barcelona|
|Iguodala questionable for Game 4|
|Neymar should not captain Brazil at Copa America - Edmilson|
|Wahab, Amir and Asif named in final Pakistan World Cup squad|
|Bale staying at Madrid impossible as Zidane is ´not keen´ - Calderon|
|Kroos agrees Real Madrid extension to 2023|
|Gundogan to renew contract talks with Manchester City|
|Folau opts not to appeal against Rugby Australia ban, still considering options|
|Nadal clear French Open favourite – Djokovic|
|Nedved: No Juve decision amid Sarri and Inzaghi links|
|Gil Marin: We need players totally committed to Atletico|
|Gardner´s big game helps Yankees pull away from Rays|
|This is playoff basketball – Leonard on playing through injury in Raptors win|