Try checking your drupal error log and also your web server's error log. This error could be an insufficient memory issue. if you have php running as FastCGI, check out your FcgidIOTimeout directive. by default it is set as 40. You can try to increase the value and see if it helps.