Bug #13051

AtoM Web Installer 504 timeout issue

Added by Steve Breker almost 3 years ago. Updated about 2 years ago.

Status:VerifiedStart date:05/23/2019
Priority:MediumDue date:
Assignee:-% Done:


Target version:Release 2.5.4
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:


The sfInstallPlugin process has a long running fastcgi call (loaddata) that sets up the db schema, loads all settings, and populates the ES index on a new AtoM install. On some systems this task runs longer than NGINX's fastcgi_read_timeout default of 60 seconds triggering 504 timeout errors in the browser during the install process. Adding a fastcgi_read_timeout value of 120 in the nginx/sites-enabled/atom file in the index.php section gets rid of the error. On a test VBox VM it was taking about 1 min 15 secs to complete and producing 504 errors in the browser.

It is called from here:

The long running server side tasks are run sequentially here:

Break these tasks up so that they can each complete in less than the default fastcgi_read_timeout setting of 60 secs.
Possible to break out into separate controllers? Maybe remove the ES index task so that this can just be run manually afterwards using the CLI task (perhaps it's doing more than just a search:populate?)

It is possible to work around this 504 if it appears by just keying in the next uri in the sfInstall process. See thread here:


Related issues

Related to Access to Memory (AtoM) - Bug #10648: Error 'The "i18n" object does not exist in the current co... Verified 12/07/2016
Related to Access to Memory (AtoM) - Task #13452: Replace AtoM's web installer with a command-line driven i... Verified 12/16/2020


#1 Updated by Steve Breker almost 3 years ago

  • Category set to Installation

#2 Updated by Dan Gillean about 2 years ago

  • Related to Bug #10648: Error 'The "i18n" object does not exist in the current context' added

#3 Updated by José Raddaoui Marín about 2 years ago

  • Status changed from New to Code Review
  • Assignee set to Mike Cantelon
  • Target version changed from Release 2.6.0 to Release 2.5.4

After some analysis we came up again with the same idea of splitting the load process in different actions. However, the initial tests of that implementation have shown that it's not a viable solution, while the search population part takes around one second, the MySQL data load takes between 2 and 4 minutes.

Nevertheless, after realizing that the same process takes around 30 seconds when it's done through the purge task, I could find that removing the transaction filter from the web installer reduces the data load time in there to the same 30 seconds. I still want (need) to find the reason why removing the transaction filter reduces the data load time, but the code is ready for review in:


#4 Updated by José Raddaoui Marín about 2 years ago

The problem seems to be that we were mixing Data Definition Language statements (CREATE and ALTER tables) with Data Manipulation Language statements (INSERT and UPDATE) in the same transaction. More information:


#5 Updated by José Raddaoui Marín about 2 years ago

I've updated the web installer fix after the latest findings. In the end, splitting the DDL and DML statements in two different request cycles, apart from splitting the data load time, it doesn't require to remove the transaction filter. During the process, I found a problem with the ES configuration management by the web installer, which is addressed in the same commit.

#6 Updated by Mike Cantelon about 2 years ago

  • Status changed from Code Review to Feedback
  • Assignee changed from Mike Cantelon to José Raddaoui Marín

Looks good Radda! Excellent commit messages specifying what's going on!

#7 Updated by José Raddaoui Marín about 2 years ago

  • Status changed from Feedback to QA/Review
  • Assignee changed from José Raddaoui Marín to Dan Gillean

Thanks Mike!

Merged in qa/2.6.x and cherry-picked to dev/2.5.x-performance-cherry-picks.

#8 Updated by Dan Gillean about 2 years ago

  • Status changed from QA/Review to Verified
  • Assignee deleted (Dan Gillean)
  • % Done changed from 0 to 100

#9 Updated by Dan Gillean over 1 year ago

  • Related to Task #13452: Replace AtoM's web installer with a command-line driven installation process added

Also available in: Atom PDF