I'm trying to update permissions for one of the roles.

I select the necessary permissions for about 10 terms with radio buttons and push "Save all" button to save them.

Then, after about 1 minute of waiting the browser displays a white screen with a message, that the page is unavailable.

The server remains loaded (mysqld and httpd are consuming lots of memory each) for about 7 minutes after the above error page is displayed. Then the memory figures settle down. But the permissions are not changed on the page for the corresponding role. Neither they are granted to that role.

Drupal: 6.4
TAC: 6.x-1.x-dev (2008-Aug-28) (taxomony_access.module 1.107.2.4)
MySQL: 5.0.51a
PHP: 5.2.6
There are about 1300 terms, 25 roles and about 10300 nodes on the site.

Comments

cpugeniusmv’s picture

Are there any more specific error messages that show up in your apache's error_log or Drupal's logs?

artem_sokolov’s picture

Nothing special in the logs. Except the Drupal's log is filled with messages like "Derivative images for image .. were regenerated" (it is always so after rebuilding permissions). In the mysqld log there seem to be many node-term permissions queries, but it is hard to say whether they succeed to update all the nodes.

I tried to cheat by modifying term_access table to grant necessary permissions to that particular role. Then I ran "Rebuild permissions" (/admin/content/node-settings). And it worked after the rebuild.

So, as far as I can conclude, something timeouts while rebuilding permissions on per node basis and the node permissions are updated in a different way as the button "Rebuild permissions" does.

May be the TAC module is not using the batch update mechanism implemented in "Rebuild permissions"?
(I remember rebuilding all permissions was a big problem in D5 - but in D6 it works differently)

cpugeniusmv’s picture

Which image module(s) do you have installed?

artem_sokolov’s picture

I have

  • Image
  • Image gallery (submodule of Image)
  • Image Import (submodule of Image)

installed.
(all 6.x-1.0-alpha3)

cpugeniusmv’s picture

Status: Active » Closed (fixed)

TAC definitely uses the batch method in core for rebuilding permissions. I doubt this is a TAC issue, but if you can find more information that indicates that it could be, please reopen.