Connection to storage server failed.

ajax20

Verified User
Joined
Jul 16, 2014
Messages
142
Hello

After some recent updates including apache, dovecot, etc, now I cannot log in roundcube. I get the following error:

Code:
Connection to storage server failed.


It is noteworthy to say that I have a custom config.inc.php in the following path

Code:
/usr/local/directadmin/custombuild/custom/roundcube/

The file includes:

Code:
$config['default_host'] = 'ssl://server.mydomain.com:993';
$config['smtp_server'] = 'ssl://server.mydomain.com:465';
$config['smtp_port'] = 465;

I have already tried the suggestions given here, but they have none helped me.

Any ideas would be appreciated.

Regards
 
Last edited:
I tried rebuilding roundcube by running the following in terminal:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build roundcube d

and now I cannot reach the login screen. It gives the following messages:

Code:
CONFIGURATION ERROR

config.inc.php was not found.
Please read the INSTALL instructions!

After running ./build roundcube d I had the following wraning in terminal:

Code:
This instance of Roundcube is not yet configured!
Open [url]http://url-to-roundcube/installer/[/url] in your browser and follow the instuctions.

Please help.
Thanks
 
Last edited:
Well, this is what I did. I removed the config.inc.php file from

Code:
/usr/local/directadmin/custombuild/custom/roundcube

then I had to rebuild roundcube upon which I no onger recived the error message. I then proceeded to modify the original config.inc.php file in

Code:
/var/www/html/roundcube/config

as follows:

Code:
$config['default_host'] = 'ssl://server.mydomain.com:993';
$config['smtp_server'] = 'ssl://server.mydomain.com:465;
$config['smtp_port'] = 465;

After that I could log in through roundcube. After making my custom changes to this config file every thing seems to be ok. I also reproduced the custom config.inc.php in /usr/local/directadmin/custombuild/custom/rouncube.

Now my question is why didn't DA do that automatically upon the update and instead gave that error messages?

Regards
 
Last edited:
@Bendorius. Hello. Thanks for responding.
I think it is apache module.
 
Last edited:
Depending on when the custom/roundcube/config.inc.php was made, it's possible that newer roundcube versions use a newer config.inc.php.
So from time to time, removing and rebuilding your custom/roundcube/config.inc.php may be needed.

Using a diff/patch could be very handy for this.. where you'd figure out the differences between your custom and the default value that DA created, which would give you a patch:
http://help.directadmin.com/item.php?id=485

and any-time you need to make a new custom/roundcube/config.inc.php, you'd just delete your custom file, copy the /var/www/html/roundcube/config/config.inc.php over to the custom area, then apply the patch (which basically re-adds just your changes)
Assuming the format of the default RC config.inc.php hasn't changed too much, then patch should work. If not, then you'd just need to re-set your changes by hand.. which... for 3 lines wouldn't be too difficult anyway.

John
 
@John Hello. Thanks for the informative response. I'll give making patch a try.

Thanks again

Regards
 
Just had same problem, because I had custom/roundcube/config.inc.php file, after periodic update roundcube couldn't configure and it wasn't working out of box, perhaps You should check it?
 
please help me guys RoundCube: Connection to storage server failed I have tried all the solutions nothing working everything is running fine but still cant login
 
Back
Top