Get an error when Installing Directadmin

mangelot

Verified User
Joined
Jan 11, 2007
Messages
61
Location
Enschede, Netherlands
Clean install on centos7 x86_64,
yum updated!
directadmin pre-install commands installed
running setup.sh stops with aborting install...

HTML:
Found /usr/local/directadmin/custombuild/mysql/MariaDB-client-10.1.41-1.el7.centos.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MariaDB-devel-10.1.41-1.el7.centos.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MariaDB-server-10.1.41-1.el7.centos.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MariaDB-shared-10.1.41-1.el7.centos.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MariaDB-common-10.1.41-1.el7.centos.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MariaDB-compat-10.1.41-1.el7.centos.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MariaDB-backup-10.1.41-1.el7.centos.x86_64.rpm
Installing dependencies...
Installing libjemalloc...
Found /usr/local/directadmin/custombuild/mysql/jemalloc-3.6.0-1.el7.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/jemalloc-devel-3.6.0-1.el7.x86_64.rpm
warning: /usr/local/directadmin/custombuild/mysql/jemalloc-3.6.0-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:jemalloc-3.6.0-1.el7             ################################# [ 50%]
   2:jemalloc-devel-3.6.0-1.el7       ################################# [100%]
Installing galera...
Found /usr/local/directadmin/custombuild/mysql/galera-25.3.27-1.rhel7.el7.centos.x86_64.rpm
warning: /usr/local/directadmin/custombuild/mysql/galera-25.3.27-1.rhel7.el7.centos.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
Preparing...                          ################################# [100%]
        installing package galera-25.3.27-1.rhel7.el7.centos.x86_64 needs 33MB on the / filesystem
Stopping mysqld ...
Cannot find /usr/bin/mysql, installing MariaDB
warning: MariaDB-client-10.1.41-1.el7.centos.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
Preparing...                          ################################# [100%]
        installing package MariaDB-client-10.1.41-1.el7.centos.x86_64 needs 52MB on the / filesystem
        installing package MariaDB-server-10.1.41-1.el7.centos.x86_64 needs 176MB on the / filesystem
        installing package MariaDB-devel-10.1.41-1.el7.centos.x86_64 needs 216MB on the / filesystem
        installing package MariaDB-shared-10.1.41-1.el7.centos.x86_64 needs 219MB on the / filesystem
        installing package MariaDB-compat-10.1.41-1.el7.centos.x86_64 needs 228MB on the / filesystem
        installing package MariaDB-backup-10.1.41-1.el7.centos.x86_64 needs 249MB on the / filesystem
Failed to execute operation: Invalid argument
Removed symlink /etc/systemd/system/mariadb.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/mysqld.service.
Removed symlink /etc/systemd/system/mysql.service.
Created symlink from /etc/systemd/system/mysql.service to /etc/systemd/system/mysqld.service.
Created symlink from /etc/systemd/system/mariadb.service to /etc/systemd/system/mysqld.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mysqld.service to /etc/systemd/system/mysqld.service.
Ensuring local-infile is disabled for security reasons in MySQL configuration file...
/var/lib/mysql/mysql does not exist, running clean mysql data installation...
./build: line 9130: /usr/sbin/mysqld: No such file or directory
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
./build: line 9149: /usr/bin/mysqladmin: No such file or directory
./build: line 9189: /usr/bin/mysql: No such file or directory
./build: line 9201: /usr/bin/mysql: No such file or directory
Unable to login using root MySQL credentials. Aborting installation...
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,766
Location
LT, EU
I think /usr/bin/mysql_install_db does not exist, because you ran out of disk space:
installing package MariaDB-backup-10.1.41-1.el7.centos.x86_64 needs 249MB on the / filesystem
Please check the output of:
Code:
df -h
 

serversetupco

New member
Joined
Jul 3, 2018
Messages
4
I have same problem:

Code:
Updating / installing...
   1:MariaDB-compat-10.3.21-1.el7.cent################################# [ 14%]
   2:MariaDB-common-10.3.21-1.el7.cent################################# [ 29%]
   3:MariaDB-client-10.3.21-1.el7.cent################################# [ 43%]
   4:MariaDB-server-10.3.21-1.el7.cent################################# [ 57%]
error: unpacking of archive failed on file /usr/bin/aria_chk;5e21423e: cpio: read
error: MariaDB-server-10.3.21-1.el7.centos.x86_64: install failed
   5:MariaDB-devel-10.3.21-1.el7.cento################################# [ 71%]
error: unpacking of archive failed on file /usr/lib64/libmariadbd.a;5e21423e: cpio: read
error: MariaDB-devel-10.3.21-1.el7.centos.x86_64: install failed
   6:MariaDB-shared-10.3.21-1.el7.cent################################# [ 86%]
   7:MariaDB-backup-10.3.21-1.el7.cent################################# [100%]
Created symlink from /etc/systemd/system/mysql.service to /etc/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/mysqld.service to /etc/systemd/system/mariadb.service.
Ensuring local-infile is disabled for security reasons in MySQL configuration file...
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
Giving mysqld a few seconds to start up...
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
Restarting MySQL.
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

df -h

Code:
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 7.8G     0  7.8G   0% /dev
tmpfs                    7.8G     0  7.8G   0% /dev/shm
tmpfs                    7.8G   42M  7.8G   1% /run
tmpfs                    7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/mapper/centos-root  232G  4.3G  216G   2% /
/dev/sda1                976M  172M  737M  19% /boot
tmpfs                    1.6G     0  1.6G   0% /run/user/0
 

serversetupco

New member
Joined
Jul 3, 2018
Messages
4
problem solved with redownloading packages:

Code:
cd /usr/local/directadmin/custombuild
rm -f mysql/MariaDB-10.*
./build update
./build mariadb
 
Top