I Disabled the cloudservice on otrs graphical. But It had several erros in log:
OTRS-otrs.Console.pl-Maint::CloudServices::ConnectionCheck-56[93171]: [Error][Kernel::System::WebUserAgent::Request][Line:221]: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 Can't connect to cloud.otrs.com:443 (timeout)
well, I have a idea, I executed this command.
su -c "/opt/otrs/bin/otrs.Console.pl Maint::CloudServices::ConnectionCheck" -s /bin/bash otrs
Checking OTRS cloud service connectivity...
Sending request with the following options:
Timeout: 15 second(s)
ERROR: OTRS-otrs.Console.pl-Maint::CloudServices::ConnectionCheck-56 Perl: 5.16.3 OS: linux Time: Tue Nov 26 17:19:10 2019
Message: Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 Can't connect to cloud.otrs.com:443 (timeout)
Traceback (96926):
Module: Kernel::System::WebUserAgent::Request Line: 221
Module: Kernel::System::Console::Command::Maint::CloudServices::ConnectionCheck::Run Line: 93
Module: (eval) Line: 460
Module: Kernel::System::Console::BaseCommand::Execute Line: 454
Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
Module: /opt/otrs/bin/otrs.Console.pl Line: 36
Response time: 15 second(s)
Response:
'Status' => '500 Can\'t connect to cloud.otrs.com:443 (timeout)'
I tried add to proxy in configuration of systemd
cat /usr/lib/systemd/system/otrs6.service
[Unit]
Description=OTRS: Open-source Ticket Request System, Copyright (C) 2001-2019 xxx
Documentation=https://otrs.github.io/doc/manual/admin/stable/en/html/
Requires=crond.service httpd.service postfix.service
After=crond.service httpd.service postfix.service
[Service]
Type=oneshot
RemainAfterExit=yes
Enviroment="http_proxy=http://myproyserver.default.com:5865"
Enviroment="https_proxy=http://myproyserver.default.com:5865"
Enviroment="ftp_proxy=http://myproyserver.default.com:5865"
ExecStart=/opt/otrs/bin/otrs.Daemon.pl start
ExecStart=su -c "/opt/otrs/bin/Cron.sh stop" -s /bin/bash otrs
ExecStop=/opt/otrs/bin/Cron.sh stop
ExecStop=/opt/otrs/bin/otrs.Daemon.pl stop
User=otrs
Group=apache
[Install]
WantedBy=multi-user.target
Then I found on the internet:
vim /opt/otrs/Kernel/System/WebUserAgent.pm
use Kernel::System::WebUserAgent;
my $WebUserAgentObject = Kernel::System::WebUserAgent->new(
Timeout => 15, # optional, timeout
Proxy => 'http://myproyserver.default.com:5865/', # optional, proxy
);
I added this configutarion this file WebUserAgent.pm, doesn't work too.
Then I did my last test:
su -c "/opt/otrs/bin/otrs.Console.pl Admin::Package::Install https://addons.znuny.com/api/addon_repos/public/ID:1029" -s /bin/bash otrs
Installing package...
ERROR: OTRS-otrs.Console.pl-Admin::Package::Install-56 Perl: 5.16.3 OS: linux Time: Tue Nov 26 17:25:27 2019
Message: Can't perform GET on https://addons.znuny.com/api/addon_repo ... D/otrs.xml: 500 Can't connect to addons.znuny.com:443 (Connection timed out)
Traceback (97241):
Module: Kernel::System::WebUserAgent::Request Line: 221
Module: Kernel::System::Package::_Download Line: 3636
Module: Kernel::System::Package::PackageOnlineList Line: 1451
Module: Kernel::System::Console::Command::Admin::Package::List::_PackageContentGet Line: 315
Module: Kernel::System::Console::Command::Admin::Package::Install::Run Line: 55
Module: (eval) Line: 460
Module: Kernel::System::Console::BaseCommand::Execute Line: 454
Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
Module: /opt/otrs/bin/otrs.Console.pl Line: 36
I tried to exports enviroment variables, also doesn't work.
Other example:
su -c "https_proxy='https://myproyserver.default.com:5865' /opt/otrs/bin/otrs.Console.pl Maint::CloudServices::ConnectionCheck" -s /bin/bash otrs
Other example:
Add this option in /opt/otrs/Kernel/Config.pm
$Self->{'Package::Proxy'} = '/myproyserver.default.com:5865';
Detail: Proxy works with yum, wget and lynx, but with otrs application and scripts of otrs too no.



Any suggestion.