During the install, any existing /var/lib/mysql symlink is removed and recreated pointing to /mnt/dietpi_userdata/mysql. In my case, the latter actually resolves as /media/data/dietpi_userdata/mysql and is owned by mysql:mysql.
I successfully set up DP/Nextcloud on this machine, but then realised that I hadn't changed the user data location to the hard drive. So I know everything installs okay on this rig. I then did a completely fresh install (reflashed the SD), did all the necessary setting up as normal, then mounted the HD (including an fstab entry) and then changed the user data. Then I tried installing Nextcloud and started hitting the MariaDB install issues.
I've tried completely removing/purging MariaDB and trying again, and even all other non-default software, but same failure every time.
Here's the error output:
Code: Select all
#### Details: - Date | Fri 7 Dec 18:42:30 CET 2018 - Bug report | N/A - DietPi version | v6.19.6 (Fourdee/master) - Img creator | DietPi Core Team - Pre-image | Meveric - SBC device | Odroid XU3/XU4/HC1/HC2 (armv7l) (index=11) - Kernel version | #1 SMP PREEMPT Thu Aug 23 05:59:33 UTC 2018 - Distro | stretch (index=4) - Command | G_AGI: mariadb-server - Exit code | 100 - Software title | DietPi-Software #### Additional logs: ``` Log file contents: Selecting previously unselected package rsync. Preparing to unpack .../13-rsync_3.1.2-1+deb9u1_armhf.deb ... Unpacking rsync (3.1.2-1+deb9u1) ... Selecting previously unselected package libwrap0:armhf. Preparing to unpack .../14-libwrap0_7.6.q-26_armhf.deb ... Unpacking libwrap0:armhf (7.6.q-26) ... Selecting previously unselected package socat. Preparing to unpack .../15-socat_22.214.171.124-2+deb9u1_armhf.deb ... Unpacking socat (126.96.36.199-2+deb9u1) ... Setting up mysql-common (5.8+1.0.2) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up mariadb-common (10.1.37-0+deb9u1) ... update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Selecting previously unselected package mariadb-server-10.1. (Reading database ... 16727 files and directories currently installed.) Preparing to unpack .../mariadb-server-10.1_10.1.37-0+deb9u1_armhf.deb ... Unpacking mariadb-server-10.1 (10.1.37-0+deb9u1) ... Selecting previously unselected package mariadb-server. Preparing to unpack .../mariadb-server_10.1.37-0+deb9u1_all.deb ... Unpacking mariadb-server (10.1.37-0+deb9u1) ... Setting up libatomic1:armhf (6.3.0-18+deb9u1) ... Setting up libconfig-inifiles-perl (2.94-1) ... Setting up libjemalloc1 (3.6.0-9.1) ... Setting up lsof (4.89+dfsg-0.1) ... Setting up rsync (3.1.2-1+deb9u1) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Setting up libaio1:armhf (0.3.110-3) ... Setting up galera-3 (25.3.19-2) ... Processing triggers for systemd (232-25+deb9u6) ... Setting up libreadline5:armhf (5.2+dfsg-3+b1) ... Setting up libdbi-perl (1.636-1+b1) ... Setting up libwrap0:armhf (7.6.q-26) ... Setting up mariadb-server-core-10.1 (10.1.37-0+deb9u1) ... Setting up socat (188.8.131.52-2+deb9u1) ... Setting up mariadb-client-core-10.1 (10.1.37-0+deb9u1) ... Setting up mariadb-client-10.1 (10.1.37-0+deb9u1) ... Setting up mariadb-server-10.1 (10.1.37-0+deb9u1) ... dpkg: error processing package mariadb-server-10.1 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mariadb-server: mariadb-server depends on mariadb-server-10.1 (>= 10.1.37-0+deb9u1); however: Package mariadb-server-10.1 is not configured yet. dpkg: error processing package mariadb-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.24-11+deb9u3) ... Errors were encountered while processing: mariadb-server-10.1 mariadb-server E: Sub-process /usr/bin/dpkg returned an error code (1)