[Spce-user] ngcp-fraud-daily-loc / 504 Gateway TimeOut

Gerhard Jungwirth gjungwirth at sipwise.com
Tue Jul 24 11:00:33 EDT 2018


Hi,

and then, if the query is just taking too long, try something like this
to make the timeout time longer [1]:

create a customtt for
"/etc/ngcp-config/templates/etc/nginx/sites-available/ngcp-panel_system_api.tt2"
and add:

|fastcgi_read_timeout 300s; |||

where the other fcgi parameters are with an apropriate timeout.

Best, Gerhard

||

On 2018-07-24 11:54, Daniel Grotti wrote:
> Hi Jamie,
> I would suggest to jump at least to latest version mr5.5.x
>
> Cheers,
>
> Daniel
>
> On 07/09/2018 05:25 PM, Jaime wrote:
>> Hi All,
>>
>> I’m using SipWise mr4.5.4 version.
>> I would like to use the anti-fraud functionality, but I receive an
>> authentication error when the anti-fraud script is run through the
>> crontab.
>> The error that it gives is of authentication, I attach the error
>> executing the script with the option -verbose.
>> Please, if you could guide me how to enable the correct functioning
>> of the Antifraud script.
>>
>> Thank you
>> Jaime
>>
>> ==========================
>> root at spce:/etc/cron.d#   /usr/sbin/ngcp-fraud-daily-lock -verbose
>> ** GET https://127.0.0.1:1442/api/customerfraudevents/?interval=day
>> ==> GET https://127.0.0.1:1442/api/customerfraudevents/?interval=day
>> User-Agent: libwww-perl/6.08
>> Content-Type: application/json
>> NGCP-UserAgent: NGCP::API::Client
>> Prefer: return=representation
>>
>> (no content)
>> HTTP/1.1 401 Unauthorized
>> Connection: close
>> Date: Mon, 09 Jul 2018 15:16:47 GMT
>> Server: nginx
>> WWW-Authenticate: Basic realm="api_admin_system"
>> Content-Length: 23
>> Content-Type: text/plain; charset=UTF-8
>> Client-Date: Mon, 09 Jul 2018 15:16:47 GMT
>> Client-Peer: 127.0.0.1:1442
>> Client-Response-Num: 1
>> Client-SSL-Cert-Issuer: /C=AT/ST=Some-State/O=Sipwise GmbH/CN=Sipwise
>> GmbH/emailAddress=service at sipwise.com
>> <mailto:GmbH/emailAddress=service at sipwise.com>
>> Client-SSL-Cert-Subject: /C=AT/ST=Some-State/O=Sipwise
>> GmbH/CN=Sipwise GmbH/emailAddress=service at sipwise.com
>> <mailto:GmbH/emailAddress=service at sipwise.com>
>> Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
>> Client-SSL-Socket-Class: IO::Socket::SSL
>> Client-SSL-Warning: Peer certificate not verified
>> Set-Cookie:
>> ngcp_panel_session=38bce7063f1b8cba48ac152bbba15738933a3102; path=/;
>> expires=Mon, 09-Jul-2018 16:16:47 GMT; HttpOnly
>> X-Catalyst: 5.90075
>>
>> Authorization required.
>> 401 Unauthorized
>> ** GET https://127.0.0.1:1442/api/customerfraudevents/?interval=day
>> ==> GET https://127.0.0.1:1442/api/customerfraudevents/?interval=day
>> Authorization: Basic c3lzdGVtOnRYWXp3emR2ZkFUSmliV2o0ZHEz
>> User-Agent: libwww-perl/6.08
>> Content-Type: application/json
>> NGCP-UserAgent: NGCP::API::Client
>> Prefer: return=representation
>>
>> (no content)
>> HTTP/1.1 504 Gateway Time-out
>> Connection: close
>> Date: Mon, 09 Jul 2018 15:17:47 GMT
>> Server: nginx
>> Content-Length: 176
>> Content-Type: text/html
>> Client-Date: Mon, 09 Jul 2018 15:17:47 GMT
>> Client-Peer: 127.0.0.1:1442
>> Client-Response-Num: 1
>> Client-SSL-Cert-Issuer: /C=AT/ST=Some-State/O=Sipwise GmbH/CN=Sipwise
>> GmbH/emailAddress=service at sipwise.com
>> <mailto:GmbH/emailAddress=service at sipwise.com>
>> Client-SSL-Cert-Subject: /C=AT/ST=Some-State/O=Sipwise
>> GmbH/CN=Sipwise GmbH/emailAddress=service at sipwise.com
>> <mailto:GmbH/emailAddress=service at sipwise.com>
>> Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384
>> Client-SSL-Socket-Class: IO::Socket::SSL
>> Client-SSL-Warning: Peer certificate not verified
>> Title: 504 Gateway Time-out
>>
>> <html>\r
>> <head><title>504 Gateway Time-out</title></head>\r
>> <body bgcolor="white">\r
>> <center><h1>504 Gateway Time-out</h1></center>\r
>> <hr><center>nginx</center>\r
>> </body>\r
>> </html>\r\n
>> 504 Gateway Time-out (60s)
>> 504 Gateway Time-out <html>
>> <head><title>504 Gateway Time-out</title></head>
>> <body bgcolor="white">
>> <center><h1>504 Gateway Time-out</h1></center>
>> <hr><center>nginx</center>
>> </body>
>> </html>
>> root at spce:/etc/cron.d# 
>>
>>
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180724/d6c7886b/attachment.html>


More information about the Spce-user mailing list