Narrative:

Picked up aircraft X in ZZZ. The aircraft had arrived in ZZZ with a number 2 engine that was operating erratically and rolled back uncommanded. This occurred on the prior flight. I talked to maintenance and they showed me a photo of a broken duct that impinged hot air on a wire bundle and burned and melted it. It was repaired and we were to fly it [out]. The engine start takeoff and climb were normal. After level off the number 2 engine began to become erratic. N1 was fluctuating as well as fuel flow. This would continue for several minutes then stop. This cycle continued and started to get worse so we [notified ATC] and recovered at the closest airport in point of time. [The diversion airport] had favorable weather. Upon landing the ECAM alerted us to a fadec number two fault and upon taxi in the fault message cleared itself.

Google
 

Original NASA ASRS Text

Title: A300 flight crew reported a diversion due to critical engine malfunction.

Narrative: Picked up Aircraft X in ZZZ. The aircraft had arrived in ZZZ with a number 2 engine that was operating erratically and rolled back uncommanded. This occurred on the prior flight. I talked to maintenance and they showed me a photo of a broken duct that impinged hot air on a wire bundle and burned and melted it. It was repaired and we were to fly it [out]. The engine start takeoff and climb were normal. After level off the number 2 engine began to become erratic. N1 was fluctuating as well as fuel flow. This would continue for several minutes then stop. This cycle continued and started to get worse so we [notified ATC] and recovered at the closest airport in point of time. [The diversion airport] had favorable weather. Upon landing the ECAM alerted us to a FADEC number two fault and upon taxi in the fault message cleared itself.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.