line 138: /var/log/mariadb/mariadb.log: Permission denied
It looks like the /var/log/mariadb directory has wrong permissions and mysql cannot write to it. Check them out. Usually there is a mysql user/group created for the database to run so something like:
chown -R mysql.mysql /var/log/mariadb
may most probably solve your trouble.