Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: ElFroggio on November 20, 2014, 08:37:07 PM

Title: roundcube errors
Post by: ElFroggio on November 20, 2014, 08:37:07 PM
Hi,

I have roundcube. It use to work and suddenly today, I'm getting error messages.

Earlier this morning I got:

Code: [Select]
Couldn't connect to IMAP server
then later I got:

Code: [Select]
Connection to storage server failed
I have no problem connecting with horde/webmail.

Any suggestion on trying to track down what's causing the problem?

Thanks

Syv
Title: Re: roundcube errors
Post by: Stefano on November 20, 2014, 09:15:29 PM
ElFroggio: you are here since enough time you'd know that the first place to check for errors is /var/log directory

I'd take a look at httpd's logs
Title: Re: roundcube errors
Post by: stephdl on November 20, 2014, 09:20:29 PM
roundcube has its log

Code: [Select]
less /opt/roundcube/logs/errors
Title: Re: roundcube errors
Post by: Stefano on November 20, 2014, 09:22:02 PM
interesting... just a question.. why roundcube's log isn't in /var/log?
Title: Re: roundcube errors
Post by: ElFroggio on November 20, 2014, 10:45:45 PM
ElFroggio: you are here since enough time you'd know that the first place to check for errors is /var/log directory

I'd take a look at httpd's logs

 I still get: /opt/roundcube/logs/errors
Code: [Select]
[20-Nov-2014 13:40:43 -0800]: IMAP Error: Login failed for syv from 192.168.1.121. Could not connect to 911networks.com:143: Connection refused in /opt/roundcube/program/lib/Roundcube/rcube_imap.php on line 184 (POST /roundcube/?_task=login?_task=login&_action=login)
and I see no error in the dovecot/current

Thanks

Syv
Title: Re: roundcube errors
Post by: Stefano on November 20, 2014, 10:53:17 PM
is 911networks.com your domain?
did you change anything?
Title: Re: roundcube errors
Post by: ElFroggio on November 20, 2014, 11:47:41 PM
is 911networks.com your domain?
did you change anything?
911networks is the primary domain, registered as 911networks.com but this message is a local message.

I don't know.

Thanks

Syv
Title: Re: roundcube errors
Post by: stephdl on November 20, 2014, 11:58:12 PM
please give back

Code: [Select]
rpm -qa smeserver-roundcube roundcube
I assume that you have already  reconfigured your server ?
Title: Re: roundcube errors
Post by: ElFroggio on November 21, 2014, 12:22:57 AM
please give back

Code: [Select]
rpm -qa smeserver-roundcube roundcube

Code: [Select]
smeserver-roundcube-1.1-3.el6.sme.noarch
roundcube-1.0.2-1.el6.sme.noarch

Quote
I assume that you have already  reconfigured your server ?

Yes:
Code: [Select]
signal-event post-upgrade; signal-event reboot
Thanks for taking the time

Syv
Title: Re: roundcube errors
Post by: stephdl on November 21, 2014, 12:59:02 AM
-you could try to set the correct ownerships and try to login after

Code: [Select]
rpm --setperms smeserver-roundcube roundcube
rpm --setugids  smeserver-roundcube roundcube

Some questions

-If you create a new user does he can perform a login to roundcube
-when the user is refused do you have more logs :
Code: [Select]
/var/log/messages
/var/log/dovecot/current

Title: Re: roundcube errors
Post by: ElFroggio on November 21, 2014, 05:19:58 AM
-you could try to set the correct ownerships and try to login after

Code: [Select]
rpm --setperms smeserver-roundcube roundcube
rpm --setugids  smeserver-roundcube roundcube

Done

Quote
Some questions

-If you create a new user does he can perform a login to roundcube

Just did create a new user, same thing

Quote
-when the user is refused do you have more logs :
Code: [Select]
/var/log/messages
/var/log/dovecot/current

Failure:

messages:

Code: [Select]
Nov 20 14:47:14 ethelbert HORDE[3592]: [imp] Login success for syv [206.116.45.96] to {localhost:143 [imap/notls]} [pid 3592 on line 307 of "/home/httpd/html/horde/imp/lib/Session.php"]
Nov 20 14:48:00 ethelbert HORDE[3593]: [imp] Logout for syv [206.116.45.96] to {localhost:143 [imap/notls]} [pid 3593 on line 67 of "/home/httpd/html/horde/imp/login.php"]

The things is that I didn't log out.

dovecot/current:

Code: [Select]
@40000000546ebc3a020a29d4 imap-login: Info: Login: user=<syv>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=22727, secured
@40000000546ebc3a0d72506c imap(syv): Info: Disconnected: Logged out bytes=665/10016

Going successfully into horde/webmail (and reading an email) gives me:

messages:

Code: [Select]
Nov 20 20:14:36 ethelbert HORDE[21873]: [imp] Login success for syv [192.168.1.121] to {localhost:143 [imap/notls]} [pid 21873 on line 307 of "/home/httpd/html/horde/imp/lib/Session.php"]
Nov 20 20:14:43 ethelbert HORDE[21873]: [imp] Logout for syv [192.168.1.121] to {localhost:143 [imap/notls]} [pid 21873 on line 67 of "/home/httpd/html/horde/imp/login.php"]

dovecot/current:

Code: [Select]
@40000000546e6f7d163c9aa4 imap-login: Info: Login: user=<syv>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3636, secured
@40000000546e6f7d1e818454 imap(syv): Info: Disconnected: Logged out bytes=83/467
@40000000546e6f7d2493bf24 imap-login: Info: Login: user=<syv>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3641, secured
@40000000546e6f7e24ce4b6c imap(syv): Info: Disconnected: Logged out bytes=7067/215821


Thanks
Title: Re: roundcube errors
Post by: stephdl on November 21, 2014, 07:06:28 PM
interesting... just a question.. why roundcube's log isn't in /var/log?

It was designed like that by snobble...I agree that is not a standard path and I should to change that, at least document it. But now the rpm of roundcube is provided by epel so the next version will comes from their repo.

I hope that they are more conventional than me....I'm still learning everyday about my hobby.
Title: Re: roundcube errors
Post by: stephdl on November 22, 2014, 09:27:59 AM
Well, looking a bit, that's fun it doesn't work ????
I don't provide directives for the imap authentication, there are fully provided by roundcube.
What about

Code: [Select]
ll /opt/roundcube/
I want to see file permissions

what about if you reinstall roundcube
Code: [Select]
yum reinstall smeserver-roundcube roundcube --enablerepo=stephdl
signal-event post-upgrade ;signal-event reboot
Title: Re: roundcube errors
Post by: davidS on November 23, 2014, 10:35:23 PM
hi
i had the same error message, but after i looked at the error i notest that when we try to login from local network the roundcube is trying to login trough the domain.
from local network it's impossible to see the domain so maybe this is the problem.
Quote
IMAP Error: Login failed for syv from 192.168.1.2. Could not connect to mydomain.com:143
but when i try to login from the mydomain.com/roundcube the login is successful with all the users.