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.
|Valencia 1 Celtic 0 (3-0 agg): Toljan sent off as Bhoys crash out|
|Arsenal 3 BATE 0 (3-1 agg): Emery´s men ease through|
|Woods to skip Honda Classic, play Arnold Palmer Invitational|
|Sarri recalls Hudson-Odoi for Malmo match|
|Silverwood in line for England job|
|WATCH: Norwegian goalkeeper scores stunning free-kick|
|Bencic ends Halep´s Dubai dreams|
|Playing conditions confirmed for The Hundred, reveals ECB|
|Manchester City fan suffered ´traumatic brain injury´ in alleged assault|
|Afghanistan too strong for Ireland in T20 opener|
|History-chasing Sri Lanka edge Proteas on day one|
|Tottenham an ´exciting and brilliant´ team, says Kanoute|
|Klopp fined £45,000 referee comments|
|Mourinho to analyse Clasico for beIN SPORTS|
|Ronaldo has won three Champions Leagues, not five – Atletico president Cerezo hits back at Juventus|
|Greatest Wales side ever? Not in my book, says Gatland|
|FA charge Millwall over racist chanting|
|Saiss signs new Wolves deal|
|Klopp impressed by Solskjaer´s ´brilliant job´ at United|
|De Jong excited to join ´greatest ever´ Messi at Barca|
|Gattuso ´not building anything´ at AC Milan|
|Manchester City fan in critical condition after alleged assault following Schalke game|
|Kovac wants repeat of Bayern´s defensive efforts|
|Semenya sets record straight over government funding for IAAF case|
|Tottenham´s Kane to be assessed ahead of Burnley clash|
|McIlroy to skip Irish Open|
|England rest Stokes and Buttler for Windies T20s|
|Lambert given two-game touchline ban after East Anglian derby fracas|
|Gatland puts faith in Anscombe to face England|
|PSG terminate Diarra contract|
|Nantes grant Cardiff extension over Sala payment, Warnock confirms|
|Horne replaces Russell for injury-hit Scotland in Paris|
|Eriksen´s agent ignoring transfer speculation|
|Moon and Nowell to start for England against Wales|
|PSG announce new shirt sponsor|
|Hearn expects Joshua-Usyk fight in 2020|
|Van Dijk wants to be a ´legend of Liverpool´|
|India lose Pandya for Australia T20s and ODIs|
|KNVB postpones Ajax game to boost Real Madrid preparations|
|Tigers land Rabbitohs flyer Jennings|
|Man United have new flow under Solskjaer - Wijnaldum|
|Manchester United v Liverpool: Herrera the unsung hero of resurgence|
|Manchester United v Liverpool: Alexander-Arnold gets chance to show growth at Old Trafford|
|Duke players, Coach K react to Zion Williamson’s knee injury|
|Barack Obama wishes Zion Williamson a ´speedy recovery´|
|CONCACAF Champions League Review: Santos Laguna hit Marathon for six|
|Morgan praises Root, Roy after record chase|
|LeBron sends best wishes to top NBA prospect Zion Williamson after injury|
|Schwartzman the latest seed to fall in Rio|
|Duke star Williamson suffers knee injury|
|Koke: VAR will give Morata a goal one day|
|´Everybody wants to actually talk about bull****´ – Irving angry over Durant video rumours|
|Ronaldo had a good game – Allegri backs Juventus star|
|We weren´t at our best – Tuchel after PSG´s 5-1 rout|
|LeBron James ready for Lakers´ playoff push|
|Allegri: Juventus not dead yet|
|Ronaldo: I´ve won five Champions Leagues, Atletico have zero|
|Machado picking Padres over White Sox might´ve been a mistake – Anderson|
|LaLiga dismisses Tebas to Premier League links|
|Simeone apologises for crotch-clutching celebration|
|Roy, Root star as England complete record run chase|
|City boss Guardiola defends VAR after confusion reigns at Schalke|
|Sterling: Schalke win shows where City are heading|
|PSG star Neymar heads to Brazil for treatment|
|Guardiola: City ´not ready´ to win Champions League despite beating Schalke|
|Paris Saint-Germain 5 Montpellier 1: Di Maria hits screamer as champions cruise|
|Schalke 2 Manchester City 3: 10-man visitors strike late through Sane & Sterling|
|Atletico Madrid 2 Juventus 0: Advantage Atleti after late double|
|Derby County 0 Millwall 1: Wallace dents Rams´ promotion hopes|
|Tsitsipas eases past Hurkacz in Marseille opener|