Narrative:

On climb out passing through FL295 we got about 4 loud bangs. I retarded the throttles and leveled at FL310. Checked our engine instruments and nothing was out of limits. We acknowledged that they were compressor stalls and decided not to continue over water. The captain contacted the technician while I advised ARTCC that we were declaring an emergency and were looking to return to the coast. Between the dispatcher and technician; ZZZ was selected for our diversion airport. Once we began the descent the compressor stalls began again. I verified it was the right engine; once the throttles were at idle it stopped. We completed the engine checklist and the overweight landing checklist and landed safely at ZZZ.

Google
 

Original NASA ASRS Text

Title: A 767-300 flight crew diverted to a nearby airport after suffering repeated compressor stalls in the right engine.

Narrative: On climb out passing through FL295 we got about 4 loud bangs. I retarded the throttles and leveled at FL310. Checked our engine instruments and nothing was out of limits. We acknowledged that they were compressor stalls and decided not to continue over water. The Captain contacted the Technician while I advised ARTCC that we were declaring an emergency and were looking to return to the coast. Between the Dispatcher and Technician; ZZZ was selected for our diversion airport. Once we began the descent the compressor stalls began again. I verified it was the right engine; once the throttles were at idle it stopped. We completed the engine checklist and the overweight landing checklist and landed safely at ZZZ.

Data retrieved from NASA's ASRS site as of April 2012 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.