Setting Group Permissions

racepics

Joined: 2006-03-30
Posts: 39
Posted: Sun, 2011-02-06 23:27

Hi all - just trying to change a group permission (in the root album of a large G2 installation) from
Everybody - [core] view-all-versions
to
Everybody - [core] view resized versions.
I have changed it in the actions drop-down list, but how do I commit the change? There doesnt appear to be a save button.
I've also tried removing the "Everybody - view resized versions" completely, but that just causes the page to go blank after a few seconds..

Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.3-1ubuntu9.3 apache2handler
Webserver = Apache/2.2.16 (Ubuntu)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-02-07 00:14
Quote:
I've also tried removing the "Everybody - view resized versions" completely, but that just causes the page to go blank after a few seconds..

If you're getting a blank page setting permissions then you're hitting resource limitations. That's actually a very resource intensive operation if you're setting permissions recursively through all sub-albums.

Clicking "Add Permission" or "Remove" is what performs the action. So once you click the Add Permission button the changes should be saved. Again, if it's crapping out because of resource limits that's another issue. How big is the album you're trying to set permissions on?
____________________________________________
Like Gallery? Like the support? Donate now!

 
racepics

Joined: 2006-03-30
Posts: 39
Posted: Mon, 2011-02-07 00:22

I suspected it might be a resource issue - there are some 26,000 images in various albums under the root album.
I have the php.ini memory limit set to 768mb which is about a third of my home server's total memory.
Do you know if there are any other limits built into the Ubuntu LAMP stack that I should be tweaking?

chris

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-02-07 00:41

Not that I know of. But if you have full control over the server. I'd be running top or htop while trying to do this to see what's happening. Could be mysql taking the hit.

Check your error logs, etc.
____________________________________________
Like Gallery? Like the support? Donate now!

 
racepics

Joined: 2006-03-30
Posts: 39
Posted: Mon, 2011-02-07 00:54

Good thinking..
Yes it isn't a memory issue. Apache is running the cpu load up to 100% (good excuse to build a new server :) )

I guess I'll have to change the permissions one album at a time.

Thanks for the tips

cheers
chris

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-02-07 02:13

How many Apache processes are running? Is it just one that's eating the box?
____________________________________________
Like Gallery? Like the support? Donate now!

 
racepics

Joined: 2006-03-30
Posts: 39
Posted: Mon, 2011-02-07 02:53

TOP lists just Apache2 and mysqld as far as I can see. Doesn't seem to be anything else very hungry. The Apache2 one goes to 100% cpu

I think I've found a workaround though.
If you un-tick the box in the root album that would make the changes recurring, Then remove "Everybody - [core] view-all-versions" it does it without complaining.
Then add the new permission "Everybody - [core] view resized versions" with the recurring box ticked and it seems to do so without issues.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2011-02-07 03:15

You will still need to go into each album and remove the view all versions permissions.

BTW, I'll jack up the php memory limit to 2/3 of available memory since it is your server and I presume you don't run anything else on it.

The server could probably use some optimisation as well.

--
dakanji.com