Ross Millen struck a late winner into the top corner of the net as hosts Dunfermline knocked holders Raith out of the Petrofac Training Cup.
Pars keeper Ryan Scully had prevented Christian Nade from putting Raith ahead within a minute of the second half.
Rovers goalie Kevin Cuthbert produced good saves to deny Michael Moffat and Faissal El Bakhtaoui as Rovers' hold of the trophy came to an end.
Dunfermline will now meet Falkirk at home in the second round.
- 11ByrneBooked at 23minsSubstituted forThomsonat 87'minutes
- 7El-BakhtaouiSubstituted forUgwuat 88'minutes
- 3PerryBooked at 68mins
- 6FoxSubstituted forCallachanat 78'minutes
- 11ScottBooked at 32mins
- Alan Muir
- Shots on Target