https://bugzilla.redhat.com/show_bug.cgi?id=991233
Bug ID: 991233 Summary: amavisd.service fails to start because required default folders are missing Product: Fedora Version: 19 Component: amavisd-new Assignee: steve@silug.org Reporter: jflorian@doubledog.org QA Contact: extras-qa@fedoraproject.org CC: arcfi@aetera.net, jflorian@doubledog.org, kanarip@kanarip.com, perl-devel@lists.fedoraproject.org, sexynaya2010@hotmail.com, steve@silug.org
+++ This bug was initially created as a clone of Bug #863069 +++
Description of problem: There are some default folder locations specified in the config file that don't get created when amavisd-new is installed. The program fails to start because of it, at least until the host is rebooted.
For example, this message gets printed to the log file when trying to start the service: amavis[5461]: (!)Net::Server: 2012/10/04-04:35:06 Couldn't open pid file "/var/run/amavisd/amavisd.pid" [No such file or directory].\n\n at line 318 in fil...Net/Server.pm
In order to make amavisd.service start correctly, I had to do the following: mkdir /var/spool/amavisd/var mkdir /var/run/amavisd/ chown -R amavis:amavis /var/spool/amavisd/var /var/run/amavisd/ chmod 700 /var/spool/amavisd/var
After that, everything worked as expected. The other option is to reboot before attempting to start the service.
Version-Release number of selected component (if applicable): amavisd-new-2.8.0-5.fc19
How reproducible: Always
Steps to Reproduce: 1. yum install amavisd-new 2. systemctl start amavisd.service 3.
Actual results: Fails to start
Expected results: Starts using default config file
Additional info: I noticed that /var/run/amavisd is not present immediately after installing the package. Once I rebooted the host, the directory became available. To me this suggests that the entry /etc/tmpfiles.d/amavisd-new.conf is doing its job, but the spec file for this package needs to also make the same temporary directories as part of package installation, or somehow rerun the tmpfiles.d jobs. Without doing this, those directories won't be available right after package installation.
https://bugzilla.redhat.com/show_bug.cgi?id=991233
Juan Orti Alcaine j.orti.alcaine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |j.orti.alcaine@gmail.com Assignee|steve@silug.org |j.orti.alcaine@gmail.com
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #1 from ArcFi arcfi@aetera.net --- (In reply to John Florian from comment #0)
... or somehow rerun the tmpfiles.d jobs.
systemd-tmpfiles --create
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #2 from John Florian jflorian@doubledog.org --- (In reply to ArcFi from comment #1)
(In reply to John Florian from comment #0)
... or somehow rerun the tmpfiles.d jobs.
systemd-tmpfiles --create
Perfect. Would the package maintainer please patch the %post to include this critical missing step?
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #3 from ArcFi arcfi@aetera.net --- systemd-tmpfiles --create --prefix=/var/run/amavisd --prefix=/var/run/clamd.amavisd
Better this way. We do not want to create /var/run/nologin. =)
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #4 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- amavisd-new-2.8.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/amavisd-new-2.8.1-1.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- amavisd-new-2.8.1-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/amavisd-new-2.8.1-1.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=991233
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- Package amavisd-new-2.8.1-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing amavisd-new-2.8.1-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-3711/amavisd-new-2.8.1-1... then log in and leave karma (feedback).
https://bugzilla.redhat.com/show_bug.cgi?id=991233
lnie lnie@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lnie@redhat.com
--- Comment #8 from lnie lnie@redhat.com --- amavisd-new-2.8.1-1.fc20 works
https://bugzilla.redhat.com/show_bug.cgi?id=991233
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- amavisd-new-2.8.1-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=991233
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |amavisd-new-2.8.1-1.fc20 Resolution|--- |ERRATA Last Closed| |2014-03-19 04:49:09
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- amavisd-new-2.8.1-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
perl-devel@lists.fedoraproject.org