Permission rebuild fail My Drupal 7 site is upgraded from Drupal 6. When I install the Domain Access (not installed with Drupal 6) module, I need to rebuild permissions.

I tried rebuilding them from the administrative pages, but it fails; I tried doing it with Drush, but it failed again.

drush php-eval 'node_access_rebuild();'


I can't find any information in watchdog and PHP logs.

Does anyone know why it happens, or how I can fix this?
I was having a similar problem (Rebuild Permissions failing) and tracked it to Organic groups.


Go to Administration > Configuration > Organic groups > OG field settings
Under Bundles select the Group content type
Under Fields select Group visibility
Click Add field