Error after upgrade

groomy

Verified User
Joined
Dec 16, 2011
Messages
261
Location
AUGNY (France)
hi,
I did :
14. How to update everything what's needed?
Firstly, you need to run:
Code:

./build update

To fetch the latest versions file.

Run this if you want to look what updates are available:
Code:

./build versions

Run this if you want to update everything what's possible:
Code:

./build update_versions
.
and after mysql error.. in ssh i have :
Code:
ns201305:/usr/local/directadmin/custombuild# ./build mysql
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
eval: 1: /usr/local/mysql/bin/mysql: not found
Stopping mysqld ...
-e Stopping mysqld:             [ FAILED ]
-e Starting mysqld:             [ OK ]
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: not found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: not found
./build: 9985: /usr/local/mysql/bin/mysql_upgrade: not found
./build: 9985: /usr/local/mysql/bin/mysqlcheck: not found
Restarting MySQL.
-e Stopping mysqld:             [ FAILED ]
-e Starting mysqld:             [ OK ]
It is recommended to do "./build php n" after MySQL update.
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: not found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: not found
ns201305:/usr/local/directadmin/custombuild#

Help please
Thanks
 
Last edited:
I have this error :
ns201305:/usr/local/directadmin/custombuild# ./build clean
mail-header-patch=yes is set in the options.conf, but is not required with this php version.
To enable the X-Mail header, set mail.add_x_header to 1 in your php.ini
 
problem suphp :
Syntax error on line 26 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration

Help..... Snif
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build set mail-header-patch no
./build php d
./build suphp d
 
thanks , i have error, i not understand
If I give you the identifiers you can not watch because I think I'll make a stupidity. I also suphp wrong. Thank you very much in the meantime.
 
problem with mysql
Latest version of DirectAdmin: 1.41.1
Installed version of DirectAdmin: 1.41.1

Latest version of Apache: 2.2.22
Installed version of Apache: 2.2.22

Latest version of PCRE: 8.20
Installed version of PCRE: 8.20

Latest version of curl: 7.27.0
Installed version of curl: 7.27.0

Latest version of FreeType: 2.4.10
Installed version of FreeType: 2.4.10

Latest version of dovecot: 2.1.9
Installed version of dovecot: 2.1.9

Latest version of Exim: 4.80
Installed version of Exim: 4.80

./build: 9985: /usr/local/mysql/bin/mysql: not found
Latest version of MySQL: 5.1.65
Installed version of MySQL:

MySQL to 5.1.65 update is available.

/usr/local/php5/bin/php: error while loading shared libraries: libmysqlclient.so.16: wrong ELF class: ELFCLASS64
Latest version of PHP5 (CGI): 5.3.16
Installed version of PHP5 (CGI):

PHP5 (CGI) to 5.3.16 update is available.

Latest version of suPHP: 0.7.1
Installed version of suPHP: 0.7.1

Latest version of RoundCube webmail: 0.8.1
Installed version of RoundCube webmail: 0.8.1

Latest version of phpMyAdmin: 3.5.2.2-all-languages
Installed version of phpMyAdmin: 3.5.2.2-all-languages

Latest version of SquirrelMail: 1.4.22
Installed version of SquirrelMail: 1.4.22
 
What happens when you do:

Code:
cd /usr/local/directadmin/custombuild
./build set mysql 5.1
./build set mysql_inst yes
./build set mysql_backup yes
./build update
./build clean
./build mysql d

If this doesnt work you will have to run:

Code:
cd /usr/local/directadmin/scripts
./mysql.sh <root pass> <mysql user> <mysql pass>

The mysql user and mysql pass are in /usr/local/directadmin/conf/mysql.conf

Example:

Code:
./mysql.sh myrootpAss da_admin adaAdaf

You can also run this to get everything except your root password:

Code:
cd /usr/local/directadmin/scripts
user=$(cat /usr/local/directadmin/conf/mysql.conf | grep ^user | cut -d= -f2); pass=$(cat /usr/local/directadmin/conf/mysql.conf | grep ^passwd | cut -d= -f2); echo;echo "Type the following command. (Replace ROOTPASSWORD with actual root password.):";echo;echo "./mysql.sh ROOTPASSWORD $user $pass"
 
Last edited:
for the fist :
Code:
ns201305:/usr/local/directadmin/custombuild# ./build mysql d
eval: 1: /usr/local/mysql/bin/mysql: not found
Stopping mysqld ...
-e Stopping mysqld:             [ FAILED ]
-e Starting mysqld:             [ OK ]
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: not found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: not found
./build: 9985: /usr/local/mysql/bin/mysql_upgrade: not found
./build: 9985: /usr/local/mysql/bin/mysqlcheck: not found
Restarting MySQL.
-e Stopping mysqld:             [ FAILED ]
-e Starting mysqld:             [ OK ]
It is recommended to do "./build php n" after MySQL update.
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: not found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: not found
ns201305:/usr/local/directadmin/custombuild#
and i have this message :
-e Stopping mysqld: [ FAILED ]

*****************************************************
*****************************************************

It seems as though mysql has already been installed.
The directory /home/mysql has been found. For the best results, its recommended that this be deleted.
All database data will be lost if you delete it

Do you want to delete it? (y is recommended)? (y,n) : y

L'utilisateur système «*mysql*» existe déjà. Fin de la procédure.
 
Last edited:
Do this instead then:

Code:
cd /usr/local/directadmin/scripts
user=$(cat /usr/local/directadmin/conf/mysql.conf | grep ^user | cut -d= -f2); pass=$(cat /usr/local/directadmin/conf/mysql.conf | grep ^passwd | cut -d= -f2); echo;echo "Type the following command. (Replace ROOTPASSWORD with actual root password.):";echo;echo "./mysql.sh ROOTPASSWORD $user $pass"

If it doesnt work you can submit a support ticket to have someone look at your server.

https://www.directadmin.com/clients/safesubmit.php
 
thank you, I appreciate your help.
It is possible to detail the command, if rootpassword is xxxx
thank you
 
I have this message :
Type the following command. (Replace ROOTPASSWORD with actual root password.):

./mysql.sh Rootpasswd da_admin mysqlpasswd
ns201305:/usr/local/directadmin/scripts# ./mysql.sh Rootpasswd da_admin mysqlpasswd
-e Stopping mysqld: [ FAILED ]

*****************************************************
*****************************************************

It seems as though mysql has already been installed.
The directory /home/mysql has been found. For the best results, its recommended that this be deleted.
All database data will be lost if you delete it

Do you want to delete it? (y is recommended)? (y,n) : y

L'utilisateur système «*mysql*» existe déjà. Fin de la procédure.
scripts/mysql_install_db: 249: ./bin/my_print_defaults: not found
Neither host 'ns201305.ovh.net' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
-e Starting mysqld: [ OK ]
Waiting for mysqld to start....
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: n ot found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: n ot found
./mysql.sh: 188: /usr/local/mysql/bin/mysql: not found
./mysql.sh: 190: /usr/local/mysql/bin/mysql: not found
Thanks
 
If your root password is xxxx then you can run the command:

Code:
cd /usr/local/directadmin/scripts
user=$(cat /usr/local/directadmin/conf/mysql.conf | grep ^user | cut -d= -f2); pass=$(cat /usr/local/directadmin/conf/mysql.conf | grep ^passwd | cut -d= -f2); echo;echo "Type the following command. (Replace ROOTPASSWORD with actual root password.):";echo;echo "./mysql.sh ROOTPASSWORD $user $pass"

It will output this:

Code:
Type the following command. (Replace ROOTPASSWORD with actual root password.):

./mysql.sh ROOTPASSWORD da_admin 8adafCAd

You need to type:

Code:
./mysql.sh xxxx da_admin 8adafCAd
 
After upgrade i have : mysql-5.1.62-linux-i686
And now the last is : mysql-5.1.65-linux-x86_64

it's normal ?
Thanks please, i have client and website, and the server is down...
 
I give my information server that whoever will try to help me, send me a PM or email.
I am desperate thank you
 
After you upgrade with the mysql.sh you can just upgrade with custombuild.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build mysql d
 
hi, thanks.
I have this message :
Code:
ns201305:/usr/local/directadmin/custombuild# ./build mysql d
eval: 1: /usr/local/mysql/bin/mysql: not found
Stopping mysqld ...
-e Stopping mysqld:             [ FAILED ]
-e Starting mysqld:             [ OK ]
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: not found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: not found
./build: 9985: /usr/local/mysql/bin/mysql_upgrade: not found
./build: 9985: /usr/local/mysql/bin/mysqlcheck: not found
Restarting MySQL.
-e Stopping mysqld:             [ FAILED ]
-e Starting mysqld:             [ OK ]
It is recommended to do "./build php n" after MySQL update.
/usr/local/mysql/bin/mysqld_safe: 316: /usr/local/mysql/bin/my_print_defaults: not found
/usr/local/mysql/bin/mysqld_safe: 322: /usr/local/mysql/bin/my_print_defaults: not found
ns201305:/usr/local/directadmin/custombuild#
Mysql is broken...

Please ,
just 2 minutes someone looks ...Thanks
 
I was told that my server is a 32 bit version after upgrade is for 64 bit .. and from the server (mysql is out)
 
On the server, in home/mysql I have two empty folders (mysql and test) and an error file:

ns201305.ovh.net.err

120831 22:36:47 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
nohup: failed to run command `/usr/local/mysql/bin/mysqld': No such file or directory
120831 22:36:47 mysqld_safe mysqld from pid file /usr/local/mysql/data/ns201305.pid ended
120901 12:46:20 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
nohup: failed to run command `/usr/local/mysql/bin/mysqld': No such file or directory
120901 12:46:20 mysqld_safe mysqld from pid file /usr/local/mysql/data/ns201305.pid ended
120901 12:46:25 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
nohup: failed to run command `/usr/local/mysql/bin/mysqld': No such file or directory
120901 12:46:25 mysqld_safe mysqld from pid file /usr/local/mysql/data/ns201305.pid ended
 
Back
Top