Gateway Time-out 504 while export the CSV Reports

English! place to talk about development, programming and coding
Post Reply
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Gateway Time-out 504 while export the CSV Reports

Post by williamrobert1983 »

Hi all,

I am getting Gateway Time-out 504 error when i am trying to export CSV using OTRS Search option.

If i export more then 1000 tickets , i am getting the gateway error. how to resolve the issue?

Do i change any configuration in admin as well as apache? please advice me.

OTRS is running Linux Server with apache.

Thanks,
William
swilliamrobert1982
Znuny newbie
Posts: 7
Joined: 17 Sep 2013, 05:00
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: Gateway Time-out 504 while export the CSV Reports

Post by swilliamrobert1982 »

Any one advice please about this issue
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Gateway Time-out 504 while export the CSV Reports

Post by tto »

swilliamrobert1982 wrote:Any one advice please about this issue
use the command line (otrs.GenerateStats.pl) in order to get your report. It looks like your report just takes too long and the webserver cancels the request. Reconfiguring your apache won't solve the problem.

regards, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
swilliamrobert1982
Znuny newbie
Posts: 7
Joined: 17 Sep 2013, 05:00
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: Gateway Time-out 504 while export the CSV Reports

Post by swilliamrobert1982 »

Hi Thanks for your reply. How can we use for front end csv export instead of using command line. Because, all customers using Search option to get csv reports.
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: Gateway Time-out 504 while export the CSV Reports

Post by tto »

swilliamrobert1982 wrote:Hi Thanks for your reply. How can we use for front end csv export instead of using command line. Because, all customers using Search option to get csv reports.
Your customers use the reporting tool? That's not quite default. Customer users usually do not have access to the agent frontend (where the reporting is). However, the ticket search should be more restricted and not like a "*"-search. The only option you have is to increase the apache-/webserver time out for requests. That might help, but the problem is going to reoccur. You should rethink your reporting approach. There's no way around it.

regards, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
swilliamrobert1982
Znuny newbie
Posts: 7
Joined: 17 Sep 2013, 05:00
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: Gateway Time-out 504 while export the CSV Reports

Post by swilliamrobert1982 »

Hi thanks. actually not a customers. Agents. anyway thanks for reply.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Gateway Time-out 504 while export the CSV Reports

Post by reneeb »

Once upon a time (;-)) I wrote an extension for a customer that allows the customer to start a report via Agent interface, but the result was emailed to him/her. This was done by running a background process that was decoupled from the webserver... You could do something similar too.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply