Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
504 Gateway Time-Out
#11
(09-10-2018, 08:51 AM)jusu Wrote:
(09-05-2018, 08:54 AM)alberto.sanchez Wrote:
(09-04-2018, 11:50 AM)jusu Wrote:
(09-04-2018, 08:26 AM)alberto.sanchez Wrote:
(08-20-2018, 02:39 PM)jusu Wrote: Hello Alberto,

I use an Windows 10 operating system. The pandora_server.conf and the nginx.conf configurations i send you by E-Mail .

Maybe what is still to say is that the web client has ever worked until I made adjustments there in the alarm templates.

Good morning jusu,

After seeing you conf the only thing i can do now it let you the Pandora Wiki about nginx, because i think your ginx configuration is wrong:

https://wiki.pandorafms.com/index.php?ti...n_en:Nginx

try to do a configuration similar than the explained at the wiki and then tell me if the error persists.

Best regards,

Alberto
Hello,

Ok i have adjust my configuration like on Pandroa Wiki but its don't work. Here is my configuration:

user  nginx;


worker_processes  5;

pid        "C:\PandoraFMS/log/nginx.pid";
error_log  "C:\PandoraFMS/log/error.log";

events {
    worker_connections  4096;
}

http {
    include       mime.types;
   default_type  application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  "C:\PandoraFMS/nginx/logs/access.log"  main;

    sendfile        on;

    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  192.168.253.253;
  root   "C:\PandoraFMS/htdocs/";
  location ~ \.php {
    fastcgi_pass  127.0.0.1:9123;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include   fastcgi_params;
    include   fastcgi.conf;
  }
  location / {
     alias "C:\PandoraFMS/htdocs/";
           index index.php index.html index.htm;
       }
    }
}

Jusu

Good morning jusu,

Can you please show me the error it gives you after trying with this conf.

Thank you in advanced,

Alberto

Good morning,

2018/09/10 10:55:34 [error] 2476#12016: *13 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: 192.168.253.253, request: "GET /pandora_console/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9123", host: "localhost"

jusu

Good morning jusu,

The only think we can suggest is to give all privileges to the folder  alias "C:\PandoraFMS/htdocs/"; where the index.php is and try it again. We are really mess up with this problem and don`t know what it happens.

Alberto
 Reply
#12
(09-10-2018, 08:51 AM)jusu Wrote:
(09-05-2018, 08:54 AM)alberto.sanchez Wrote:
(09-04-2018, 11:50 AM)jusu Wrote:
(09-04-2018, 08:26 AM)alberto.sanchez Wrote:
(08-20-2018, 02:39 PM)jusu Wrote: Hello Alberto,

I use an Windows 10 operating system. The pandora_server.conf and the nginx.conf configurations i send you by E-Mail .

Maybe what is still to say is that the web client has ever worked until I made adjustments there in the alarm templates.

Good morning jusu,

After seeing you conf the only thing i can do now it let you the Pandora Wiki about nginx, because i think your ginx configuration is wrong:

https://wiki.pandorafms.com/index.php?ti...n_en:Nginx

try to do a configuration similar than the explained at the wiki and then tell me if the error persists.

Best regards,

Alberto
Hello,

Ok i have adjust my configuration like on Pandroa Wiki but its don't work. Here is my configuration:

user  nginx;


worker_processes  5;

pid        "C:\PandoraFMS/log/nginx.pid";
error_log  "C:\PandoraFMS/log/error.log";

events {
    worker_connections  4096;
}

http {
    include       mime.types;
   default_type  application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  "C:\PandoraFMS/nginx/logs/access.log"  main;

    sendfile        on;

    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  192.168.253.253;
  root   "C:\PandoraFMS/htdocs/";
  location ~ \.php {
    fastcgi_pass  127.0.0.1:9123;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include   fastcgi_params;
    include   fastcgi.conf;
  }
  location / {
     alias "C:\PandoraFMS/htdocs/";
           index index.php index.html index.htm;
       }
    }
}

Jusu

Good morning jusu,

Can you please show me the error it gives you after trying with this conf.

Thank you in advanced,

Alberto

Good morning,

2018/09/10 10:55:34 [error] 2476#12016: *13 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: 192.168.253.253, request: "GET /pandora_console/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9123", host: "localhost"

jusu

Good morning jusu,

After searching a will i got this info for you:
https://stackoverflow.com/questions/2920...mpt-failed

If not try to use exactly the same conf that in the wiki, with the exact same parameteres.

Alberto
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes