Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Moderator: crythias

Locked
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

Since installing the 5 version I got errors like that

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::OTRSBusiness::AvailabilityCheck-24 Perl: 5.20.2 OS: linux Time: Tue Nov 24 14:20:22 2015

 Message: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

 Traceback (28591):
   Module: Kernel::System::WebUserAgent::Request Line: 209
   Module: Kernel::System::CloudService::Backend::Run::Request Line: 331
   Module: Kernel::System::OTRSBusiness::OTRSBusinessIsAvailable Line: 127
   Module: Kernel::System::Console::Command::Maint::OTRSBusiness::AvailabilityCheck::Run Line: 39
   Module: (eval) Line: 441
   Module: Kernel::System::Console::BaseCommand::Execute Line: 435
   Module: (eval) Line: 175
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 159
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: bin/otrs.Daemon.pl Line: 138
I already tried to disable that requests but disabling is locked. This POST seems to work sometimes as I did not get this error every hour, but three or four times a day.

Any ideas?

Yours, Micha
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by RStraub »

This is german, but seems to fix your problem. Third article (from reneeb) tells you to write this into your config.pm:

Code: Select all

delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessAvailabilityCheck"};
here is the post as reference:
viewtopic.php?f=35&t=30549&p=125510#p125510
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

OK great, thank you.

Inserted that into config an keep fingers crossed that I will now no longer get those mails :-)
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

Hm seems not to work, just got this email:

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::OTRSBusiness::AvailabilityCheck-24 Perl: 5.20.2 OS: linux Time: Tue Nov 24 16:20:29 2015

 Message: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

 Traceback (32257):
   Module: Kernel::System::WebUserAgent::Request Line: 209
   Module: Kernel::System::CloudService::Backend::Run::Request Line: 331
   Module: Kernel::System::OTRSBusiness::OTRSBusinessIsAvailable Line: 127
   Module: Kernel::System::Console::Command::Maint::OTRSBusiness::AvailabilityCheck::Run Line: 39
   Module: (eval) Line: 441
   Module: Kernel::System::Console::BaseCommand::Execute Line: 435
   Module: (eval) Line: 175
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 159
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: bin/otrs.Daemon.pl Line: 138
I asked in the other thread if they found the origin as one of the writes has the same problem.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by RStraub »

Another thing you could try is changing the readonly flag:
https://github.com/OTRS/otrs/blob/f6af4 ... n.xml#L697

Then reloading the sysconfig and unchecking the job.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by root »

Try to install LWP::Protocol::https
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

RStraub wrote:Another thing you could try is changing the readonly flag:
https://github.com/OTRS/otrs/blob/f6af4 ... n.xml#L697

Then reloading the sysconfig and unchecking the job.
Tried this way but still got the error mail :-(
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

root wrote:Try to install LWP::Protocol::https
As the request seems to work sometimes - at least I am not getting the error every hour - the package should be installed, right?
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

Connection to Cloud seems not to be a problem:

Code: Select all

otrs/bin $ ./otrs.Console.pl Maint::CloudServices::ConnectionCheck
Checking OTRS cloud service connectivity...
Sending request with the following options:
  Timeout: 15 second(s)

Response time: 1 second(s)

Response:
  'Content' => \'{"ErrorMessage":"","Success":1,"Results":{"Test":[{"Data":{"Success":1},"Success":1,"Operation":"Test"}]}}',
  'Status' => '200 OK'
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

I also checked if the LWP::Protocol::https module is installed and it is. Any other ideas?
coolmf
Znuny newbie
Posts: 37
Joined: 02 Nov 2015, 16:29
Znuny Version: 5.0.26

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by coolmf »

I added:

Code: Select all

delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessAvailabilityCheck"};
delete $Self->{"Daemon::SchedulerCronTaskManager::Task"}->{"OTRSBusinessEntitlementCheck"};
to Kernel/Config.pm
Then i did a reboot and it was fixed
OTRS 5.0.26 with ITSM, and FAQ module on CentOS 7 with MariaDB and Apache
Using LDAPS for customers and agents against Azure AD
otrsmicha
Znuny newbie
Posts: 13
Joined: 05 Nov 2015, 11:29
Znuny Version: 5.0.1

Re: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 read timeout

Post by otrsmicha »

Worked for me - remember to restart the daemon.
Locked