[SOLVED] Can't connect to cloud.otrs.com outlook.office365.com ftp.otrs.org

Moderator: crythias

Locked
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

[SOLVED] Can't connect to cloud.otrs.com outlook.office365.com ftp.otrs.org

Post by zbigniew »

Hello,

otrs 4.0.8 updated to 4.0.9, CentOS 7.1.1503 (Core) 64 bit. Installed in Azure cloud.
See these errors in log:

Code: Select all

Can't perform POST on https://cloud.otrs.com/otrs/public.pl: 500 Can't connect to cloud.otrs.com:443
Can't perform GET on http://ftp.otrs.org/pub/otrs/misc/packages/repository.xml: 500 Can't connect to ftp.otrs.org:80
IMAPS: Can't connect to outlook.office365.com
Indeed "OTRS News" frame in dashboard says: Can't connect to OTRS News server!
Repository list in Package Manager is empty and remains empty after clicking "update repository information"
Clicking "Fetch mail" in "Mail Account Management" shows red error: "IMAPS: Can't connect to outlook.office365.com"

Code: Select all

 IMAPS: Can't connect to outlook.office365.com RemoteAddress:  RequestURI: /otrs/index.pl?Action=AdminMailAccount;Subaction=Run;
 Module: Kernel::System::MailAccount::IMAP::_Fetch Line: 143 Module: Kernel::System::MailAccount::IMAP::Fetch Line: 87 Module: Kernel::System::MailAccount::MailAccountFetch Line: 441 Module: Kernel::Modules::AdminMailAccount::Run Line: 63 Module: Kernel::System::Web::InterfaceAgent::Run Line: 996 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 41 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 
Connection is ok - logged in via ssh to otrs account to make some tests:

/opt/otrs/bin/otrs.CheckCloudServices.pl

Code: Select all

Response:
  'Content' => \'{"ErrorMessage":"","Success":1,"Results":{"Test":[{"Operation":"Test","Success":1,"Data":{"Success":1}}]}}',
  [b]'Status' => '200 OK'[/b]
curl -vO https://cloud.otrs.com/otrs/public.pl

Code: Select all

*   Trying 217.69.89.248...
* Connected to cloud.otrs.com (217.69.89.248) port 443 (#0)
* Server certificate:
*       subject: CN=*.otrs.com,OU=Domain Control Validated - RapidSSL(R),OU=See www.rapidssl.com/resources/cps (c)14,OU=GT81262117,serialNumber=5ikqyiiG17stIrh-YWvdSAOBuoFuhVtn
> GET /otrs/public.pl HTTP/1.1
> User-Agent: curl/7.29.0
> Host: cloud.otrs.com
> Accept: */*
* Connection #0 to host cloud.otrs.com left intact
curl -vO http://ftp.otrs.org/pub/otrs/misc/packa ... sitory.xml

Code: Select all

*   Trying 178.63.12.4...
* Connected to ftp.otrs.org (178.63.12.4) port 80 (#0)
> GET /pub/otrs/misc/packages/repository.xml HTTP/1.1
> User-Agent: curl/7.29.0
> Host: ftp.otrs.org
> Accept: */*
>
< HTTP/1.1 200 OK
* Connection #0 to host ftp.otrs.org left intact
/opt/otrs/bin/otrs.PostMasterMailbox.pl

Code: Select all

IMAPS: Connection to outlook.office365.com closed.
Also tested outlook account using console imap mail application on otrs account. Every connection works.

Also added RapidSSL Intermediate CA at the end of file Kernel/cpan-lib/Mozilla/CA/cacert.pem taken from here:
https://knowledge.rapidssl.com/support/ ... id=SO26457

Why OTRS cannot connect? Do you know how to fix this?
Last edited by zbigniew on 14 Jan 2017, 02:07, edited 2 times in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Can't connect to cloud.otrs.com outlook.office365.com ftp.otrs.org

Post by jojo »

there might be an issue with your network connection. Please delete all OTRS caches and try again
"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
zbigniew
Znuny newbie
Posts: 53
Joined: 11 Dec 2014, 13:30
Znuny Version: 5.0.23
Real Name: Zbigniew Luszpinski

Re: Can't connect to cloud.otrs.com outlook.office365.com ftp.otrs.org

Post by zbigniew »

Yes.

Code: Select all

/opt/otrs/bin/otrs.DeleteCache.pl
run as root solved problem. Thanks for help.
Locked