Roundcube Community Forum

Release Support => Pending Issues => Topic started by: aweber on April 26, 2013, 05:07:14 PM

Title: can't test authenticate to localhost IMAP, won't log?
Post by: aweber on April 26, 2013, 05:07:14 PM
I have done my best to enable logging, but I can't get anything written to the log directory.

If I telnet localhost 143, I can LOGIN with my credentials (dovecot).

No matter what I put into the "Test Config" page to test IMAP, it always fails.  I don't know why.  It won't log anything so far.

I can't believe I'm having this much trouble with this app.

-AJ
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: SKaero on April 26, 2013, 06:14:25 PM
The installer sometime doesn't read the config and will use CRAM-MD5 instead of what you have in the main.inc.php. My advised would be to skip the installer check and see if you can actually login to RoundCube.
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: aweber on April 29, 2013, 08:47:59 AM
Unfortunately, trying to login to the normal interface gives me a "connection to storage server failed".  And still nothing in the log directory.  Nothing at all.
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: SKaero on April 29, 2013, 04:50:53 PM
Make sure the logs directory is writeable, every failed login should add a line.
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: aweber on April 29, 2013, 05:03:00 PM
Not sure what's going on.  I tried explicitly giving an absolute path, because I thought I was just looking in the wrong place.  The directory is 777 (and actually owned by apache user).

(That part passed the test-config as writable too.)

EDIT:
Changed Log type to 5, and see a message on the top after failed login:
Quote
IMAP Error in /var/www/html/webmail/program/lib/Roundcube/rcube_imap.php (184): Login failed for aweber from 192.168.1.176. Could not connect to app2:143: Permission denied
(Remember, telnet to port 143 allows me to manually logon correctly.)
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: SKaero on April 29, 2013, 05:05:01 PM
What is the debug level in the main.inc.php?
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: aweber on April 29, 2013, 05:06:02 PM
See above.  Sorry, just saw that setting and updated it and edited my post.

That appears to have it logging now.  This is the entry in "errors" file:
Quote
[29-Apr-2013 17:08:05 -0400]: IMAP Error: Login failed for aweber from 192.168.1.176. Could not connect to app2:143: Permission denied in /var/www/html/webmail/program/lib/Roundcube/rcube_imap.php on line 184 (POST /webmail/?_task=login&_action=login)
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: SKaero on April 29, 2013, 05:15:14 PM
Do you have SELinux enabled? Does it work if you turn if off?
Title: Re: can't test authenticate to localhost IMAP, won't log?
Post by: aweber on April 29, 2013, 05:24:53 PM
That was it.  Beautiful.

I don't (think I) need it on, and I'm a little surprised it was enabled by default.

THANK YOU.

-AJ