I can't update mariadb to 10.1.17

youyoums

Verified User
Joined
Jul 21, 2011
Messages
37
I have update my ditectadmin to the latest one,Apache 2.4.23+DirectAdmin 1.50.1+MariaDB 10.1.16+Php 7.0.10,when i use these code:
Code:
/usr/local/directadmin/custombuild/build update
 /usr/local/directadmin/custombuild/build update_versions
MariaDB 10.1.17 is stopped,there are some mistake,so i chenge mariadb=10.1 to mariadb=10.0 in the options.conf
Code:
#PHP Settings
php1_release=7.0
php1_mode=suphp
php2_release=no
php2_mode=php-fpm
opcache=yes
htscanner=no
php_ini=no
php_timezone=Europe/London
php_ini_type=production
ioncube=yes
zend=yes
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mariadb=10.0
mysql_inst=mariadb
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
userdir_access=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=localhost.localdomain
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=no
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=no
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no

#Mail Settings
exim=yes
eximconf=no
eximconf_release=4.4
blockcracking=no
easy_spam_fighter=no
spamassassin=no
sa_update=no
dovecot=no
dovecot_conf=yes
pigeonhole=no

#FTP Settings
ftpd=no

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files.directadmin.com

#Cronjob Settings
cron=no
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=no
new_pcre=no

and then i try to # /usr/local/directadmin/custombuild/build mariadb
Code:
[root@server ~]# /usr/local/directadmin/custombuild/build mariadb
: integer expression expectedbuild/build: line 1031: [: 4
: integer expression expectedbuild/build: line 1036: [: 4
/usr/local/directadmin/custombuild/build: line 2506: [: : integer expression expected
.ustomBuild 2.0 does support Apache 2.4 only. Please check your apache_ver value in the options.conf file: 2.4
at last ,i try to use ./build update
Code:
./build update
as a result,404: Not Found
Code:
[root@server custombuild]# ./build update
: integer expression expected
: integer expression expected
./build: line 2506: [: : integer expression expected
--2016-09-08 04:59:17--  http://files.directadmin.com%0D/services/custombuild/2.0%0D/custombuild.tar.gz
Resolving files.directadmin.com\r (files.directadmin.com\r)... failed: Name or service not known.
wget: unable to resolve host address 'files.directadmin.com\r'
Fileserver might be down, using the backup file server..
--2016-09-08 04:59:22--  http://69.162.69.58/services/custombuild/2.0%0D/custombuild.tar.gz
Connecting to 69.162.69.58:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-09-08 04:59:22 ERROR 404: Not Found.

Unable to extract custombuild.tar.gz.
: integer expression expected
: integer expression expected
./build: line 2506: [: : integer expression expected
_VER.tar.gz...  	php-
--2016-09-08 04:59:24--  http://files.directadmin.com%0D/services/custombuild/php-%0D_VER.tar.gz
Resolving files.directadmin.com\r (files.directadmin.com\r)... failed: Name or service not known.
wget: unable to resolve host address 'files.directadmin.com\r'
_VER.tar.gz does not exist or is empty after downloadp-
cwd is: /usr/local/directadmin/custombuild
Fileserver might be down, using the backup file server..
--2016-09-08 04:59:24--  http://69.162.69.58/services/custombuild/php-%0D_VER.tar.gz
Connecting to 69.162.69.58:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-09-08 04:59:24 ERROR 404: Not Found.

_VER.tar.gz...  	php-
--2016-09-08 04:59:24--  http://files.directadmin.com%0D/services/custombuild/php-%0D_VER.tar.gz
Resolving files.directadmin.com\r (files.directadmin.com\r)... failed: Name or service not known.
wget: unable to resolve host address 'files.directadmin.com\r'
_VER.tar.gz does not exist or is empty after downloadp-
cwd is: /usr/local/directadmin/custombuild
Fileserver might be down, using the backup file server..
--2016-09-08 04:59:24--  http://69.162.69.58/services/custombuild/php-%0D_VER.tar.gz
Connecting to 69.162.69.58:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-09-08 04:59:24 ERROR 404: Not Found.

[root@server custombuild]#
 
[CODE[root@server ~]# systemctl restart mysql.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
[root@server ~]#
][/CODE]
 
[root@server ~]# systemctl status mysqld.service
● mysqld.service - MariaDB database server
Loaded: loaded (/etc/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-09-08 05:46:06 UTC; 54s ago
Process: 14602 ExecStartPre=/bin/sh -c VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=1/FAILURE)
Process: 14599 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)

Sep 08 05:46:06 server.xx.com systemd[1]: Starting MariaDB database server...
Sep 08 05:46:06 server.xx.com sh[14602]: /bin/sh: /usr/bin/galera_recovery: No such file or directory
Sep 08 05:46:06 server.xx.com systemd[1]: mysqld.service: control process exited, code=exited status=1
Sep 08 05:46:06 server.xx.com systemd[1]: Failed to start MariaDB database server.
Sep 08 05:46:06 server.xx.com systemd[1]: Unit mysqld.service entered failed state.
Sep 08 05:46:06 server.xx.com systemd[1]: mysqld.service failed.
[root@server ~]#
 
This issue has re-occurred with MariaDB 10.2 in that it not included in the rpm packagesp
Code:
/bin/sh: /usr/bin/galera_recovery: No such file or directory
I've updated the mariadb.service systemd boot script:
http://files1.directadmin.com/services/custombuild/2.0/custombuild/configure/systemd/mariadb.service

to "pass" if there is no galera_recovery:
Code:
[COLOR=#000000]ExecStartPre=/bin/sh -c "[/COLOR][COLOR=#008000][B][ -x /usr/bin/galera_recovery ] || exit 0; [/B][/COLOR][COLOR=#000000]VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && \
[/COLOR][COLOR=#000000] systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1"[/COLOR]
basically just adding
Code:
[COLOR=#000000][ -x /usr/bin/galera_recovery ] || exit 0; [/COLOR]
to the start of the /bin/sh -c "####" section.

The file would be located at:
Code:
/etc/systemd/system/mysqld.service
there might be a mariadb.service symbolic link, but DA only calls mysqld.service, so mysqld.service is all that matters.


John
 
Back
Top