Description of problem: touch cannot touch log file for mariadb55-mariadb-server because the directory path does not exists. Version-Release number of selected component (if applicable): Steps to Reproduce: 1. Install mariadb55-mariadb-server on clean system or delete /var/log/%{?scl_prefix}mariadb first Actual results: Installing : mariadb55-mariadb-server-5.5.33a-1.el7.x86_64 10/11 /bin/touch: cannot touch ‘/var/log/mariadb55-mariadb/mariadb.log’: No such file or directory warning: %post(mariadb55-mariadb-server-5.5.33a-1.el7.x86_64) scriptlet failed, exit status 1 Non-fatal POSTIN scriptlet failure in rpm package mariadb55-mariadb-server-5.5.33a-1.el7.x86_64 Installing : mariadb55-1-9.el7.x86_64 11/11 Expected results: Proper install I've noticed this in spec file: 497 %post server 498 %systemd_post %{?scl_prefix}mariadb.service 499 /bin/chmod 0755 %{?_scl_root}/var/lib/mysql 500 /bin/touch /var/log/%{?scl_prefix}mariadb/mariadb.log It's touching log file but it's not creating the path leading to it.
There is a mixture of mysqld.log and mariadb.log files, so this needs to be fixed. mariadb55-mysqld.log seems to be the better way to go in RHSCL-1.1, since we want to be compatible with RHSCL-1.0. We can change the log file location to /var/log/mariadb55-mariadb/mariadb.log (corresponds with RHEL-7 base layout) in RHSCL-2.0.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system is receiving updates from RHN Classic or RHN Satellite. Setting up Reinstall Process Resolving Dependencies --> Running transaction check ---> Package mariadb55-mariadb-server.x86_64 0:5.5.34-6.el6 will be reinstalled --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Reinstalling: mariadb55-mariadb-server x86_64 5.5.34-6.el6 errata 13 M Transaction Summary ================================================================================ Reinstall 1 Package(s) Total download size: 13 M Installed size: 55 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : mariadb55-mariadb-server-5.5.34-6.el6.x86_64 1/1 Verifying : mariadb55-mariadb-server-5.5.34-6.el6.x86_64 1/1 Installed: mariadb55-mariadb-server.x86_64 0:5.5.34-6.el6 Complete! :: [ 16:36:49 ] :: [ INFO ] :: rlRun: command = 'yum reinstall -y mariadb55-mariadb-server'; exitcode = 0; expected = 0 :: [ PASS ] :: Running 'yum reinstall -y mariadb55-mariadb-server' (Expected 0, got 0) :: [ PASS ] :: File '/var/tmp/tmp.OUpgG7MeUq' should not contain 'No such file or directory' :: [ PASS ] :: File '/var/tmp/tmp.OUpgG7MeUq' should not contain 'failed' :: [ PASS ] :: File '/var/tmp/tmp.OUpgG7MeUq' should not contain 'failure' Beaker job: https://beaker.engineering.redhat.com/jobs/587499
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0614.html