Koozali.org: home of the SME Server

Roundcube login fails

Offline chrislaurie

  • *
  • 96
  • +0/-0
Roundcube login fails
« on: December 03, 2013, 08:47:10 PM »
Hi

I installed RoundCube as per the wiki but when I log on it fails with the following error message:

Connection to storage server failed

Any ideas?
« Last Edit: December 04, 2013, 03:30:49 AM by chrislaurie »

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Roindcube login fails
« Reply #1 on: December 03, 2013, 10:18:27 PM »
did you do ?

 yum --enablerepo=smecontribs install smeserver-roundcube
and
signal-event post-upgrade; signal-event reboot

it works out of the box for me, you should take a look to the logs

less /var/log/messages
and
less /var/log/httpd/error_log
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Roundcube login fails
« Reply #2 on: December 04, 2013, 04:21:31 AM »
I copied and pasted the install instructions as is. On 2 servers in fact. One was migrated using affa (new install, become affa of old sme7, then rise) and the other a clean install of sme 8 - both have the same problem.

If I enter the wrong login details it says login failed (expected). If I enter a correct username and password it says loading for a second or 2 an then: "Connection to storage server failed."

There is nothing in less /var/log/messages or /var/log/httpd/error_log - but I did find something in /opt/roundcube/logs/error:

[04-Dec-2013 05:11:42 +0200]: IMAP Error: Login failed for admin from 192.168.0.104. Could not connect to acron.biz:143: Connection refused in /opt/roundcube/program/lib/Roundcube/rcube_imap.php on line 184 (POST /roundcube/?_task=login&_action=login)

I have used PuTTy to telnet to port 143 and I get this response:
* OK imapfront ready. + stunnel

I know it works out of the box for you but it does unfortunately not for me.

Any ideas on what I can try, please?

Online Stefano

  • *
  • 10,839
  • +2/-0
Re: Roundcube login fails
« Reply #3 on: December 04, 2013, 10:14:21 AM »
who is acron.biz?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Roundcube login fails
« Reply #4 on: December 04, 2013, 12:14:07 PM »
some ideas :

-can you use the webmail horde with the same credentials of users ?
-the url where roundcube is reachable is https://sme-ip/roundcube ?
-do you have dovecot updated manually ?
-didi you install te old version of roundcube previously in sme7contribs ?
-do you take a look to google when you search "Connection to storage server failed."
-who is acron.biz ?


« Last Edit: December 04, 2013, 12:20:51 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Roundcube login fails
« Reply #5 on: December 04, 2013, 07:10:50 PM »
Thanx for the response:

-can you use the webmail horde with the same credentials of users ?
     yes using ip, servername and domain.
-the url where roundcube is reachable is https://sme-ip/roundcube ?
     yes, the login page loads and the
-do you have dovecot updated manually ?
     no, I don't think so
-didi you install te old version of roundcube previously in sme7contribs ?
     I don't think so on this server. I did check that there was no trace of roundcube but I may have missed something. On the second server definitely not. It is a brand new install of sme8.2.
-do you take a look to google when you search "Connection to storage server failed."
     I did, but did not yet find an idea as to what might be going on. Those installs are also quite different with roundcube living in /opt etc.
-who is acron.biz ?
     That is my domain. It fails on both the domain and the server name.

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Roundcube login fails
« Reply #6 on: December 04, 2013, 08:46:17 PM »
So I found this post http://www.roundcubeforum.net/index.php?topic=14742.0

The user says his schoolboy error was that he needed the following entry in the  /ete/rc.conf file:

dovecot_enable="YES"

but sme does not have a rc.conf file

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Roundcube login fails
« Reply #7 on: December 04, 2013, 09:30:02 PM »
are you in "server and gateway" or "server_only" for the configuration of your smeserver ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Roundcube login fails
« Reply #8 on: December 04, 2013, 10:00:05 PM »
server only for the moment.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Roundcube login fails
« Reply #9 on: December 04, 2013, 10:28:30 PM »
please report the output of

/sbin/e-smith/audittools/newrpms

/sbin/e-smith/audittools/repositories
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Roundcube login fails
« Reply #10 on: December 05, 2013, 07:29:48 AM »
Thanks again for your response. Here are the answers.

/sbin/e-smith/audittools/newrpms:

libmcrypt.x86_64                      2.5.8-4.el5.centos               installed
php53-mcrypt.x86_64                   5.3.3-1.el5                      installed
php53-php-gettext.noarch              1.0.11-3.el5                     installed
phpMyAdmin3.noarch                    3.5.8.1-1.el5                    installed
roundcube.noarch                      0.9.5-1.el5.sme                  installed
smeserver-phpmyadmin.noarch           3.5.2.2-6.el5.sme                installed
smeserver-release.noarch              26:8.1-0.beta2.el5.sme           installed
smeserver-roundcube.noarch            0.9-18.el5.sme                   installed

/sbin/e-smith/audittools/repositories:
addons: disabled
base: disabled
centosplus: disabled
contrib: disabled
dag: disabled
epel: disabled
extras: disabled
geekery: disabled
nethsme: disabled
smeaddons: enabled
smecontribs: disabled
smedev: disabled
smeextras: enabled
smeos: enabled
smetest: disabled
smeupdates: enabled
smeupdates-testing: disabled
snetram: disabled
sogo: disabled
squeezecenter-release: disabled
squeezecenter-testing: disabled
squeezecenter-unstable: disabled
stephdl: disabled
through-ip: disabled
updates: disabled



Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Roundcube login fails
« Reply #11 on: December 05, 2013, 07:41:37 AM »
can you do the same command line on the two computers (on upgraded and one installed from scratch) to understand why it doesn't work, and specify which server it is
« Last Edit: December 05, 2013, 07:43:13 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Roundcube login fails
« Reply #12 on: December 05, 2013, 07:41:56 AM »
this output is normal i do not understand, probably you have to remove completely roundcube and its mysql DB and reinstall again, with a big attention to the yum output
« Last Edit: December 05, 2013, 07:44:29 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Roundcube login fails
« Reply #13 on: December 05, 2013, 07:47:32 AM »
chrislaurie

Some of your repos are configured incorrectly & you would be missing vital updates packages, your server could be in a real mess as a result.
These should be status=enabled
base
updates

See
http://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#Which_repositories_should_be_enabled
Follow the instructions for enabling these & then you should run yum update
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Roundcube login fails
« Reply #14 on: December 05, 2013, 01:48:30 PM »
Hi

I installed RoundCube as per the wiki but when I log on it fails with the following error message:

Connection to storage server failed

Any ideas?

According to this thread, you may see this error if there is no mailbox on the SME server for the user you are trying to login:
http://www.roundcubeforum.net/index.php?topic=9886.0

According to this thread, the problem may be damaged dovecot indexes:
http://help.directadmin.com/item.php?id=473

There is a db connection string in /opt/roundcube/config/db.inc.php:
$rcmail_config['db_dsnw'] = 'mysql://<dbuser>:<dbpassword>@<dbhost>/dbname>';
Do the specified username, password, host, and database name work correctly?  You can test this using:
Code: [Select]
mysql -u <dbuser> -p -e "show databases;"Copy and paste the password from your connect string.  The output should look like this:
Code: [Select]
+--------------------+
| Database           |
+--------------------+
| information_schema |
| <dbname>           |
| test               |
+--------------------+