afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
335 stars 72 forks source link

MailSo-Net-Exceptions-SocketConnectionDoesNotAvailableException #18

Closed AldoSouzaNeto closed 6 years ago

AldoSouzaNeto commented 6 years ago

The error occurs only when attaching files to the email:

[12:05:33.41][3a3664f4] [POST(4)][ip:186.209.8.58] /cpsess3852505966/3rdparty/afterlogic/index.php?/Api/ [12:05:33.41][3a3664f4] POST > [Module, Method, TenantName, Parameters] [12:05:33.41][3a3664f4] [12:05:33.41][3a3664f4] exception 'MailSo\Net\Exceptions\SocketConnectionDoesNotAvailableException' with message 'MailSo-Net-Exceptions-SocketConnectionDoesNotAvailableException' in /usr/local/cpanel/base/3rdparty/afterlogic/vendor/afterlogic/mailso/lib/MailSo/Net/NetClient.php:368 Stack trace:

0 /usr/local/cpanel/base/3rdparty/afterlogic/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php(1655): MailSo\Net\NetClient->IsConnected(true)

1 /usr/local/cpanel/base/3rdparty/afterlogic/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php(1709): MailSo\Imap\ImapClient->SendRequest('LOGIN', Array)

2 /usr/local/cpanel/base/3rdparty/afterlogic/vendor/afterlogic/mailso/lib/MailSo/Imap/ImapClient.php(271): MailSo\Imap\ImapClient->SendRequestWithCheck('LOGIN', Array)

3 /usr/local/cpanel/base/3rdparty/afterlogic/modules/Mail/Managers/Main/Manager.php(126): MailSo\Imap\ImapClient->Login('john@doe....', 'john#doe', '')

4 /usr/local/cpanel/base/3rdparty/afterlogic/modules/Mail/Managers/Main/Manager.php(2570): Aurora\Modules\Mail\Managers\Main\Manager->_getImapClient(Object(Aurora\Modules\Mail\Classes\Account), 20, 120)

5 /usr/local/cpanel/base/3rdparty/afterlogic/modules/Mail/Module.php(1538): Aurora\Modules\Mail\Managers\Main\Manager->getMessageList(Object(Aurora\Modules\Mail\Classes\Account), 'INBOX', 0, 20, '', false, Array, '')

6 [internal function]: Aurora\Modules\Mail\Module->GetMessages(383, 'INBOX', 0, 20, '', 'flagged', false, '')

7 /usr/local/cpanel/base/3rdparty/afterlogic/system/Module/AbstractModule.php(876): call_user_func_array(Array, Array)

8 /usr/local/cpanel/base/3rdparty/afterlogic/modules/Core/Module.php(536): Aurora\System\Module\AbstractModule->CallMethod('GetMessages', Array, true)

9 [internal function]: Aurora\Modules\Core\Module->EntryApi()

10 /usr/local/cpanel/base/3rdparty/afterlogic/system/Module/AbstractModule.php(621): call_user_func_array(Array, Array)

11 /usr/local/cpanel/base/3rdparty/afterlogic/system/Module/Manager.php(690): Aurora\System\Module\AbstractModule->RunEntry('api')

12 /usr/local/cpanel/base/3rdparty/afterlogic/system/Application.php(89): Aurora\System\Module\Manager->RunEntry('api')

13 /usr/local/cpanel/base/3rdparty/afterlogic/index.php(21): Aurora\System\Application::Start()

14 {main}

Can you guys help me with some information? Thank you so much!

afterlogic-support commented 6 years ago

Strangely enough, the log content doesn't seem to be related to attaching files, are you sure it's the log recorded when the issue occurs? Is there maybe anything relevant in webserver/PHP logs?

AldoSouzaNeto commented 6 years ago

Greetings! First to all, thanks for your feedback!

When logging in again to the same test email account, this error was identified in the log and the Afterlogic tool presents a blank page:

[13:42:01.07][728c3c68] [POST(4)][ip:191.23.75.251] /cpsess3213153023/3rdparty/afterlogic/index.php?/Api/ [13:42:01.07][728c3c68] POST > [Module, Method, TenantName, Parameters] [13:42:01.07][728c3c68] [13:42:01.07][728c3c68] exception 'Aurora\System\Exceptions\ApiException' with message 'ApiException' in /usr/local/cpanel/base/3rdparty/afterlogic/system/Api.php:1297 Stack trace:

0 /usr/local/cpanel/base/3rdparty/afterlogic/modules/Mail/Module.php(1514): Aurora\System\Api::checkUserRoleIsAtLeast(2)

1 [internal function]: Aurora\Modules\Mail\Module->GetMessages(2355, 'INBOX', 0, 200, '', 'flagged', false, '')

2 /usr/local/cpanel/base/3rdparty/afterlogic/system/Module/AbstractModule.php(876): call_user_func_array(Array, Array)

3 /usr/local/cpanel/base/3rdparty/afterlogic/modules/Core/Module.php(536): Aurora\System\Module\AbstractModule->CallMethod('GetMessages', Array, true)

4 [internal function]: Aurora\Modules\Core\Module->EntryApi()

5 /usr/local/cpanel/base/3rdparty/afterlogic/system/Module/AbstractModule.php(621): call_user_func_array(Array, Array)

6 /usr/local/cpanel/base/3rdparty/afterlogic/system/Module/Manager.php(690): Aurora\System\Module\AbstractModule->RunEntry('api')

7 /usr/local/cpanel/base/3rdparty/afterlogic/system/Application.php(89): Aurora\System\Module\Manager->RunEntry('api')

8 /usr/local/cpanel/base/3rdparty/afterlogic/index.php(21): Aurora\System\Application::Start()

9 {main}

We recently upgraded from Lite 7 to Lite 8, using the import script offered in the tool. Did something go wrong during this procedure?

Best Regards!

afterlogic-support commented 6 years ago

Did you use this script? It was specifically designed for cPanel: https://afterlogic.com/docs/webmail-pro-8/installation/migration-from-v7-console-tool And is it possible for you to backup & remove existing installation, and setup a new blank one, to see if the issue is still there and if it might be caused by migration somehow?

afterlogic-support commented 6 years ago

Closing the call for now, please feel free to reopen and comment if we may be of any further help here.