Author Topic: Help!! Server Error! (OK)  (Read 8038 times)

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« on: March 11, 2011, 04:35:35 PM »
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..

Code: [Select]
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!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Help!! Server Error! (OK)
« Reply #1 on: March 12, 2011, 05:31:21 PM »
What's in the RoundCube error log?

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« Reply #2 on: March 13, 2011, 03:53:36 PM »
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).

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Help!! Server Error! (OK)
« Reply #3 on: March 13, 2011, 07:47:23 PM »
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.

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« Reply #4 on: March 14, 2011, 02:05:38 AM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Help!! Server Error! (OK)
« Reply #5 on: March 14, 2011, 03:18:13 AM »
You mentioned that you did an upgrade does a fresh install have the same problem?

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« Reply #6 on: March 27, 2011, 05:39:55 PM »
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?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Help!! Server Error! (OK)
« Reply #7 on: March 28, 2011, 12:45:06 PM »
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.

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« Reply #8 on: March 30, 2011, 11:03:39 AM »
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.

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« Reply #9 on: March 30, 2011, 11:17:54 AM »
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?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Help!! Server Error! (OK)
« Reply #10 on: March 30, 2011, 11:37:55 AM »
Is there anyway I can get ftp access and and test account to see the problem?

Offline labatt

  • Newbie
  • *
  • Posts: 7
Help!! Server Error! (OK)
« Reply #11 on: April 26, 2011, 03:12:10 PM »
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;33683
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..

Code: [Select]
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!