[Bug 1210267] New: Trouble with newest package amavisd-new
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 Bug ID: 1210267 Summary: Trouble with newest package amavisd-new Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: freek@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The new version of /etc/amavisd.conf in package amvisd-new, which came in 20230407, changes the working directory for amavis.service from /var/spool/ amavis into /var/amavis. However this change is not reflected in creating the necessary folders in /var/amavis like /var/amavis/{tmp,db} with the owner/group vscan:vscan. Also the working directory in /usr/lib/systemd/system/amavis.service needs to be changed in the same way. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 http://bugzilla.opensuse.org/show_bug.cgi?id=1210267#c1 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freek@opensuse.org, | |wolfgang@rosenauer.org Flags| |needinfo?(freek@opensuse.or | |g) --- Comment #1 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- I just reviewed the source package and I cannot really see what you are describing. In the spec all directories are still set up as %{_localstatedir}/spool/amavis amavis.service has WorkingDirectory=/var/spool/amavis/tmp The spec also still contains this for i in $(find -maxdepth 1 -name "amavisd*" | sed s#./##); do if [[ $i == *patch ]] ; then continue; fi if [[ $i == *patch ]] ; then continue; fi if [[ $i == *spec ]] ; then continue; fi echo "patching file $i" sed -i "s|^# \$MYHOME =.*|\$MYHOME = '%{avspool}';|g; \ s|/var/amavis/db|%{avdb}|g; \ s|/var/virusmails|%{avquarantine}|g; \ s|/var/amavis/amavisd.sock|%{avspool}/amavisd.sock|g" $i done From the changelog I cannot see that there was an intentional move of the working directories. I'm setting up a VM to check the installed system but if you could provide already more details. There might be some path hiding somewhere which is not correctly covered? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |wolfgang@rosenauer.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |varkoly@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 http://bugzilla.opensuse.org/show_bug.cgi?id=1210267#c2 Freek de Kruijf <freek@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(freek@opensuse.or | |g) | --- Comment #2 from Freek de Kruijf <freek@opensuse.org> --- In the new version of /etc/amavisd.conf I have: # $MYHOME = '/var/amavis'; # a convenient default for other settings, -H $TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist, -T $ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc. $QUARANTINEDIR = '/var/virusmails'; # -Q I the previous version of this file $MYHOME was /var/spool/amavis . Although the line with the assignment is comment; after starting amavis with the new conf file, I got error messages that the folders /var/amavis/{tmp,db} did not exist, so I created these folders with the vscan:vscan as owner:group, and deleted /var/spool/amavis and its content. After this I got error messages that CHDIR did not exist, which I could fix changing the work directory in /usr/lib/systemd/system/amavis.service from /var/spool/amavis to /var/amavis . -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 http://bugzilla.opensuse.org/show_bug.cgi?id=1210267#c3 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS Flags| |needinfo? --- Comment #3 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- Please test the latest version in server:mail if possible. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 http://bugzilla.opensuse.org/show_bug.cgi?id=1210267#c4 --- Comment #4 from Freek de Kruijf <freek@opensuse.org> --- (In reply to Wolfgang Rosenauer from comment #3)
Please test the latest version in server:mail if possible.
I see the folder is again /var/spool/amavis, which in my case needed to be created again. However I still got an error: (!)Net::Server: 2023/04/11-11:44:02 Can't connect to UNIX socket at file /var/spool/amavis/amavisd.sock [Permission denied]\n at line 66 in file /usr/lib/perl5/vendor_perl/5.36.0/Net/Server/Proto/UNIX.pm After changing the owner of /var/spool/amavis in vscan:vscan from root:root starting amavis.service did succeed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1210267 http://bugzilla.opensuse.org/show_bug.cgi?id=1210267#c5 --- Comment #5 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1210267) was mentioned in https://build.opensuse.org/request/show/1078520 Factory / amavisd-new -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com