Author Topic: Upgrading Issue: Empty password  (Read 8318 times)

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Upgrading Issue: Empty password
« on: September 11, 2015, 04:55:58 PM »
Upgrading from a working 1.0.2 environment to 1.1.2, and I now get this error:
Code: [Select]
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?

« Last Edit: September 11, 2015, 05:39:05 PM by Nepherim »
~ ~ Dave

tech | photography | journal | MR2

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,849
Re: Upgrading Issue: Empty password
« Reply #1 on: September 13, 2015, 03:54:36 AM »
At what point do you get this error?

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

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Re: Upgrading Issue: Empty password
« Reply #2 on: September 13, 2015, 01:34:48 PM »
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

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Re: Upgrading Issue: Empty password
« Reply #3 on: September 18, 2015, 10:51:33 AM »
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Upgrading Issue: Empty password
« Reply #4 on: September 18, 2015, 11:15:38 AM »
Are you using any plugins?

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Re: Upgrading Issue: Empty password
« Reply #5 on: September 18, 2015, 05:49:02 PM »
No plugins, and base theme 'Larry'.
~ ~ Dave

tech | photography | journal | MR2

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Upgrading Issue: Empty password
« Reply #6 on: September 19, 2015, 03:30:18 AM »
Enable imap_debug in the Roundcube config.

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Re: Upgrading Issue: Empty password
« Reply #7 on: September 22, 2015, 02:07:09 PM »
Added this to config.inc.php:
Code: [Select]
// 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.
Code: [Select]
// 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');

« Last Edit: September 22, 2015, 02:19:29 PM by Nepherim »
~ ~ Dave

tech | photography | journal | MR2

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Upgrading Issue: Empty password
« Reply #8 on: September 22, 2015, 05:41:38 PM »
Check the permissions on the logs folder, it should create an imap file in the logs folder.

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Re: Upgrading Issue: Empty password
« Reply #9 on: September 22, 2015, 05:56:53 PM »
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:
Code: [Select]
// 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

Online alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: Upgrading Issue: Empty password
« Reply #10 on: September 23, 2015, 02:40:49 AM »
"Empty password" means it probably don't even tries to connect to IMAP, so don't expect any imap debug log.

Online alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: Upgrading Issue: Empty password
« Reply #11 on: September 23, 2015, 02:47:39 AM »
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.

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Re: Upgrading Issue: Empty password
« Reply #12 on: September 23, 2015, 11:19:16 AM »
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