[horde] IMAP Connection failure
Simon Wilson
simon at simonandkate.net
Fri May 20 01:02:36 UTC 2011
A couple of times over the last week the horde 4 IMAP client has thrown this:
A fatal error has occurred
Error connecting to IMAP server: [0]
1. Horde_Imap_Client_Base->openMailbox() /var/www/horde4/imp/mailbox.php:87
2. Horde_Imap_Client_Socket->_openMailbox()
/usr/share/pear/Horde/Imap/Client/Base.php:803
3. Horde_Imap_Client_Base->login()
/usr/share/pear/Horde/Imap/Client/Socket.php:777
4. Horde_Imap_Client_Socket->_login()
/usr/share/pear/Horde/Imap/Client/Base.php:597
5. Horde_Imap_Client_Socket->_connect()
/usr/share/pear/Horde/Imap/Client/Socket.php:268
6. Horde_Imap_Client_Base->_exception()
/usr/share/pear/Horde/Imap/Client/Socket.php:438
Details
The full error message is logged in Horde's log file, and is shown
below only to administrators. Non-administrative users will not see
error details.
Horde_Imap_Client_Exception Object
(
[_previous:private] =>
[details] =>
[message:protected] => Error connecting to IMAP server: [0]
[string:private] =>
[code:protected] => 11
[file:protected] => /usr/share/pear/Horde/Imap/Client/Base.php
[line:protected] => 219
[trace:private] => Array
(
[0] => Array
(
[file] => /usr/share/pear/Horde/Imap/Client/Socket.php
[line] => 438
[function] => _exception
[class] => Horde_Imap_Client_Base
[type] => ->
[args] => Array
(
[0] => Error connecting to IMAP server: [0]
[1] => SERVER_CONNECT
)
)
[1] => Array
(
[file] => /usr/share/pear/Horde/Imap/Client/Socket.php
[line] => 268
[function] => _connect
[class] => Horde_Imap_Client_Socket
[type] => ->
[args] => Array
(
)
)
[2] => Array
(
[file] => /usr/share/pear/Horde/Imap/Client/Base.php
[line] => 597
[function] => _login
[class] => Horde_Imap_Client_Socket
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => /usr/share/pear/Horde/Imap/Client/Socket.php
[line] => 777
[function] => login
[class] => Horde_Imap_Client_Base
[type] => ->
[args] => Array
(
)
)
[4] => Array
(
[file] => /usr/share/pear/Horde/Imap/Client/Base.php
[line] => 803
[function] => _openMailbox
[class] => Horde_Imap_Client_Socket
[type] => ->
[args] => Array
(
[0] => INBOX
[1] => 2
)
)
[5] => Array
(
[file] => /var/www/horde4/imp/mailbox.php
[line] => 87
[function] => openMailbox
[class] => Horde_Imap_Client_Base
[type] => ->
[args] => Array
(
[0] => IMP_Mailbox Object
(
[_cache:protected] => Array
(
)
[_mbox:protected] => INBOX
)
[1] => 2
)
)
)
)
I realise what it is saying, that for some reason it has been unable
to connect to the IMAP server (Cyrus IMAP is on a separate virtual
server on the same hardware) - it's just such an ugly way to throw the
error. An immediate refresh of the page brings back the Horde / Imp
interface, so the comms interruption is only momentary.
Is there any way to config a timeout, or retry? Or maybe a more
graceful way that the Horde IMAP client could handle an error of this
type?
Simon.
--
Simon Wilson
M: 0400 12 11 16
More information about the horde
mailing list