Failed Roundcube update

bluebirdnet

Verified User
Joined
Feb 3, 2010
Messages
123
Location
Canada
Hi,

When trying to update roundcube it just hangs;

Code:
 ./build roundcube

does nothing, when i break command i see its updated (./build versions) but Roundcube is not working.

How can we completely remove this and have custombuild try again ?

There are no logs in custombuild to see what issue is?

Tried deleting gzip in Custombuild and try again but same issue;


Code:
./build roundcube
Downloading		roundcubemail-1.2.5.tar.gz...
--2017-06-05 00:15:14--  http://files18.directadmin.com/services/custombuild/all/roundcube/roundcubemail-1.2.5.tar.gz
Resolving files18.directadmin.com (files18.directadmin.com)... 37.72.98.6
Connecting to files18.directadmin.com (files18.directadmin.com)|37.72.98.6|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3995964 (3.8M) [application/x-gzip]
Saving to: ‘/usr/local/directadmin/custombuild/roundcubemail-1.2.5.tar.gz’

100%[==========================================================>] 3,995,964   --.-K/s   in 0.1s    

2017-06-05 00:15:14 (26.8 MB/s) - ‘/usr/local/directadmin/custombuild/roundcubemail-1.2.5.tar.gz’ saved [3995964/3995964]

Was getting error 403 so after chown webapps:webapps -Rf roundcubemail-1.2.5/


Code:
CONFIGURATION ERROR

config.inc.php was not found.
Please read the INSTALL instructions!
 
Last edited:
You tried this already?

I presume you already have roundcube=yes in your options.conf and you're using custombuild 2.0?

Try this:
Code:
cd /usr/local/directadmin/custombuild
rm -f roundcubemail*
rm -rf /var/www/roundcube*
./build clean
./build update
./build roundcube

If it works your /var/www/html/roundcube/config/, it should contain this:
Code:
-r--r-----  1 webapps webapps 4.4K 2017-04-29 13:15 config.inc.php
-rw-r--r--  1 webapps webapps 3.9K 2017-04-28 10:11 config.inc.php.sample
-rw-r--r--  1 webapps webapps  51K 2017-04-28 10:11 defaults.inc.php
-rw-r--r--  1 webapps webapps  164 2017-04-28 10:11 .htaccess
-rw-r--r--  1 webapps webapps 2.8K 2017-04-28 10:11 mimetypes.php
-rw-------  1 webapps webapps   53 2017-04-29 13:15 my.cnf

If only the config.php is missing, you could create one from the sample file.
First line should look like:
Code:
$config['db_dsnw'] = 'mysql://da_roundcube:yourdamysqlpasswordhere@localhost/da_roundcube';

Hope this helps you.
 
You tried this already?

I presume you already have roundcube=yes in your options.conf and you're using custombuild 2.0?

Try this:
Code:
cd /usr/local/directadmin/custombuild
rm -f roundcubemail*
rm -rf /var/www/roundcube*
./build clean
./build update
./build roundcube

If it works your /var/www/html/roundcube/config/, it should contain this:
Code:
-r--r-----  1 webapps webapps 4.4K 2017-04-29 13:15 config.inc.php
-rw-r--r--  1 webapps webapps 3.9K 2017-04-28 10:11 config.inc.php.sample
-rw-r--r--  1 webapps webapps  51K 2017-04-28 10:11 defaults.inc.php
-rw-r--r--  1 webapps webapps  164 2017-04-28 10:11 .htaccess
-rw-r--r--  1 webapps webapps 2.8K 2017-04-28 10:11 mimetypes.php
-rw-------  1 webapps webapps   53 2017-04-29 13:15 my.cnf

If only the config.php is missing, you could create one from the sample file.
First line should look like:
Code:
$config['db_dsnw'] = 'mysql://da_roundcube:yourdamysqlpasswordhere@localhost/da_roundcube';

Hope this helps you.

Thanks for the recommendations Richard. I have tried this already and no change.

The installation seems to complete but following files are missing in /var/www/html/roundcube/config/

config.inc.php
my.cnf

Is there a way to see what custombuild is doing? a verbose method or log to a file?
I have no way of seeing what its doing as it seems to be installing but not showing any progress.
 
Thanks for the recommendations Richard. I have tried this already and no change.

The installation seems to complete but following files are missing in /var/www/html/roundcube/config/

config.inc.php
my.cnf

Is there a way to see what custombuild is doing? a verbose method or log to a file?
I have no way of seeing what its doing as it seems to be installing but not showing any progress.

Try running with bash -x ./build roundcube
That way you can see every command custombuild does in the shell. Good luck!
 
The installation seems to complete but following files are missing in /var/www/html/roundcube/config/

config.inc.php
my.cnf
I hope the comment of Nielsh will help you to figure out what is going wrong at the end.
Do you have a my.cnf in /usr/local/directadmin/conf? Because if that is not there, it might be the issue that this file is not copied and the config.inc.php is not created. I'm not sure of that but it's a possibility.

However, the command provided by Nielsh should tell you more. Makes me curious what is causing this.
 
Try running with bash -x ./build roundcube
That way you can see every command custombuild does in the shell. Good luck!

thanks for this! this gives us more insight and confirms issue creating db portion.

below is a portion of the last 8 lines, It hangs on that last line

+ EDIT_CONFIG=config.inc.php
+ CONFIG_DIST=config.inc.php.sample
+ EDIT_DB=config.inc.php
+ DB_DIST=config.inc.php.sample
+ MYSQLSHOW=/usr/bin/mysqlshow
+ '[' '!' -e /usr/bin/mysqlshow ']'
+ /usr/bin/mysqlshow --defaults-extra-file=/usr/local/directadmin/conf/my.cnf --host=localhost
+ grep -m1 -q ' da_roundcube '

the file =/usr/local/directadmin/conf/my.cnf exists.
 
Does the my.cnf contain the same username and password as the /usr/local/directadmin/conf/mysql.conf?
 
I have finally resolved my issue by recompiling PHP and then Nginx_Apache & reboot. After i was able to run "bash -x ./build roundcube" and see it complete.

Roundcube now loads!

Thank you @Nielish and @RichardG for all your help.
 
Back
Top