Update MariaDB

Kurogane

Verified User
Joined
Oct 6, 2019
Messages
65
When update directadmin in MariaDB give this "error"

Code:
[1mUpdating MariaDB.(B[m
Dumping database da_roundcube
Dumping database db1
Dumping database db2
Dumping database db3
Dumping database db4
Dumping database mysql
--2019-12-18 15:45:50-- https://files.directadmin.com/services/all/mariadb/10.4/10.4.11/mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz
Resolving files.directadmin.com (files.directadmin.com)... 69.162.69.58, 104.128.54.74, 185.42.221.168
Connecting to files.directadmin.com (files.directadmin.com)|69.162.69.58|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 888060854 (847M) [application/x-gzip]
Saving to: 'mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz'
0K .......... .......... .......... .......... .......... 0% 454K 31m49s
50K .......... .......... .......... .......... .......... 0% 1.32M 21m16s
100K .......... .......... .......... .......... .......... 0% 1.35M 17m39s
150K .......... .......... .......... .......... .......... 0% 11.3M 13m33s
200K .......... .......... .......... .......... .......... 0% 1.45M 12m47s
.......
867200K .......... .......... .......... .......... ...... 100% 11.2M=76s
2019-12-18 15:47:06 (11.2 MB/s) - 'mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz' saved [888060854/888060854]
mv: 'mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz' and '/usr/local/mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz' are the same file
tar: write error
Stopping mysqld ...
Ensuring local-infile is disabled for security reasons in MySQL configuration file...
Giving mysqld a few seconds to start up...
Restarting MySQL.
Installation completed.
 
When update directadmin in MariaDB give this "error"

Code:
[1mUpdating MariaDB.(B[m
Dumping database da_roundcube
Dumping database db1
Dumping database db2
Dumping database db3
Dumping database db4
Dumping database mysql
--2019-12-18 15:45:50-- https://files.directadmin.com/services/all/mariadb/10.4/10.4.11/mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz
Resolving files.directadmin.com (files.directadmin.com)... 69.162.69.58, 104.128.54.74, 185.42.221.168
Connecting to files.directadmin.com (files.directadmin.com)|69.162.69.58|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 888060854 (847M) [application/x-gzip]
Saving to: 'mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz'
0K .......... .......... .......... .......... .......... 0% 454K 31m49s
50K .......... .......... .......... .......... .......... 0% 1.32M 21m16s
100K .......... .......... .......... .......... .......... 0% 1.35M 17m39s
150K .......... .......... .......... .......... .......... 0% 11.3M 13m33s
200K .......... .......... .......... .......... .......... 0% 1.45M 12m47s
.......
867200K .......... .......... .......... .......... ...... 100% 11.2M=76s
2019-12-18 15:47:06 (11.2 MB/s) - 'mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz' saved [888060854/888060854]
mv: 'mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz' and '/usr/local/mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz' are the same file
tar: write error
Stopping mysqld ...
Ensuring local-infile is disabled for security reasons in MySQL configuration file...
Giving mysqld a few seconds to start up...
Restarting MySQL.
Installation completed.
isn’t your /usr full?
 
No, if case others updates should be with same error but wasn't the case and only give me this error is with MariaDB.
 
What is the output of

df -h -Bm /usr/local/

and

df -h -Bm /tmp

Also what Cmd did you run to upgrade or prompt this error?
 
Last edited:
Code:
# df -h -Bm /tmp
Filesystem     1M-blocks   Used Available Use% Mounted on
/dev/md0         937746M 12329M   877714M   2% /
# df -h -Bm /usr/local/
Filesystem     1M-blocks   Used Available Use% Mounted on
/dev/md0         937746M 12329M   877714M   2% /

I not use any command i use web interface, but also happen when run via CLI.
 
what gives
Code:
cat /usr/local/directadmin/custombuild/options.conf

What OS and version?
 
Code:
# cat /usr/local/directadmin/custombuild/options.conf
#PHP Settings
php1_release=7.3
php1_mode=php-fpm
php2_release=7.2
php2_mode=php-fpm
php3_release=7.1
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=no
opcache=no
htscanner=no
php_ini=no
php_timezone=America/New_York
php_ini_type=production
ioncube=yes
imagick=no
zend=yes
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.7
mariadb=10.4
mysql_inst=mariadb
mysql_backup=yes
mysql_backup_gzip=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
http_methods=ALL
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=domain.com
redirect_host_https=yes

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes
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=yes
eximconf_release=4.5
blockcracking=no
easy_spam_fighter=no
spamd=no
sa_update=daily
dovecot=yes
dovecot_conf=yes
mail_compress=no
pigeonhole=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
custombuild_plugin=yes
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=yes
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cloudlinux_beta=no
cagefs=no

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

phpmyadmin_public=yes
ssl_configuration=intermediate

Debian 10
 
Is this a new server?

if yes did you run the preinstall cmds?
Code:
apt-get update
apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1

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

What server do you get in the end?
 
I've had this before and renaming /usr/local/mariadb-10.4.11-linux-glibc_214-x86_64.tar.gz and letting it repush seemed to work.
 
Yeah I think we should report that. If it's happening to more than 1 person.
 
Back
Top