Learn about Centmin Mod LEMP Stack today
Register Now

Nginx 504 Gateway Timeout error

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by danielsl, May 19, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    55,917
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    7:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Probably the problematic site is the one that timesouts the specific php connection by pushing it over the php max_children value

     
  2. danielsl

    danielsl New Member

    26
    3
    3
    Nov 7, 2014
    Ratings:
    +4
    Local Time:
    12:52 PM
    centminmod 123.09beta01
    5.5
    It seems I found out the reason of malfunctioning.

    It seems has nothing to do with centminmod scripts or Centmin container or file integrity issues but in the way you add new domains,
    Hardly to reconstruct the fist crash reason but the following try outs to restore domains led to these
    ------------------------
    1 first centmin.sh 2 add domain
    2 copy domain public files to there folders
    3 add extra rules to domain nginx conf. (!!! using old backupED confs(probably old versions or updated) ruined nginx)
    4 shh tunnel mysql->localhost:3307 add db
    5 add db user
    6 populate tables(doing DB staff in reverse in my case didn't work)
    --------------------------
    09 beta php7
    centos6.7 x86

    The problem is solved

    Also the question does it mean domain.confs are diffirent from each version and cant be directly restored to nginx conf directory??
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,917
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    7:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what does old and new domain.com.conf vhost config files contain ? you can post a gist.github.com file, paste in your new vhost conf contents when you create the gist, then edit the gist and replace contents with the restored backed up vhost conf file contents and save the gist. Then you will see a revision number increment. Click revisions and it will show you a diff of both files. If you link to the gist file here, we can see the differences.