Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script
Note
 Applies to VoipNow 3.x.x!

Sometimes, when accessing the VoipNow interface and the Call Reports area in particular, an error stating "504 Gateway timeout" might occur. This means that the web server (Nginx) could not get a response from the backend (PHP script).

This might occur because of the following reasons:

  • the high number of call records in MySQL and the extended processing they require;
  • a possible PHP error; you can find out more about this in /usr/local/voipnow/admin/log/php_error.log;
  • a possible server issue (low CPU, memory, IO, etc).

Step-by-step guide

There is no perfect solution for this because it requires extensive debugging. However, you can use the workaround described below:

  1. Make a backup of /usr/local/httpsa/etc/httpsa-admin.conf using the following command:

    Shell
    cp /usr/local/httpsa/etc/httpsa-admin.conf /usr/local/httpsa/etc/httpsa-admin.conf.bk

  2. Edit /usr/local/httpsa/etc/httpsa-admin.conf and add the following lines in the http section. This will increase specific read/send timeouts to 120 seconds.

    Shell
    proxy_connect_timeout  120s;
    proxy_send_timeout 120s;
    proxy_read_timeout 120s;
    fastcgi_send_timeout 120s;
    fastcgi_read_timeout 120s;

  3. Restart the httpsa service using the following command:

    Shell
    service httpsa restart

Info

If the issue persists, it is recommended to contact support.

Content by Label
showLabelsfalse
max5
sortmodified
showSpacefalse
reversetrue
typepage
labels504 gateway timeout voipnow debug
cqllabel in ("debug","timeout","gateway","voipnow","504") and type = "page"

Page properties
hiddentrue
Related issues 

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.