More than 40 seconds to reply to client after creating ticket

Moderator: crythias

Post Reply
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

More than 40 seconds to reply to client after creating ticket

Post by lpinho »

Hi,

for some reason, OTRS is taking 40 seconds to close the create ticket GUI after the submit button is pressed.

Looking at the admin interface, I'm able to see that every time someone opens a new ticket I get several errors per seconds (OTRS-CGI-10 Missing Module! - Screenshot attached)
2017-11-21 16_56_00-System Log - Admin - CMF Support.png
I don't know if this is causing the 40 second delay while creating the ticket, can anyone help me to figure out what is missing? Is there any other log that can help me out?

Thanks,

Luís Pinho
You do not have the required permissions to view the files attached to this post.
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: More than 40 seconds to reply to client after creating ticket

Post by reneeb »

Please have a look at the apache error log. There you should find a stacktrace. That would help to identify the problem.
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
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

Hi,

ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Mon Nov 20 09:15:50 2017

Message: Need module!

RemoteAddress: 192.168.201.254
RequestURI: /otrs/index.pl?Action=AgentTicketZoom;TicketID=2046

Traceback (7159):
Module: Kernel::System::Main::Require Line: 77
Module: Kernel::System::Ticket::TicketPermission Line: 3326
Module: Kernel::Modules::AgentTicketZoom::Run Line: 209
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1053
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 40
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32


Can you get any information from this log?
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: More than 40 seconds to reply to client after creating ticket

Post by fcasal »

Which otrs version are you using?
And linux version?
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: More than 40 seconds to reply to client after creating ticket

Post by reneeb »

You could set $Self->{Debug} to 1 (https://github.com/OTRS/otrs/blob/rel-5 ... ket.pm#L87) and rerun the ticket creation. Then you'll see debug output in the logfile (set minimumloglevel in SysConfig to "debug").

You can go to SysConfig and search for "Ticket::Permission" and check if all entries have defined a module.
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
wurzel
Znuny guru
Posts: 3228
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: More than 40 seconds to reply to client after creating ticket

Post by wurzel »

Hi,

delays are very often DNS issues. Your error message does not indicate this, but you might check DNS anyway.

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

fcasal wrote:Which otrs version are you using?
And linux version?
Hi,

OTRS:

Code: Select all

VERSION = 5.0.13
BUILDDATE = Wed Sep 14 19:58:44 CEST 2016
BUILDHOST = otrsbuild.otrs.com
Linux:

Code: Select all

CentOS Linux release 7.4.1708 (Core)
Regards,

Luís Pinho
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

reneeb wrote:You could set $Self->{Debug} to 1 (https://github.com/OTRS/otrs/blob/rel-5 ... ket.pm#L87) and rerun the ticket creation. Then you'll see debug output in the logfile (set minimumloglevel in SysConfig to "debug").

You can go to SysConfig and search for "Ticket::Permission" and check if all entries have defined a module.
Thanks, I will try it
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

wurzel wrote:Hi,

delays are very often DNS issues. Your error message does not indicate this, but you might check DNS anyway.

Flo
Hummm, we are using office 365 smtp interface, let me try to change the server address for its IP and check any difference.
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: More than 40 seconds to reply to client after creating ticket

Post by fcasal »

I would update to the last patch level 32, because they have corrected many options.

I also check again if the modules are well installed:

shell> perl /opt/otrs/bin/otrs.CheckModules.pl
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

Hi all,

interesting, I created a group with only 3 agents, and the time went down from 40 to 15 seconds, then I invalidated\disabled the "Ticket create notification" and the create new ticket is immediate.

So this problem is somehow related to sending e-mails to the agents.

I only notice this during the creation of the ticket, all the admin GUIs responds quickly

I still have to get the log level to debug. If I try to replace the

Regards,

Luís Pinho
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

fcasal wrote:I would update to the last patch level 32, because they have corrected many options.

I also check again if the modules are well installed:

shell> perl /opt/otrs/bin/otrs.CheckModules.pl
2017-11-22 10_33_28-root.png
Everything thing seems to be ok.

I will try to upgrade...
You do not have the required permissions to view the files attached to this post.
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

reneeb wrote:You could set $Self->{Debug} to 1 (https://github.com/OTRS/otrs/blob/rel-5 ... ket.pm#L87) and rerun the ticket creation. Then you'll see debug output in the logfile (set minimumloglevel in SysConfig to "debug").

You can go to SysConfig and search for "Ticket::Permission" and check if all entries have defined a module.
Hi Reneeb,

with the log at a debug level, I'm able to see that it takes OTRS 4 seconds to sent each e-mail :(
The missing module error is still occurring.

Regards,

Luís Pinho
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

Hi all,

looking at the configuration of the SendMail:
2017-11-22 11_44_56-Framework -_ Core__Sendmail - SysConfig - Admin.png
I see that its parameters are -i -f

I've search for sendmail module manual, and I see several version for it, can anyone point me to the correct manual?
(I'm a bit rusty went it comes to Linux, but if I run man sendmail, it shows me the manual to qmail....)

I'm trying to figure out if I can do a sendmail in an asynchronous way.

Best Regards,

Luís Pinho
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: More than 40 seconds to reply to client after creating ticket

Post by jojo »

Using direct SMTP for sure is slow, especially with cloud based mail providers.

The best is to use a local MTA like postfix which handles the mailing to Office365 or switch to OTRS6 where Mail Handling is done by the Daemon
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
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: More than 40 seconds to reply to client after creating ticket

Post by reneeb »

lpinho wrote:
2017-11-22 11_44_56-Framework -_ Core__Sendmail - SysConfig - Admin.png
I see that its parameters are -i -f
Those parameters do not matter as you've chosen "SMTPTLS" as the sendmail module, not "Sendmail"
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
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

reneeb wrote:
lpinho wrote:
2017-11-22 11_44_56-Framework -_ Core__Sendmail - SysConfig - Admin.png
I see that its parameters are -i -f
Those parameters do not matter as you've chosen "SMTPTLS" as the sendmail module, not "Sendmail"
Maybe that's my way out of this, configuring the sendmail module to use office 365.

Thanks for the clarification,

Luís Pinho
lpinho
Znuny newbie
Posts: 26
Joined: 05 May 2016, 19:16
Znuny Version: 50000

Re: More than 40 seconds to reply to client after creating ticket

Post by lpinho »

Hi all,

our local Linux expert was able to configure sendmail correctly to work with Office 365.
Now, it takes only 1 seconds to sent all mails :)

Thanks for all your help
Post Reply