Roundcube Community Forum

 

Help!! Server Error! (OK)

Started by labatt, March 11, 2011, 04:35:35 PM

Previous topic - Next topic

labatt

Hi all -

Running 0.5.1 (upgraded from 0.4.1).  Stupidly, I also upgraded MySQL, PHP and Dovecot before I tested if 0.4.1 still worked.  Now when I login I get the UI but then consistently get "Server Error! (OK)".  The IMAP log looks OK.  Here's the Dovecot log - I'm thinking it's OK..

2011-03-11 16:28:19 auth(default): Info: master out: USER       295     xxx system_groups_user=xxx      uid=xxx        gid=xxx home=/home/xxx
2011-03-11 16:28:19 imap-login: Info: Login: user=<xxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
2011-03-11 16:28:19 IMAP(xxx): Info: Effective uid=xxx, gid=xxx, home=/home/xxx
2011-03-11 16:28:19 IMAP(xxx): Info: cydir: mailbox location not given
2011-03-11 16:28:19 IMAP(xxx): Info: cydir: Couldn't create mail storage : Root mail directory not given
2011-03-11 16:28:19 IMAP(xxx): Info: dbox: mailbox location not given
2011-03-11 16:28:19 IMAP(xxx): Info: dbox: Couldn't create mail storage : Root mail directory not given
2011-03-11 16:28:19 IMAP(xxx): Info: maildir: access(/home/xxx/Maildir, rwx): failed: No such file or directory
2011-03-11 16:28:19 IMAP(xxx): Info: maildir: couldn't find root dir
2011-03-11 16:28:19 IMAP(xxx): Info: maildir: Couldn't create mail storage : Root mail directory not given
2011-03-11 16:28:19 IMAP(xxx): Info: mbox: root exists (/home/xxx/mail)
2011-03-11 16:28:19 IMAP(xxx): Info: mbox: INBOX exists (/var/mail/xxx)
2011-03-11 16:28:19 IMAP(xxx): Info: fs: root=/home/xxx/mail, index=, control=, inbox=/var/mail/xxx
2011-03-11 16:28:19 IMAP(xxx): Info: Disconnected: Logged out bytes=93/808
2011-03-11 16:28:19 auth(default): Info: new auth connection: pid=26712


Clicking on Settings, Address Book, etc. all give me the right info so it looks like the MySQL connection is fine.  I can send messages fine.  But - every time I click on a mailbox I get the server error message.

How do I troubleshoot this?

Thanks!

SKaero

What's in the RoundCube error log?

labatt

Nothing shows up in the Roundcube error log (it's empty). The IMAP log looks OK (no errors reported in it - ID is OK, AUTHENTICATE is OK, NAMESPACE is OK, STATUS(s) are OK,  LIST(s) are OK, FETCH(s) are OK, etc.).  I can't seem to find anything that points to what the server error is.

Also, the problem only appears to be Roundcube - other IMAP apps seem to work fine (Outlook and a Virgin Mobile cellphone app).

SKaero

The error should be related to your Apache or PHP configuration not your IMAP server, it should be adding an error log entry make sure the error log is writable.

labatt

I've verified the "errors" file is working by logging in as a non-existent user.  A message is written into the errors file stating that the login failed - so logging works to the errors file.  However, there are no messages with regards to the Server Error! (OK) message.

PHP version is PHP 5.3.3-1ubuntu9.3 with Suhosin-Patch (cli) (built: Jan 12 2011 16:08:14).  Apache version is Apache/2.2.16 (Ubuntu).  There are no errors in the Apache logs nor in the php logs.  Basically, there are no logs pointing to where this error is coming from which is why I figured this community might be able to help.  I'm at wit's end!  I appreciate your responses.

SKaero

You mentioned that you did an upgrade does a fresh install have the same problem?

labatt

I know it's been a while since I last updated this post but I haven't been able to do a new install for a while.  I just did a complete new install - created a new database, new configuration files from the installer, etc.  I'm still getting the Server Error message when logging in as any user (and no messages in the error file).  Any other thoughts?

SKaero

If its not in the RoundCube error logs in should be in Apache's if there nothing in there it will be a lot harder to diagnose.

labatt

Nothing in the Apache log, nothing in the Roundcube logs (except what look like successful IMAP transactions), nothing in the Dovecot logs (except what look like successful IMAP transactions).  I even moved user's IMAP folders and mbox's thinking there might be an issue there, but still receive the same error.  This is completely confusing me.

labatt

Any idea where the "OK" message comes from?  When I look through the source it looks like it might be MySQL related?

"Server Error" is defined in the localization files to $messages['servererror'].  'servererror' shows up in app.js.src as displaying alongside 'errmsg'.  I find 'errmsg' listed in mysqli.php and mysql.php.

Any thoughts?

SKaero

Is there anyway I can get ftp access and and test account to see the problem?

labatt

I was receiving a "Server Error (OK)" when trying to look at any folder.  The contents of the folder were not displayed.  Mail could be sent, settings could be viewed, but no messages were displayed.  This occurred after an upgrade of PHP, Apache and several other applications on my Ubuntu server.

Alec, the Roundcube developer extraordinaire, saw what appeared to be an issue with compression.  We were able to determine that mod_deflate was the culprit.  Commenting out "SetOutputFilter DEFLATE" in the .htaccess file solved the issue and now folders can be viewed.  I'm working to track down where the exact issue with mod_deflate lies, but this appears to have solved the issue.

Chris

Quote from: labatt;33683Hi all -

Running 0.5.1 (upgraded from 0.4.1).  Stupidly, I also upgraded MySQL, PHP and Dovecot before I tested if 0.4.1 still worked.  Now when I login I get the UI but then consistently get "Server Error! (OK)".  The IMAP log looks OK.  Here's the Dovecot log - I'm thinking it's OK..

2011-03-11 16:28:19 auth(default): Info: master out: USER       295     xxx system_groups_user=xxx      uid=xxx        gid=xxx home=/home/xxx
2011-03-11 16:28:19 imap-login: Info: Login: user=<xxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
2011-03-11 16:28:19 IMAP(xxx): Info: Effective uid=xxx, gid=xxx, home=/home/xxx
2011-03-11 16:28:19 IMAP(xxx): Info: cydir: mailbox location not given
2011-03-11 16:28:19 IMAP(xxx): Info: cydir: Couldn't create mail storage : Root mail directory not given
2011-03-11 16:28:19 IMAP(xxx): Info: dbox: mailbox location not given
2011-03-11 16:28:19 IMAP(xxx): Info: dbox: Couldn't create mail storage : Root mail directory not given
2011-03-11 16:28:19 IMAP(xxx): Info: maildir: access(/home/xxx/Maildir, rwx): failed: No such file or directory
2011-03-11 16:28:19 IMAP(xxx): Info: maildir: couldn't find root dir
2011-03-11 16:28:19 IMAP(xxx): Info: maildir: Couldn't create mail storage : Root mail directory not given
2011-03-11 16:28:19 IMAP(xxx): Info: mbox: root exists (/home/xxx/mail)
2011-03-11 16:28:19 IMAP(xxx): Info: mbox: INBOX exists (/var/mail/xxx)
2011-03-11 16:28:19 IMAP(xxx): Info: fs: root=/home/xxx/mail, index=, control=, inbox=/var/mail/xxx
2011-03-11 16:28:19 IMAP(xxx): Info: Disconnected: Logged out bytes=93/808
2011-03-11 16:28:19 auth(default): Info: new auth connection: pid=26712


Clicking on Settings, Address Book, etc. all give me the right info so it looks like the MySQL connection is fine.  I can send messages fine.  But - every time I click on a mailbox I get the server error message.

How do I troubleshoot this?

Thanks!