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.
|Can apologises following sexism accusations|
|De Bruyne expects to be back for Manchester derby|
|Celtic 1 Rosenborg 0: Griffiths late show lifts Hoops|
|Woods eagles 18 to make 65 at Tour Championship|
|Arsenal 4 Vorskla 2: Aubameyang at the double in entertaining triumph|
|Dudelange 0 AC Milan 1: Deflected Higuain goal spares Gattuso´s blushes|
|Birthday boy Rashid inspires Afghanistan to Asia Cup win|
|Sarri feeling sorry for ´unlucky´ Morata|
|Ryder Cup pick Garcia shoots 66 at Portugal Masters|
|Ronaldo, Zidane, Cantona and the most infamous red cards|
|Villarreal 2 Rangers 2: Arfield and Lafferty steal point for Gerrard´s men|
|PAOK 0 Chelsea 1: Willian strikes as Morata misfires|
|Rain delays Ostapenko in Seoul, Wang books Guangzhou semi|
|Pochettino backs Kane to end goal drought|
|We figured it out - 76ers´ Markelle Fultz rebuilds jump shot|
|Joshua: Povetkin my second-toughest fight|
|Relaxed Pochettino not pushing panic button|
|Why Manchester City fans must fix their relationship with the Champions League|
|Majestic Giorgi ends Wozniacki´s reign in Tokyo|
|Pochettino unwilling to risk Alli fitness|
|Bigger Champions League tests to come, warns Pogba|
|Eight for 10! - Nadeem spins his way to world-record figures|
|A 4-1 lead cut to 3-2 by VAR, but Quakes have no complaints after Atlanta defeat|
|UEFA opens disciplinary proceedings against Ronaldo|
|Joshua v Povetkin: Recapping AJ´s previous world title defences|
|Players told to ink twice over showing tattoos at Rugby World Cup in Japan|
|Mariano targeting Spain call-up after goalscoring Madrid return|
|Pandya, Axar and Thakur out of Asia Cup|
|England omit Cipriani, Tuilagi and Ashton called up|
|Can reacts to Ronaldo´s red card: We are not women|
|One Year to Go: Five Rugby World Cup debutants set to shine|
|Shy Osaka not comfortable with new-found fame|
|Belgium and World Cup winners France make FIFA rankings history|
|Ronaldo wanted to impress - Bernardeschi sympathises after Juve superstar´s red|
|Van Dijk warns Liverpool: Believe we can win trophies or stay home|
|Menezes complains of anti-Brazilian conspiracy after Dede´s VAR red|
|Diamondbacks rout Cubs to remain in postseason picture|
|Modric embraces Ballon d´Or chants as Di Francesco backs Madrid star for award|
|MLS Review: Martinez helps Atlanta stage comeback amid VAR controversy|
|Kerevi recommits to Wallabies, Reds|
|Lyon to ban fan for life after footage of Nazi salute emerges|
|Milan must respect opponents – Gattuso not underestimating Dudelange|
|Copa Libertadores Review: Zarate leads Boca, River draw|
|Mourinho: Dalot can play at Man United for more than 10 years|
|Johnson hoping to erase East Lake demons|
|´No question´ Fitzgerald faces Bears, says Cardinals´ Wilks|
|Rodgers says roughing the passer penalties are ´going the wrong direction´|
|Ravens fined $200,000 for violating communication policy|
|LeBron James set to star in ´Space Jam´ sequel|
|Ronaldo red card ´absurd´, says Pjanic|
|Kovac hails ´special´ Sanches after Bayern goal|
|Marcelino: Tearful Ronaldo said he did nothing wrong|
|Fernandinho takes blame for Man City´s Lyon loss|
|Lovren denies any wrongdoing after perjury charge|
|Plzen boss Vrba slams late mistakes|
|I almost scored as many as Messi - Tagliafico the unlikely hero for Ajax|
|Ronaldo deserves Ballon d´Or not Modric, says Casemiro|
|United fan Rafael - I´ve never lost at City|
|Davis explains abrupt mid-game NFL retirement: ´Football is not for me´|
|Lopes pays tribute to under-fire Lyon coach Genesio|
|Toulon´s Bastareaud handed five-week ban|
|Steelers WR Brown disciplined for missing meeting|
|Arteta refuses to make excuses for Manchester City´s Lyon loss|
|Allegri calls for VAR after Ronaldo´s contentious red card|
|Championship Review: Boro go second, Birmingham still winless|
|Lopetegui: Mariano took his chance|
|Juventus proved their quality after Ronaldo red card - Bonucci|
|Pogba ´class´ impresses Mourinho|
|Man City not Champions League favourites, insists Bernardo Silva|
|Isco calls for Modric to win Ballon d´Or after Champions League win|