timeout upgrade 3.1.11 -> 3.2.1

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
Sajaki
Registered User
Posts: 1390
Joined: Mon Mar 02, 2009 1:41 pm
Location: Amsterdam
Contact:

timeout upgrade 3.1.11 -> 3.2.1

Post by Sajaki »

i'm testing updating board from 3.1.11 to 3.2.1 on localhost, following this guide https://www.phpbb.com/support/docs/en/3 ... upgrade31/

I got an error at 20 % :
The installer detected a timeout

The installer has detected a timeout, you may try to refresh the page, which may lead to data corruption. We suggest that you either increase your timeout settings or try to use the CLI.
my timeout settings on localhost are :

Code: Select all

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60	; Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (8MB)
what are the recommended settings ?
Last edited by Sajaki on Sun Oct 22, 2017 12:24 pm, edited 1 time in total.
User avatar
Sajaki
Registered User
Posts: 1390
Joined: Mon Mar 02, 2009 1:41 pm
Location: Amsterdam
Contact:

Re: timeout upgrade 3.1.11 -> 3.2.1

Post by Sajaki »

I increased the max_execution_time setting on localhost to 50, but then the progress bar stopped at 36%.

50 is the setting i have in production.

So this is an issue.
Blacktiger63
Registered User
Posts: 55
Joined: Thu Oct 17, 2013 7:43 pm

Re: timeout upgrade 3.1.11 -> 3.2.1

Post by Blacktiger63 »

Try to refresh the page, sometimes this helps.
Another one which might cause this is the memory_limit, try to set it to 256 to see if that helps.

Also since it's a temporary thing for upgrade only, set the max_execution_time to 120.
Same for max_input_time.

Check that post_max_size and upload_max_filesize are at least 32M.

Should work then. After the upgrade you can set it back as how you had it before, and then check if errors still occur.

You could also try a commandline upgrade, however you need ssh/terminal access for that:

Code: Select all

php bin/phpbbcli.php --safe-mode db:migrate
Or check the forums here on how to use the phpbbcli, I hope you set everything to prosilver before starting.
User avatar
Sajaki
Registered User
Posts: 1390
Joined: Mon Mar 02, 2009 1:41 pm
Location: Amsterdam
Contact:

Re: timeout upgrade 3.1.11 -> 3.2.1

Post by Sajaki »

the database updater still times out after 5 seconds at 71% with max_execution_time = 120 (seconds) and after using an import with deleted extension data.

And phpbbcli.php stops midway without a warning.

Code: Select all

php ./bin/phpbbcli.php db:migrate --safe-mode
Installed Schema: \phpbb\db\migration\data\v320\dev; Time: 0.00 seconds
Installed Data: \phpbb\db\migration\data\v320\dev; Time: 0.00 seconds
Installed Schema: \phpbb\db\migration\data\v320\allowed_schemes_links; Time: 0.00 seconds
Installed Data: \phpbb\db\migration\data\v320\allowed_schemes_links; Time: 0.00 seconds
Installed Schema: \phpbb\db\migration\data\v320\text_reparser; Time: 0.00 seconds
User avatar
Sajaki
Registered User
Posts: 1390
Joined: Mon Mar 02, 2009 1:41 pm
Location: Amsterdam
Contact:

Re: timeout upgrade 3.1.11 -> 3.2.1

Post by Sajaki »

The update on localhost now worked.

What did the trick was uninstalling all styles (except prosilver ofc), not merely deactivating them.
Post Reply

Return to “[3.2.x] Support Forum”