504 Gateway Timeout even when Timeout is set to 600 The 2019 Stack Overflow Developer Survey...

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

How to pronounce 1ターン?

Change bounding box of math glyphs in LuaTeX

How can I protect witches in combat who wear limited clothing?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

The variadic template constructor of my class cannot modify my class members, why is that so?

Is this wall load bearing? Blueprints and photos attached

I could not break this equation. Please help me

Derivation tree not rendering

Why is superheterodyning better than direct conversion?

What's the point in a preamp?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

How do I add random spotting to the same face in cycles?

First use of “packing” as in carrying a gun

Typeface like Times New Roman but with "tied" percent sign

Arduino Pro Micro - switch off LEDs

What are these Gizmos at Izaña Atmospheric Research Center in Spain?

Why can't wing-mounted spoilers be used to steepen approaches?

system() function string length limit

In horse breeding, what is the female equivalent of putting a horse out "to stud"?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Road tyres vs "Street" tyres for charity ride on MTB Tandem

Would an alien lifeform be able to achieve space travel if lacking in vision?



504 Gateway Timeout even when Timeout is set to 600



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Error 504 Gateway timeout504 gateway timeout when accessing by hostname, but not by IPZend Framework on PHP 7Issue installing Ioncube with PHP 5.6.11 with Apache 2.4.16 on centOS 6.7HTTP webserver gateway timeout 504 only from one ISPRun cronjob error Undefined index: REQUEST_URIPHP 7.0 FPM - waiting for available socket chromeFedora26 PHP 7.1.10 PDO_SQLITE Startup Warning: Unable to load dynamic libraryCentos7 mod_wsgi python3 django timeout error 504 Gateway errorhttpd24 by scl doesn't render php





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I have the follow unresolved problem regarding PHP and Apache. I have a long running script that ALWAYS return 504 Gateway Timeout after 30 seconds running. However, if I check in /server-process, I can see that the request is still going on. Before being suggested, I'm not expecting it to be a cron job as this long process should finish just under a minute and for current situation, I needed it to run inside browser. Here's what I've set the server:



/etc/apache2/apache2.conf
- Timeout 600

/etc/php/7.0/apache2/php.ini
- max_execution_time = 300
- max_input_time = 300


Here's my server info:



root@izzystorage-core:~# lsb_release -r
Release: 16.04

root@izzystorage-core:~# apache2 -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2017-09-18T15:09:02

root@izzystorage-core:~# php -v
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies


Do you guys have any Idea what's going on with my server?



edit




  1. I don't have mod_proxy

  2. This is only one server without load balancer in between










share|improve this question
















bumped to the homepage by Community 24 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I have the follow unresolved problem regarding PHP and Apache. I have a long running script that ALWAYS return 504 Gateway Timeout after 30 seconds running. However, if I check in /server-process, I can see that the request is still going on. Before being suggested, I'm not expecting it to be a cron job as this long process should finish just under a minute and for current situation, I needed it to run inside browser. Here's what I've set the server:



    /etc/apache2/apache2.conf
    - Timeout 600

    /etc/php/7.0/apache2/php.ini
    - max_execution_time = 300
    - max_input_time = 300


    Here's my server info:



    root@izzystorage-core:~# lsb_release -r
    Release: 16.04

    root@izzystorage-core:~# apache2 -v
    Server version: Apache/2.4.18 (Ubuntu)
    Server built: 2017-09-18T15:09:02

    root@izzystorage-core:~# php -v
    PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies


    Do you guys have any Idea what's going on with my server?



    edit




    1. I don't have mod_proxy

    2. This is only one server without load balancer in between










    share|improve this question
















    bumped to the homepage by Community 24 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I have the follow unresolved problem regarding PHP and Apache. I have a long running script that ALWAYS return 504 Gateway Timeout after 30 seconds running. However, if I check in /server-process, I can see that the request is still going on. Before being suggested, I'm not expecting it to be a cron job as this long process should finish just under a minute and for current situation, I needed it to run inside browser. Here's what I've set the server:



      /etc/apache2/apache2.conf
      - Timeout 600

      /etc/php/7.0/apache2/php.ini
      - max_execution_time = 300
      - max_input_time = 300


      Here's my server info:



      root@izzystorage-core:~# lsb_release -r
      Release: 16.04

      root@izzystorage-core:~# apache2 -v
      Server version: Apache/2.4.18 (Ubuntu)
      Server built: 2017-09-18T15:09:02

      root@izzystorage-core:~# php -v
      PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
      Copyright (c) 1997-2017 The PHP Group
      Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
      with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies


      Do you guys have any Idea what's going on with my server?



      edit




      1. I don't have mod_proxy

      2. This is only one server without load balancer in between










      share|improve this question
















      I have the follow unresolved problem regarding PHP and Apache. I have a long running script that ALWAYS return 504 Gateway Timeout after 30 seconds running. However, if I check in /server-process, I can see that the request is still going on. Before being suggested, I'm not expecting it to be a cron job as this long process should finish just under a minute and for current situation, I needed it to run inside browser. Here's what I've set the server:



      /etc/apache2/apache2.conf
      - Timeout 600

      /etc/php/7.0/apache2/php.ini
      - max_execution_time = 300
      - max_input_time = 300


      Here's my server info:



      root@izzystorage-core:~# lsb_release -r
      Release: 16.04

      root@izzystorage-core:~# apache2 -v
      Server version: Apache/2.4.18 (Ubuntu)
      Server built: 2017-09-18T15:09:02

      root@izzystorage-core:~# php -v
      PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
      Copyright (c) 1997-2017 The PHP Group
      Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
      with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies


      Do you guys have any Idea what's going on with my server?



      edit




      1. I don't have mod_proxy

      2. This is only one server without load balancer in between







      apache-2.4 ubuntu-16.04 timeout php7






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 8 '18 at 22:58







      ariefbayu

















      asked Jan 8 '18 at 13:24









      ariefbayuariefbayu

      1791413




      1791413





      bumped to the homepage by Community 24 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 24 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          After several hours adjusting Timeout, max_execution_time and max_input_time parameters and multiple service apache2 restart without result, I put back the original parameters (600, 300, 300) and restart the whole server with shutdown -r now. Upon server back online, all problem suddenly resolved.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f891201%2f504-gateway-timeout-even-when-timeout-is-set-to-600%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            After several hours adjusting Timeout, max_execution_time and max_input_time parameters and multiple service apache2 restart without result, I put back the original parameters (600, 300, 300) and restart the whole server with shutdown -r now. Upon server back online, all problem suddenly resolved.






            share|improve this answer




























              0














              After several hours adjusting Timeout, max_execution_time and max_input_time parameters and multiple service apache2 restart without result, I put back the original parameters (600, 300, 300) and restart the whole server with shutdown -r now. Upon server back online, all problem suddenly resolved.






              share|improve this answer


























                0












                0








                0







                After several hours adjusting Timeout, max_execution_time and max_input_time parameters and multiple service apache2 restart without result, I put back the original parameters (600, 300, 300) and restart the whole server with shutdown -r now. Upon server back online, all problem suddenly resolved.






                share|improve this answer













                After several hours adjusting Timeout, max_execution_time and max_input_time parameters and multiple service apache2 restart without result, I put back the original parameters (600, 300, 300) and restart the whole server with shutdown -r now. Upon server back online, all problem suddenly resolved.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 9 '18 at 2:49









                ariefbayuariefbayu

                1791413




                1791413






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f891201%2f504-gateway-timeout-even-when-timeout-is-set-to-600%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Українські прізвища Зміст Історичні відомості |...