Roundcube Community Forum

 

Upgrading Issue: Empty password

Started by Nepherim, September 11, 2015, 04:55:58 PM

Previous topic - Next topic

Nepherim

Upgrading from a working 1.0.2 environment to 1.1.2, and I now get this error:
Connection to storage server failed.
Server Error: Empty password


Error occurs on both auto-update (using installto.sh, and manual update). Nothing in the log files.

Any suggestions?

~ ~ Dave

tech | photography | journal | MR2

JohnDoh

At what point do you get this error?

Is there anything in the Roundcube error log?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Nepherim

Error occurs when just after logging into an email account through the UI. UI framework appears (left folder section, main email section), but is not populated with any folders or emails. No log in the log directory.
~ ~ Dave

tech | photography | journal | MR2

Nepherim

Anyone? Has anyone successfully upgraded from 1.0.2 to 1.1.2, to marrow down what might be wrong? If more information is needed let me know.
~ ~ Dave

tech | photography | journal | MR2

SKaero


Nepherim

~ ~ Dave

tech | photography | journal | MR2

SKaero

Enable imap_debug in the Roundcube config.

Nepherim

#7
Added this to config.inc.php:

// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = true;


No additional log files or entries in \logs. What result is expected?

In case it's relevent, here are the imap setting I have. Unchanged from 1.0.2, *except* removed 'default_folders' which seems to have been dropped in 1.1.2. Adding this back did not solve the problem.

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['mail_domain'] = 'xxx.com';

// store draft message is this mailbox
// leave blank if draft messages should not be stored
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['drafts_mbox'] = 'INBOX.Drafts';

// store spam messages in this mailbox
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['junk_mbox'] = 'INBOX.Junk';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['sent_mbox'] = 'INBOX.Sent';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$config['trash_mbox'] = 'INBOX.Trash';

// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
// REMOVED for 1.1.2
//$config['default_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Junk', 'INBOX.Trash');

~ ~ Dave

tech | photography | journal | MR2

SKaero

Check the permissions on the logs folder, it should create an imap file in the logs folder.

Nepherim

Permissions on logs were 755. Tried 777, still no logs\imap directory created. Manually created directory, with 777 -- still no log file produced.

Double checked, this is still in defaults.inc.php, no overrides in config.inc.php:

// system error reporting, sum of: 1 = log; 4 = show
$config['debug_level'] = 1;

// log driver:  'syslog' or 'file'.
$config['log_driver'] = 'file';
~ ~ Dave

tech | photography | journal | MR2

alec

"Empty password" means it probably don't even tries to connect to IMAP, so don't expect any imap debug log.

alec

I guess something is wrong with the session (where the password is stored) or with encryption/decryption of the stored password. Do you have openssl or mcrypt module installed? If not install it. Are you sure there are no errors in log (Roundcube logs or http server logs)? If you know PHP a little bit you should dig in rcube::encrypt() and rcube::decrypt() methods. DO all tests with disabled all plugins.

Nepherim

As far as I can see, I have not explicitly entered or configured an imap password. Where is it stored that I could check?

I do not have openssl or mcrypt modules installed. I'll take a look, but would like to keep things simple and resolve the problem before adding new modules.

No errors in either Roundcube, or server logs.

The odd thing, is this same setup works with 1.0.2, but not with 1.1.2.
~ ~ Dave

tech | photography | journal | MR2