It looks like you have a deadlock situation. Please send the actual error line here, otherwise it's pretty impossible to figure out what's wrong. It should appear after the NOTICE lines you posted.