Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
A sad situation. Reindl is a knowledgeable person, and he seemed to have become less difficult after having been expelled from another list I subscribe to. I had hoped he had reformed. On Thu, 18 Oct 2018 16:31:36 + "Joel Esler (jesler)" wrote: > After several complaints in this thread and three others that have > written me off list, I've gone ahead and made the decision to removed > Reindl from the ClamAV-users list. Present conduct on the list is > reflective of past behavior that he has been warned about. > ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
After several complaints in this thread and three others that have written me off list, I've gone ahead and made the decision to removed Reindl from the ClamAV-users list. Present conduct on the list is reflective of past behavior that he has been warned about. -- Joel Esler Manager, Communities Division Cisco Talos Intelligence Group http://www.talosintelligence.com On Oct 17, 2018, at 12:20 PM, Reindl Harald mailto:h.rei...@thelounge.net>> wrote: Am 17.10.18 um 18:11 schrieb Dino Edwards: Get real. When I and others called you out, you decided to put a little more detail to cover the obvious fact that you were just trying to be a dick. The important thing you fail to understand that I did NOT write the script to start the service. So any "mkdir/chown dance" as you put it, was NOT done by me, but rather the package maintainer. This USED to work in previous Ubuntu/clamd version, now it no longer works. So, I'm trying to figure out why it's not working and if I should bring this up in the appropriate Ubuntu forum. if the unit is not written by you, comes from Ubuntu and now stopped working guess what: you should have contacted the appropriate Ubuntu forum to start with i just pointed out that i am suprised after that many years that one still don't know about /run and how to handle it properly and frankly: when you don#t undertsan dthe "directory already exists" message and ask here insetad jump on the packager with did this bullshit and *pretty clear* did even not try to restart his damned unit a single time how should one help you? -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 11:39 AM To: ClamAV users ML mailto:clamav-users@lists.clamav.net>>; Dino Edwards mailto:dino.edwa...@mydirectmail.net>>; gblo...@eclipso.eu<mailto:gblo...@eclipso.eu> Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Am 17.10.18 um 14:33 schrieb Dino Edwards: How about you contribute something of value to this discussion instead of a link about how this was added in Linux 7 years ago so you can show everyone how clever you are. i contributed the link which explains how these folders are supposed to get created at boot and any mkdir/chown dance is plain wrong - it's not my fault that you don't recognize input when you get it https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html and if one insists in "ExecStartPre=/bin/mkdir /run/clamav" he should make it proper as "ExecStartPre=-/bin/mkdir /run/clamav" which don't fail the whole service in case the directory already exists -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 8:29 AM To: ClamAV users ML mailto:clamav-users@lists.clamav.net>>; Dino Edwards mailto:dino.edwa...@mydirectmail.net>> Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Am 17.10.18 um 13:12 schrieb Dino Edwards: Good morning? what about read posted links and don't strip context? /run was introduced 7 years ago and the discussion about it made it to every it news portal and that's what i mean when somebody is surprised that /run is a tmpfs available at early boot which also means you need to make sure folders there are created at boot https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html Am 16.10.18 um 19:12 schrieb Dino Edwards: good morning in 2018 Weitergeleitete Nachricht Am 16.10.18 um 19:12 schrieb Dino Edwards: Answering my own question on the /var/run and the /run directories. There is a link between the two good morning in 2018 http://www.h-online.com/open/news/item/Linux-distributions-to-include- run-directory-1219006.html ___ clamav-users mailing list clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users ___ clamav-users mailing list clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Am 17.10.18 um 18:21 schrieb Dino Edwards: > ExecStartPre=-/bin/mkdir /run/clamav > ExecStartPre=/bin/chown clamav /run/clamav you don't get an error, an error is when the service don't start "If I delete the /var/run/clamav directory, I don’t get the error, but if I restart clamd again I get the error again. I’m not sure what the problem is" - idiot there is no problem "ExecStartPre=-/bin/mkdir /run/clamav" is prefixed with - so that the service don't fail in case the directory exists and "mkdir" natuarlly fails when a directory already exists when you delete the directory - guess what - it get created and no warning - frankly this is not a clamav topic at all but lack of basic understanding of your system ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Am 17.10.18 um 18:11 schrieb Dino Edwards: > Get real. When I and others called you out, you decided to put a little more > detail to cover the obvious fact that you were just trying to be a dick. > > The important thing you fail to understand that I did NOT write the script to > start the service. So any "mkdir/chown dance" as you put it, was NOT done by > me, but rather the package maintainer. This USED to work in previous > Ubuntu/clamd version, now it no longer works. So, I'm trying to figure out > why it's not working and if I should bring this up in the appropriate Ubuntu > forum. if the unit is not written by you, comes from Ubuntu and now stopped working guess what: you should have contacted the appropriate Ubuntu forum to start with i just pointed out that i am suprised after that many years that one still don't know about /run and how to handle it properly and frankly: when you don#t undertsan dthe "directory already exists" message and ask here insetad jump on the packager with did this bullshit and *pretty clear* did even not try to restart his damned unit a single time how should one help you? > -Original Message- > From: Reindl Harald [mailto:h.rei...@thelounge.net] > Sent: Wednesday, October 17, 2018 11:39 AM > To: ClamAV users ML ; Dino Edwards > ; gblo...@eclipso.eu > Subject: Re: [clamav-users] /bin/mkdir: cannot create directory > ‘/run/clamav’: File exists > > Am 17.10.18 um 14:33 schrieb Dino Edwards: >> How about you contribute something of value to this discussion instead of a >> link about how this was added in Linux 7 years ago so you can show everyone >> how clever you are. > > i contributed the link which explains how these folders are supposed to get > created at boot and any mkdir/chown dance is plain wrong - it's not my fault > that you don't recognize input when you get it > https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html > > and if one insists in "ExecStartPre=/bin/mkdir /run/clamav" he should make it > proper as "ExecStartPre=-/bin/mkdir /run/clamav" which don't fail the whole > service in case the directory already exists > >> -Original Message- >> From: Reindl Harald [mailto:h.rei...@thelounge.net] >> Sent: Wednesday, October 17, 2018 8:29 AM >> To: ClamAV users ML ; Dino Edwards >> >> Subject: Re: [clamav-users] /bin/mkdir: cannot create directory >> ‘/run/clamav’: File exists >> >> >> Am 17.10.18 um 13:12 schrieb Dino Edwards: >>> Good morning? >> >> what about read posted links and don't strip context? >> >> /run was introduced 7 years ago and the discussion about it made it to >> every it news portal and that's what i mean when somebody is surprised >> that /run is a tmpfs available at early boot which also means you need >> to make sure folders there are created at boot >> >> https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html >> >>> Am 16.10.18 um 19:12 schrieb Dino Edwards: >>>> good morning in 2018 >> >> >> Weitergeleitete Nachricht >> >> Am 16.10.18 um 19:12 schrieb Dino Edwards: >>> Answering my own question on the /var/run and the /run directories. >>> There is a link between the two >> good morning in 2018 >> >> http://www.h-online.com/open/news/item/Linux-distributions-to-include- >> run-directory-1219006.html > ___ > clamav-users mailing list > clamav-users@lists.clamav.net > http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Am 17.10.18 um 14:33 schrieb Dino Edwards: > How about you contribute something of value to this discussion instead of a > link about how this was added in Linux 7 years ago so you can show everyone > how clever you are. i contributed the link which explains how these folders are supposed to get created at boot and any mkdir/chown dance is plain wrong - it's not my fault that you don't recognize input when you get it https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html and if one insists in "ExecStartPre=/bin/mkdir /run/clamav" he should make it proper as "ExecStartPre=-/bin/mkdir /run/clamav" which don't fail the whole service in case the directory already exists > -Original Message- > From: Reindl Harald [mailto:h.rei...@thelounge.net] > Sent: Wednesday, October 17, 2018 8:29 AM > To: ClamAV users ML ; Dino Edwards > > Subject: Re: [clamav-users] /bin/mkdir: cannot create directory > ‘/run/clamav’: File exists > > > Am 17.10.18 um 13:12 schrieb Dino Edwards: >> Good morning? > > what about read posted links and don't strip context? > > /run was introduced 7 years ago and the discussion about it made it to every > it news portal and that's what i mean when somebody is surprised that /run is > a tmpfs available at early boot which also means you need to make sure > folders there are created at boot > > https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html > >> Am 16.10.18 um 19:12 schrieb Dino Edwards: >>> good morning in 2018 > > > Weitergeleitete Nachricht > > Am 16.10.18 um 19:12 schrieb Dino Edwards: >> Answering my own question on the /var/run and the /run directories. >> There is a link between the two > good morning in 2018 > > http://www.h-online.com/open/news/item/Linux-distributions-to-include-run-directory-1219006.html ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Am 17.10.18 um 13:12 schrieb Dino Edwards: > Good morning? what about read posted links and don't strip context? /run was introduced 7 years ago and the discussion about it made it to every it news portal and that's what i mean when somebody is surprised that /run is a tmpfs available at early boot which also means you need to make sure folders there are created at boot https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html > Am 16.10.18 um 19:12 schrieb Dino Edwards: >> good morning in 2018 Weitergeleitete Nachricht Am 16.10.18 um 19:12 schrieb Dino Edwards: > Answering my own question on the /var/run and the /run directories. > There is a link between the two good morning in 2018 http://www.h-online.com/open/news/item/Linux-distributions-to-include-run-directory-1219006.html ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Am 16.10.18 um 19:12 schrieb Dino Edwards: > Answering my own question on the /var/run and the /run directories. > There is a link between the two good morning in 2018 http://www.h-online.com/open/news/item/Linux-distributions-to-include-run-directory-1219006.html ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ?/run/clamav?: File exists
I already did that before I posted that I couldn't find it. Probably missed it, regardless the issue has been resolved. http://lists.clamav.net/pipermail/clamav-users/2018-October/thread.html Thanks for trying. Dino -Original Message- From: clamav-users [mailto:clamav-users-boun...@lists.clamav.net] On Behalf Of G.W. Haywood Sent: Thursday, October 18, 2018 8:22 AM To: clamav-users@lists.clamav.net Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ?/run/clamav?: File exists Hi there, On Wed, 17 Oct 2018, Dino Edwards wrote: > I got a response from someone about this error but I can?t seem to > find their email. Sigh. That would have been from me: Date: Wed, 10 Oct 2018 19:06:07 +0100 (BST) From: G.W. Haywood To: clamav-users@lists.clamav.net Subject: Re: /bin/mkdir: cannot create directory ?/run/clamav?: File exists Check the list archives. I'm not going to give you a direct link to the post here because I want you to do some work, and in the process teach yourself something about mailing lists. -- 73, Ged. ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ?/run/clamav?: File exists
Hi there, On Wed, 17 Oct 2018, Dino Edwards wrote: I got a response from someone about this error but I can?t seem to find their email. Sigh. That would have been from me: Date: Wed, 10 Oct 2018 19:06:07 +0100 (BST) From: G.W. Haywood To: clamav-users@lists.clamav.net Subject: Re: /bin/mkdir: cannot create directory ?/run/clamav?: File exists Check the list archives. I'm not going to give you a direct link to the post here because I want you to do some work, and in the process teach yourself something about mailing lists. -- 73, Ged. ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Hi all! On 17/10/2018 19:36, Dino Edwards wrote: [...] > "Hey I noticed the "-" prefix in "ExecStartPre=-/bin/mkdir /run/clamav" line. > This does not indicate a problem, but rather a warning letting you know that > the directory already exists. You don't have anything to worry about" FWIW but changing that to "ExecStartPre=/bin/mkdir -p /run/clamav" should silence the "directory already exists" case (and it doesn't return an error value). MfG, Bernd -- Bernd Petrovitsch Email : be...@petrovitsch.priv.at LUGA : http://www.luga.at ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Ok thanks! You really need to work on your social skills though. Here's how NORMAL people (i.e. people NOT in the autistic spectrum) would have handled this: YOU: "Hey I noticed the "-" prefix in "ExecStartPre=-/bin/mkdir /run/clamav" line. This does not indicate a problem, but rather a warning letting you know that the directory already exists. You don't have anything to worry about" ME: "Thanks! I appreciate you looking at it. You are awesome!" See? It's simple. Just don't be a dick! Give it a try. Thanks again! Dino -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 1:08 PM To: ClamAV users ML ; Dino Edwards Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Am 17.10.18 um 18:21 schrieb Dino Edwards: > ExecStartPre=-/bin/mkdir /run/clamav > ExecStartPre=/bin/chown clamav /run/clamav you don't get an error, an error is when the service don't start "If I delete the /var/run/clamav directory, I don’t get the error, but if I restart clamd again I get the error again. I’m not sure what the problem is" - idiot there is no problem "ExecStartPre=-/bin/mkdir /run/clamav" is prefixed with - so that the service don't fail in case the directory exists and "mkdir" natuarlly fails when a directory already exists when you delete the directory - guess what - it get created and no warning - frankly this is not a clamav topic at all but lack of basic understanding of your system ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Hi Kris thanks for trying to help, Here you go: dpkg -L clamav-daemon |grep system /lib/systemd /lib/systemd/system /lib/systemd/system/clamav-daemon.service cat /lib/systemd/system/clamav-daemon.service [Unit] Description=Clam AntiVirus userspace daemon Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/ # Check for database existence ConditionPathExistsGlob=/var/lib/clamav/main.{c[vl]d,inc} ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} [Service] ExecStart=/usr/sbin/clamd --foreground=true # Reload the database ExecReload=/bin/kill -USR2 $MAINPID StandardOutput=syslog [Install] WantedBy=multi-user.target cd /etc/systemd/system/clamav-daemon.service.d root@hermes:/etc/systemd/system/clamav-daemon.service.d# ls extend.conf root@hermes:/etc/systemd/system/clamav-daemon.service.d# cat extend.conf [Service] ExecStartPre=-/bin/mkdir /run/clamav ExecStartPre=/bin/chown clamav /run/clamav -Original Message- From: clamav-users [mailto:clamav-users-boun...@lists.clamav.net] On Behalf Of Kris Deugau Sent: Wednesday, October 17, 2018 10:38 AM To: ClamAV users ML Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Dino Edwards wrote: > Answering my own question on the /var/run and the /run directories. > There is a link between the two, I just didn’t go up a level in the > directory structure. The question about the error still remains though. The chown and mkdir look a bit suspect to me; I'm not seeing anything like that in the Debian packages (which should be mostly the same in Ubuntu). What I *do* see in one of the stock files (/lib/systemd/system/clamav-daemon.socket) is this stanza: [Socket] ListenStream=/run/clamav/clamd.ctl #ListenStream=127.0.0.1:1024 SocketUser=clamav SocketGroup=clamav RemoveOnStop=True which if I understand correctly, implies that clamd on this system is using systemd's socket creation/handling voodoo rather than doing so itself. Can you post: - Output from "dpkg -L clamav-daemon |grep system" - Contents of any .service or .socket files from the above list - Contents of any files in /etc/systemd/system/clamav-daemon.service.d > Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; > vendor preset: enabled) > > Drop-In: /etc/systemd/system/clamav-daemon.service.d > > └─extend.conf This seems to indicate that you're not using the stock systemd service definitions from Ubuntu/Debian upstream. -kgd ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
@ GBlorst Thanks for the heads up. I’m going to try and stop feeding the troll. From: clamav-users [mailto:clamav-users-boun...@lists.clamav.net] On Behalf Of Sent: Wednesday, October 17, 2018 10:47 AM To: clamav-users@lists.clamav.net Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Hi, Dino. Reindl is a scared little boy. This is normal behavior for him. He has low-self esteem and needs to make his little boy self feel better. Don't worry about him. Ignore him and he will go away! He has been banned from many lists for his childish behavior! Bye Bye Reindl. GBlorst How about you contribute something of value to this discussion instead of a link about how this was added in Linux 7 years ago so you can show everyone how clever you are. Do I really need to know the history of this change? No, I was able to figure it out and I posted that with my 2nd post. The main issue still remains, "/bin/mkdir: cannot create directory ‘/run/clamav’: File exists". Do you have any insight on that? I'm thinking no? Thanks -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 8:29 AM To: ClamAV users ML <mailto:clamav-users@lists.clamav.net>; Dino Edwards <mailto:dino.edwa...@mydirectmail.net> Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Take your old mailboxes with you. Free, fast and secure: eclipso Mail & Cloud<https://www.eclipso.eu>. Time to change!. ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Get real. When I and others called you out, you decided to put a little more detail to cover the obvious fact that you were just trying to be a dick. The important thing you fail to understand that I did NOT write the script to start the service. So any "mkdir/chown dance" as you put it, was NOT done by me, but rather the package maintainer. This USED to work in previous Ubuntu/clamd version, now it no longer works. So, I'm trying to figure out why it's not working and if I should bring this up in the appropriate Ubuntu forum. Your link and "contribution" continues to be void of any value and substance in this discussion. So, I'm going to stop feeding this troll. -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 11:39 AM To: ClamAV users ML ; Dino Edwards ; gblo...@eclipso.eu Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Am 17.10.18 um 14:33 schrieb Dino Edwards: > How about you contribute something of value to this discussion instead of a > link about how this was added in Linux 7 years ago so you can show everyone > how clever you are. i contributed the link which explains how these folders are supposed to get created at boot and any mkdir/chown dance is plain wrong - it's not my fault that you don't recognize input when you get it https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html and if one insists in "ExecStartPre=/bin/mkdir /run/clamav" he should make it proper as "ExecStartPre=-/bin/mkdir /run/clamav" which don't fail the whole service in case the directory already exists > -Original Message- > From: Reindl Harald [mailto:h.rei...@thelounge.net] > Sent: Wednesday, October 17, 2018 8:29 AM > To: ClamAV users ML ; Dino Edwards > > Subject: Re: [clamav-users] /bin/mkdir: cannot create directory > ‘/run/clamav’: File exists > > > Am 17.10.18 um 13:12 schrieb Dino Edwards: >> Good morning? > > what about read posted links and don't strip context? > > /run was introduced 7 years ago and the discussion about it made it to > every it news portal and that's what i mean when somebody is surprised > that /run is a tmpfs available at early boot which also means you need > to make sure folders there are created at boot > > https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html > >> Am 16.10.18 um 19:12 schrieb Dino Edwards: >>> good morning in 2018 > > > Weitergeleitete Nachricht > > Am 16.10.18 um 19:12 schrieb Dino Edwards: >> Answering my own question on the /var/run and the /run directories. >> There is a link between the two > good morning in 2018 > > http://www.h-online.com/open/news/item/Linux-distributions-to-include- > run-directory-1219006.html ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Hi, Dino.Reindl is a scared little boy. This is normal behavior for him. He has low-self esteem and needs to make his little boy self feel better. Don't worry about him.Ignore him and he will go away!He has been banned from many lists for his childish behavior!Bye Bye Reindl.GBlorstHow about you contribute something of value to this discussion instead of a link about how this was added in Linux 7 years ago so you can show everyone how clever you are. Do I really need to know the history of this change? No, I was able to figure it out and I posted that with my 2nd post. The main issue still remains, "/bin/mkdir: cannot create directory ‘/run/clamav’: File exists". Do you have any insight on that? I'm thinking no? Thanks -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 8:29 AM To: ClamAV users ML ; Dino Edwards Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Take your old mailboxes with you. Free, fast and secure: eclipso Mail & Cloud. Time to change!. ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Dino Edwards wrote: Answering my own question on the /var/run and the /run directories. There is a link between the two, I just didn’t go up a level in the directory structure. The question about the error still remains though. The chown and mkdir look a bit suspect to me; I'm not seeing anything like that in the Debian packages (which should be mostly the same in Ubuntu). What I *do* see in one of the stock files (/lib/systemd/system/clamav-daemon.socket) is this stanza: [Socket] ListenStream=/run/clamav/clamd.ctl #ListenStream=127.0.0.1:1024 SocketUser=clamav SocketGroup=clamav RemoveOnStop=True which if I understand correctly, implies that clamd on this system is using systemd's socket creation/handling voodoo rather than doing so itself. Can you post: - Output from "dpkg -L clamav-daemon |grep system" - Contents of any .service or .socket files from the above list - Contents of any files in /etc/systemd/system/clamav-daemon.service.d Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/clamav-daemon.service.d └─extend.conf This seems to indicate that you're not using the stock systemd service definitions from Ubuntu/Debian upstream. -kgd ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
How about you contribute something of value to this discussion instead of a link about how this was added in Linux 7 years ago so you can show everyone how clever you are. Do I really need to know the history of this change? No, I was able to figure it out and I posted that with my 2nd post. The main issue still remains, "/bin/mkdir: cannot create directory ‘/run/clamav’: File exists". Do you have any insight on that? I'm thinking no? Thanks -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Wednesday, October 17, 2018 8:29 AM To: ClamAV users ML ; Dino Edwards Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists Am 17.10.18 um 13:12 schrieb Dino Edwards: > Good morning? what about read posted links and don't strip context? /run was introduced 7 years ago and the discussion about it made it to every it news portal and that's what i mean when somebody is surprised that /run is a tmpfs available at early boot which also means you need to make sure folders there are created at boot https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html > Am 16.10.18 um 19:12 schrieb Dino Edwards: >> good morning in 2018 Weitergeleitete Nachricht Am 16.10.18 um 19:12 schrieb Dino Edwards: > Answering my own question on the /var/run and the /run directories. > There is a link between the two good morning in 2018 http://www.h-online.com/open/news/item/Linux-distributions-to-include-run-directory-1219006.html ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Good morning? Am 16.10.18 um 19:12 schrieb Dino Edwards: > good morning in 2018 ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Answering my own question on the /var/run and the /run directories. There is a link between the two, I just didn’t go up a level in the directory structure. The question about the error still remains though. Hello, I’m getting the following error on clamav on Ubuntu 16.04 LTS when I look at the service status: Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/clamav-daemon.service.d └─extend.conf Active: active (running) since Tue 2018-10-09 12:12:22 EDT; 4s ago Docs: man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/ Process: 14202 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS) Process: 14199 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE) Main PID: 14207 (clamd) Tasks: 1 Memory: 225.1M CPU: 3.902s CGroup: /system.slice/clamav-daemon.service └─14207 /usr/sbin/clamd --foreground=true Oct 09 12:12:22 hermes systemd[1]: Starting Clam AntiVirus userspace daemon... Oct 09 12:12:22 hermes systemd[1]: Started Clam AntiVirus userspace daemon. Oct 09 12:12:22 hermes mkdir[14199]: /bin/mkdir: cannot create directory ‘/run/clamav’: File exists I got a response from someone about this error but I can’t seem to find their email. One thing I noticed is that the clamd.conf file sets the “LocalSocket” to the “/var/run/clamav” directory, however the error refers to the “/run/clamav” directory. I don’t see a symlink for those two directories, but the clamd.ctl file looks like the exact same file in both directories. If I delete the /var/run/clamav directory, I don’t get the error, but if I restart clamd again I get the error again. I’m not sure what the problem is, and I hope someone can help. Thanks a lot ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] /bin/mkdir: cannot create directory ?/run/clamav?: File exists
Hi there, On Wed, 10 Oct 2018, Dino Edwards wrote: ... Oct 09 12:12:22 hermes systemd[1]: Starting Clam AntiVirus userspace daemon... Oct 09 12:12:22 hermes systemd[1]: Started Clam AntiVirus userspace daemon. Oct 09 12:12:22 hermes mkdir[14199]: /bin/mkdir: cannot create directory ?/run/clamav?: File exists Can someone point me in the right direction? Full disclosure: I've never used Ubuntu so I don't know in detail how things will be set up on your system. The existing /run/clamav should be a directory with permissions which allow the ClamAV processes to write into it and into files and sockets in the directory. Here it is, and the contents, on one of my systems. First the directory: mail6:~$ >>> ls -l /run | grep clamav drwxr-x--- 2 clamav smmsp 140 Oct 1 06:25 clamav The owners/groups/permissions will likely be different on your system, and hopefully they'll have been set properly when the directory was first created. You probably don't care much about the dates, times and sizes of any of these things (but they might tell you forensically useful things) and you _do_ care that the first character on the line with 'clamav' in it is 'd' for 'directory'. Now the contents of the directory: mail6:~$ >>> ls -l /run/clamav total 12 srw-rw 1 clamav clamav 0 Oct 1 06:25 clamav-milter.ctl -rw-r- 1 clamav root 5 Oct 1 06:25 clamav-milter.pid srw-rw 1 clamav clamav 0 Jul 12 09:06 clamd.ctl -rw-rw 1 clamav clamav 6 Jul 12 09:06 clamd.pid -rw-r- 1 clamav root 6 Jul 12 09:05 freshclam.pid You may or may not be running clamav-milter, which is an interface between a mail server like Sendmail and the clamd daemon. If you aren't running it, you (most probably :) won't see those lines. The error message you're seeing is telling you that the system tried to create the directory but it found _something_ with that name was there already. Unfortunately /bin/mkdir isn't very specific about what it was that already existed; even if it's a directory it will call it a 'File'. You can use ls -l /run like I did above to see what you have there. If the existing /run/clamav is in fact a file (or even something else, but _not_ a directory) then it might be that if you just delete it that will fix your problem - but if it were my system I'd want to know how it got there in the first place. Maybe you created it by accident, maybe other people have been tinkering with the system. To know exactly what happened more information would be needed. If the 'file' which exists is in fact a directory called /run/clamav and it has the right permissions, then the error message may be harmless. As long as it has the right permissions it probably doesn't matter if it already exists when you restart clamd, or similar operations. It just needs to be there so that it can be used. It looks like the scripts are trying to ensure that, but they're getting it round their necks because of an oversight in one of the scripts. But if this prevents clamd from starting then obviously it's a problem. Either way, to get rid of the message you could change the script which creates the directory from /bin/mkdir /run/clamav to /bin/mkdir -p /run/clamav which I'd suggest is what should have been there in the first place. You could alternatively add a line in the script to remove the directory (and its contents) before attempting to create it, but be careful with things like that. See man mkdir for more information. You might also need to look at man chmod for information about setting permissions. Be careful with them. -- 73, Ged. ___ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml