Appengine Flex NGINX 504 time out - HELP PLEASE

245 views
Skip to first unread message

Eduardo Lucas

unread,
Feb 26, 2020, 8:25:35 AM2/26/20
to Google App Engine
Hi All.

I'm having problems to increase the time out for appenfine flex runing php


I've followed the instructions to edit the nxing-app.conf but it isnt working.

An nginx-app.conf configuration file is included in the server section of the main NGINX configuration file. The default configuration file looks like this:

location / {
 
# try to serve files directly, fallback to the front controller
  try_files $uri
/$front_controller_file$is_args$args;
}

To define a custom configuration file, put a file named nginx-app.conf in the project root directory. The runtime will override the default file with the file you provided.


This is my  nginx-app.conf file


location / {

# try to serve files directly, fallback to the front controller
try_files $uri /$front_controller_file$is_args$args;
proxy_send_timeout 86400s;
proxy_read_timeout 86400s;
fastcgi_send_timeout 86400s;
fastcgi_read_timeout 86400s;

}





Can PLEASE someone help me?


Thanks in advance






Olu

unread,
Feb 28, 2020, 9:27:01 AM2/28/20
to Google App Engine
I see you followed instructions provided in this GitHub link[1]. From the details provided in your Custom nginx config file, I do not see any mis-configuration. Can you however, confirm that this file was added to the project root directory[2]? I also wonder if index.php is used as the framework front controller or your project uses something different. 

Eduardo Lucas

unread,
Mar 2, 2020, 11:48:38 AM3/2/20
to Google App Engine
Hi Olu,
Thanks for your reply 
Yes index.php is used, the app works fine but it times out after a few minutes.  All pages works fine the only problem is that it times out

Pierre-Yves (Google Cloud Support)

unread,
Mar 3, 2020, 11:12:41 AM3/3/20
to Google App Engine
Hello Eduardo,

Could you please post the full timeout error details, obfuscating any private information?
Also, have you noticed what the exact timeout duration is in seconds, according to the logs?
Reply all
Reply to author
Forward
0 new messages