Current time: 05-19-2024, 06:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
Error 500
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #28
RE: Error 500
Imagine this:
1. User1 add subdomain -> engine-mgr is running -> ispcp-sub-mng is running and altering /etc/apache2/sites-available/ispcp.conf
2. reseller / admin modify another domain -> ispcp-dmn/sub/als/subals-mngr is running and try to alter same file.
Now if user1 lock engine, second user will not be able to run engine an must wait until a third user trigger engine.
How is supposed to work:
1. User trigger engine
2. Engine create lock.
3. Second user need to trigger engine. Gui check if engine lock exists, If yes, transmit header to prevent browser to drop connection, sleep sleep and retry until engine is unlocked.
Error 500 occur when waiting time >20/30 seconds (depends on configure).
Racing condition occur when 2`nd user trigger engine before 1`st instance create lock.
How can we avoid raceing?
1. Gui test daemon is running (otherwise we can lock the engine permanently). If not trigger error message and stop.
2. Gui test for lock file. If exists, wait, then recheck.
3. Create lock file, then trigger engine.
4. Engine perform request, then remove lock.
Permission will not be a problem as long as engine runs with root privilege.
08-29-2009 07:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Error 500 - theprincy - 08-26-2009, 08:10 AM
RE: Error 500 - theprincy - 08-27-2009, 01:36 AM
RE: Error 500 - kilburn - 08-27-2009, 03:42 AM
RE: Error 500 - theprincy - 08-27-2009, 09:02 AM
RE: Error 500 - theprincy - 08-27-2009, 08:20 PM
RE: Error 500 - nuke3d - 08-27-2009, 08:29 PM
RE: Error 500 - theprincy - 08-27-2009, 08:43 PM
RE: Error 500 - nuke3d - 08-27-2009, 09:33 PM
RE: Error 500 - theprincy - 08-27-2009, 09:36 PM
RE: Error 500 - nuke3d - 08-27-2009, 09:45 PM
RE: Error 500 - theprincy - 08-27-2009, 09:50 PM
RE: Error 500 - nuke3d - 08-27-2009, 09:56 PM
RE: Error 500 - theprincy - 08-27-2009, 10:01 PM
RE: Error 500 - nuke3d - 08-27-2009, 10:09 PM
RE: Error 500 - theprincy - 08-28-2009, 12:19 AM
RE: Error 500 - theprincy - 08-28-2009, 04:12 PM
RE: Error 500 - gOOvER - 08-28-2009, 04:41 PM
RE: Error 500 - theprincy - 08-28-2009, 04:46 PM
RE: Error 500 - theprincy - 08-28-2009, 06:35 PM
RE: Error 500 - kilburn - 08-28-2009, 07:15 PM
RE: Error 500 - gOOvER - 08-28-2009, 07:51 PM
RE: Error 500 - theprincy - 08-28-2009, 08:00 PM
RE: Error 500 - theprincy - 08-28-2009, 07:40 PM
RE: Error 500 - theprincy - 08-29-2009, 04:52 AM
RE: Error 500 - kilburn - 08-29-2009, 02:33 PM
RE: Error 500 - theprincy - 08-29-2009, 05:47 PM
RE: Error 500 - kilburn - 08-29-2009, 07:13 PM
RE: Error 500 - sci2tech - 08-29-2009 07:34 PM
RE: Error 500 - kilburn - 08-29-2009, 07:47 PM
RE: Error 500 - sci2tech - 08-29-2009, 08:02 PM
RE: Error 500 - kilburn - 08-29-2009, 09:51 PM
RE: Error 500 - sci2tech - 08-29-2009, 11:28 PM
RE: Error 500 - kilburn - 08-30-2009, 03:28 AM
RE: Error 500 - sci2tech - 08-30-2009, 03:50 AM
RE: Error 500 - kilburn - 08-30-2009, 06:53 PM
RE: Error 500 - sci2tech - 08-30-2009, 06:56 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)