Mailing List Archive

[clamav-users] problem for freshclam
hello,


i have do the command line following for repair freshclam but it keep broken :

'''chown root:root /var/log/clamav/freshclam.log
root@ubuntu-ThinkPad-X250:~# freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
root@ubuntu-ThinkPad-X250:~# chmod 755 /var/log/clamav/freshclam.log
root@ubuntu-ThinkPad-X250:~# freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!'''

thank you in advance to help myself repair freshclam,

Regards.


Dorian ROSSE.
Re: [clamav-users] problem for freshclam [ In reply to ]
Hi there,

On Sun, 23 Jan 2022, Dorian ROSSE via clamav-users wrote:

> i have do the command line following for repair freshclam ...
>
> ... chown root:root /var/log/clamav/freshclam.log
> ...
> root@ubuntu-ThinkPad-X250:~# chmod 755 /var/log/clamav/freshclam.log
> root@ubuntu-ThinkPad-X250:~# freshclam

Why did you think you needed to change the ownership and permissions?

Please do not do things like this unless you know what you are doing,
an installation by the package manager should set everything up for
you without any need for you to tinker with permissions.

You didn't repair anything. You probably broke things. In any case
you should not use the '755' mode for a log file because a log file is
not intended to be executable; mode '644' would be more appropriate,
perhaps '640' or even '600' if you want to restrict who can read it.
But in general I recommend you let the people who maintain the ClamAV
packages for your distribution set things up. They probably have at
least a reasonable explanation for doing what they do.

See the 'man' pages for chmod and chown for more information.

> ...
> ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
> ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
> ERROR: initialize: libfreshclam init failed.
> ERROR: Initialization error!'''

This *probably* means that only root is be able to write to the file,
and I guess that you are not running freshclam as root. In any case,
like any other utility which does not *need* to be run as root, you
should not run freshclam as root (but you should make sure that it can
write the files which it needs to write, e.g. its log files).

If you can find the user name which is used to run freshclam on your
system, and chown the freshclam.log file so that user is the owner,
then (assuming that you haven't done any other damage) when freshclam
runs it should be able to write to the log.

The ClamAV database files are probably owned by the same user, what
user is that?

Exactly how did you install ClamAV?

Can you cut-n-paste the output of the command

clamconf -n

so that we can see your configuration?

Do you have something like SELinux on your system?

How much memory does your laptop have?

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
Hello Dorian i may have the fix for this i had the same problem
it is something to do wilth a previouse clam is still running on your system
its not a compleat solution but will get you nearer to the road to recovery
with a different erro is probable
any way wait to see if i get repromanded by Ged
for jummping in
solution will take but a moment and will do no harm to your system couple of lines in a terminal
i have also stoped my update from the cvd as my clam is out of date
need a .4 but only have clamav .3
well thats it ,if you havant fixed it and you want to try my solution
reply i am always watching thease threads to help me with my own problem

kind regards colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
Hello Colin,


Next this e-mail I have chown root:root and chmod 775

I hope this will repair clamav,

What is your advice?

Have a nice evening from the France,

Regards.


Dorian Rosse.
________________________________
From: colin course <course2017@yandex.com>
Sent: Thursday, January 27, 2022 6:15:39 PM
To: Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
Cc: Dorian ROSSE <dorianbrice@hotmail.fr>
Subject: Re:[clamav-users] problem for freshclam

Hello Dorian i may have the fix for this i had the same problem
it is something to do wilth a previouse clam is still running on your system
its not a compleat solution but will get you nearer to the road to recovery
with a different erro is probable
any way wait to see if i get repromanded by Ged
for jummping in
solution will take but a moment and will do no harm to your system couple of lines in a terminal
i have also stoped my update from the cvd as my clam is out of date
need a .4 but only have clamav .3
well thats it ,if you havant fixed it and you want to try my solution
reply i am always watching thease threads to help me with my own problem

kind regards colin
Re: [clamav-users] problem for freshclam [ In reply to ]
you to Dorian from blighty

1) OPEN TERMINAL hope we are talking about linux but it might work on
windows with different commands


first you need to stop clam type this

sudo /etc/init.d/clamav-freshclam stop
press the return key

now you need to type this
wait for it to finish and go to last stage

sudo freshclam


last of all type this

sudo /ect/init/.d/clamav-freshclam start



you are done
the last line is basicly the first line with stop and start and hears another
usefull command but not part of this solution and will open up more options for you but i got stuck on the private mirror right at the end sigh

sudo dpkg-reconfigure clamav-freshclam manual
gives you a nice blue interface to mess with but do so under your own risk

also i used my intelligence though ged says i got any to stop clam av
updates if you cant update signatures then cvd will rant at you and say
your in cooling off period

of course if you have any questions of my limmited knoledge as i am finding out as i go
i will be happy to answer them

one thing more before i go dorian and this is most impornat it is vital you look at this though is not related to my solution i will now give it to you
in cryptic form like a riddle hopefully an easy one

64 or 32 B?? if i throw this rubbish down the C????

put those two words together and search it on your favioute search engine
it is viltaly important the most important of what i have typed
that you do

all the best kind regards

colin






_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
How to understand 32B ou 64B ?

Do I need just to do those 3 line of command ? :

1) sudo /etc/init.d/clamav-freshclam stop

2) sudo freshclam

3) sudo /ect/init/.d/clamav-freshclam start

If your question is the operating system version this is a 64 bytes,


Dorian Rosse.
________________________________
From: colin course <course2017@yandex.com>
Sent: Thursday, January 27, 2022 7:33:47 PM
To: Dorian ROSSE <dorianbrice@hotmail.fr>
Cc: Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
Subject: Re:[clamav-users] problem for freshclam

you to Dorian from blighty

1) OPEN TERMINAL hope we are talking about linux but it might work on
windows with different commands


first you need to stop clam type this

sudo /etc/init.d/clamav-freshclam stop
press the return key

now you need to type this
wait for it to finish and go to last stage

sudo freshclam


last of all type this

sudo /ect/init/.d/clamav-freshclam start



you are done
the last line is basicly the first line with stop and start and hears another
usefull command but not part of this solution and will open up more options for you but i got stuck on the private mirror right at the end sigh

sudo dpkg-reconfigure clamav-freshclam manual
gives you a nice blue interface to mess with but do so under your own risk

also i used my intelligence though ged says i got any to stop clam av
updates if you cant update signatures then cvd will rant at you and say
your in cooling off period

of course if you have any questions of my limmited knoledge as i am finding out as i go
i will be happy to answer them

one thing more before i go dorian and this is most impornat it is vital you look at this though is not related to my solution i will now give it to you
in cryptic form like a riddle hopefully an easy one

64 or 32 B?? if i throw this rubbish down the C????

put those two words together and search it on your favioute search engine
it is viltaly important the most important of what i have typed
that you do

all the best kind regards

colin
Re: [clamav-users] problem for freshclam [ In reply to ]
yes dorian your on the right track answer the last question first only its

BIT

dont type the whole word hear as we will get in trouble :)

right now to the solution

those are the 3 commands correct
i cant run them or i will mess up my stoped up date otherwise i would

the first commands stops clam you should get it to say so with mine it was a green ok

the second comand runs freshclam
so you can see what it saying at the end of its run
what is it saying at the end of its process ?

the third command restarts clam

kind regards colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
This is a 64 BIT,

Thanks you for your answer and have a nice evening from the France it is twenty past height and the sky is fallen,

Regards.


Dorian Rosse.
________________________________
From: colin course <course2017@yandex.com>
Sent: Thursday, January 27, 2022 8:04:44 PM
To: Dorian ROSSE <dorianbrice@hotmail.fr>
Cc: Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
Subject: Re:[clamav-users] problem for freshclam

yes dorian your on the right track answer the last question first only its

BIT

dont type the whole word hear as we will get in trouble :)

right now to the solution

those are the 3 commands correct
i cant run them or i will mess up my stoped up date otherwise i would

the first commands stops clam you should get it to say so with mine it was a green ok

the second comand runs freshclam
so you can see what it saying at the end of its run
what is it saying at the end of its process ?

the third command restarts clam

kind regards colin
Re: [clamav-users] problem for freshclam [ In reply to ]
you to dorian that was crptic good by
be nice to know if it worked or got you futher though ?
nice chatting

my cyptic word
there is a preist on there carlos marinos varagon who has something very
interesting to say if you listen very intently
the other infamouse site that evrebody goes to keeps taking him off
but people keep putting him back on much to there anyoance fe va the
resistance
hope i helped you get nearer to a solution as i say any questions feel free
by from blighty aka england just across the water

colin


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
I will do yours line of command this weekend the week I am not there where they have the setup,

Regards.


Dorian Rosse.
________________________________
From: colin course <course2017@yandex.com>
Sent: Thursday, January 27, 2022 8:23:29 PM
To: Dorian ROSSE <dorianbrice@hotmail.fr>
Cc: Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
Subject: Re:[clamav-users] problem for freshclam

you to dorian that was crptic good by
be nice to know if it worked or got you futher though ?
nice chatting

my cyptic word
there is a preist on there carlos marinos varagon who has something very
interesting to say if you listen very intently
the other infamouse site that evrebody goes to keeps taking him off
but people keep putting him back on much to there anyoance fe va the
resistance
hope i helped you get nearer to a solution as i say any questions feel free
by from blighty aka england just across the water

colin
Re: [clamav-users] problem for freshclam [ In reply to ]
ok thanks didant mean to be pushey

you could also try clamtk the grahical interface of clam its a scanner
i am just on there forum now trying to get mine sorted
bionic only want to give me 5.25 version and you guessed it need it to
be higher as it is outdated

you will find a version of it on your sanaptic package installer also
you will need clam to be higher than 2.3 something like ,4 with out looking
i suppect i got the numbers wrong
you problerly yes you will find your version on the clam log file
any problems just ask
tat ta for now

colin

all the best

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
hello,


I am there,

after your three command line adviced freshclam is again broken : e

'''freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!'''

what is your advice now ?

have a nice weekend from the france,

regards.


Dorian ROSSE.
________________________________
De : colin course <course2017@yandex.com>
Envoy? : jeudi 27 janvier 2022 22:13
? : Dorian ROSSE <dorianbrice@hotmail.fr>
Cc : Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
Objet : Re:[clamav-users] problem for freshclam

ok thanks didant mean to be pushey

you could also try clamtk the grahical interface of clam its a scanner
i am just on there forum now trying to get mine sorted
bionic only want to give me 5.25 version and you guessed it need it to
be higher as it is outdated

you will find a version of it on your sanaptic package installer also
you will need clam to be higher than 2.3 something like ,4 with out looking
i suppect i got the numbers wrong
you problerly yes you will find your version on the clam log file
any problems just ask
tat ta for now

colin

all the best
Re: [clamav-users] problem for freshclam [ In reply to ]
hi dorian
did it do the first command ok
did the command give you an ok in its read out did it stop ? the process

and then we can go on to the second command
and see what does it say post the first 2 results of the commands
for the second just the bit at the end is all that is of interest



you really want your clam permissions to be clamav and adm
ged was right about that we shall persavear now we have started

we can try other things but that will be looking at processes and may be
files as i am not that great with a terminal
and see what your config file says we know what your log one saying already you can check it with mine my scanner is working but i suppose
thats on the tk scanner side of things
have you got a sanaptics package manager ?


kind regards colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
one8@zone8-Latitude-D510:~$ sudo /etc/init.d/clamav-freshclam stop
[sudo] password for zone8:
[ ok ] Stopping clamav-freshclam (via systemctl): clamav-freshclam.service.
zone8@zone8-Latitude-D510:~$


for the first command you should have something like that

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
hi,

try sudo lsof /var/log/clamav/freshclam.log what process is locking the log
file and then kill it?

Eero

pe 28. tammik. 2022 klo 18.48 Dorian ROSSE via clamav-users (
clamav-users@lists.clamav.net) kirjoitti:

> hello,
>
>
> I am there,
>
> after your three command line adviced freshclam is again broken : e
>
> '''freshclam
> ERROR: /var/log/clamav/freshclam.log is locked by another process
> ERROR: Problem with internal logger (UpdateLogFile =
> /var/log/clamav/freshclam.log).
> ERROR: initialize: libfreshclam init failed.
> ERROR: Initialization error!'''
>
> what is your advice now ?
>
> have a nice weekend from the france,
>
> regards.
>
>
> Dorian ROSSE.
> ------------------------------
> *De :* colin course <course2017@yandex.com>
> *Envoyé :* jeudi 27 janvier 2022 22:13
> *À :* Dorian ROSSE <dorianbrice@hotmail.fr>
> *Cc :* Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
> *Objet :* Re:[clamav-users] problem for freshclam
>
> ok thanks didant mean to be pushey
>
> you could also try clamtk the grahical interface of clam its a scanner
> i am just on there forum now trying to get mine sorted
> bionic only want to give me 5.25 version and you guessed it need it to
> be higher as it is outdated
>
> you will find a version of it on your sanaptic package installer also
> you will need clam to be higher than 2.3 something like ,4 with out
> looking
> i suppect i got the numbers wrong
> you problerly yes you will find your version on the clam log file
> any problems just ask
> tat ta for now
>
> colin
>
> all the best
>
> _______________________________________________
>
> clamav-users mailing list
> clamav-users@lists.clamav.net
> https://lists.clamav.net/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] problem for freshclam [ In reply to ]
right dorian you want your log permisions this way
how to get to open file system

var log clamav =all folders
in the clamav folder you will find freshclam log file
what are its permissions ?

mine are clamav rw adm r others -- do not allow this progam to exicute box is empty


regards colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
ok dorian solution

i searched this for you

ps aux | grep fresh

killallfreshclam

last command would be my 3rd command from earlar on start clamav

hope that solves it all the best colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
Hello,


Does I need to set up the right to thoses :

chown clamav-adm

I don't understand how is set up the permission of your folder...

Mine has 775,

Thanks you in advance to explain,

Regards.


Dorian Rosse.
________________________________
From: colin course <course2017@yandex.com>
Sent: Friday, January 28, 2022 8:12:59 PM
To: colin course via clamav-users <clamav-users@lists.clamav.net>
Cc: Dorian ROSSE <dorianbrice@hotmail.fr>
Subject: Re:[clamav-users] problem for freshclam

ok dorian solution

i searched this for you

ps aux | grep fresh

killallfreshclam

last command would be my 3rd command from earlar on start clamav

hope that solves it all the best colin
Re: [clamav-users] problem for freshclam [ In reply to ]
hi dorian you can muddle threw on your own
or you can maybe let me know what i asked for in the first place
i cant realy say where we can go from hear without more information
unless we do it in a more methodical way otherwise its going to be chaos

lets start with my first question again
did you get it to stop with the first command i gave you ?

i posted the read out to you what it should look like and proberly messed up my system but that does not matter at the moment as i cant download
signatures anyways

that las post i sent you said that those commands solved your issue
so you could try that
or you can answer my question please and then we can take if form there

kind regards colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
do you know how to use sanaptic package manager ?
there might be some forced versions on there for you to use if you have thought
about reinstalling
sanaptic certainly would tell us what versions you have of clam
which could only be a good thing :)

reinstalling might get rid of a lot of the erros or than again it might not
but worth some thought

clamav
clam base
fresh clam
clam tk and so on



regards colin

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
no i don't understand how to use synaptic package manager why ?

why i need to reinstall ?

what is the permission for /var/log/clamav/freshclam.log ?

mine is 775,

thank you in advance for your time,

Regards.


Dorian ROSSE.
________________________________
De : colin course <course2017@yandex.com>
Envoy? : vendredi 28 janvier 2022 21:59
? : colin course via clamav-users <clamav-users@lists.clamav.net>
Cc : Dorian ROSSE <dorianbrice@hotmail.fr>
Objet : Re:[clamav-users] problem for freshclam

do you know how to use sanaptic package manager ?
there might be some forced versions on there for you to use if you have thought
about reinstalling
sanaptic certainly would tell us what versions you have of clam
which could only be a good thing :)

reinstalling might get rid of a lot of the erros or than again it might not
but worth some thought

clamav
clam base
fresh clam
clam tk and so on



regards colin
Re: [clamav-users] problem for freshclam [ In reply to ]
hello,


the answer of your line of command adviced :

'''lsof /var/log/clamav/freshclam.log
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/125/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
freshclam 24258 clamav 3wW REG 8,6 40824 786476 /var/log/clamav/freshclam.log'''

what i should do now ?

thank you in advance for your time,

Regards.


Dorian ROSSE.
________________________________
De : Eero Volotinen <eero.volotinen@iki.fi>
Envoy? : vendredi 28 janvier 2022 19:01
? : ClamAV users ML <clamav-users@lists.clamav.net>
Cc : colin course <course2017@yandex.com>; Dorian ROSSE <dorianbrice@hotmail.fr>
Objet : Re: [clamav-users] problem for freshclam

hi,

try sudo lsof /var/log/clamav/freshclam.log what process is locking the log file and then kill it?

Eero

pe 28. tammik. 2022 klo 18.48 Dorian ROSSE via clamav-users (clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>) kirjoitti:
hello,


I am there,

after your three command line adviced freshclam is again broken : e

'''freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!'''

what is your advice now ?

have a nice weekend from the france,

regards.


Dorian ROSSE.
________________________________
De : colin course <course2017@yandex.com<mailto:course2017@yandex.com>>
Envoy? : jeudi 27 janvier 2022 22:13
? : Dorian ROSSE <dorianbrice@hotmail.fr<mailto:dorianbrice@hotmail.fr>>
Cc : Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>>
Objet : Re:[clamav-users] problem for freshclam

ok thanks didant mean to be pushey

you could also try clamtk the grahical interface of clam its a scanner
i am just on there forum now trying to get mine sorted
bionic only want to give me 5.25 version and you guessed it need it to
be higher as it is outdated

you will find a version of it on your sanaptic package installer also
you will need clam to be higher than 2.3 something like ,4 with out looking
i suppect i got the numbers wrong
you problerly yes you will find your version on the clam log file
any problems just ask
tat ta for now

colin

all the best

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
freshclam 24258 clamav 3wW REG 8,6 40824 786476
/var/log/clamav/freshclam.log'

means that processid (pid) is locking the file. you can kill it with sudo
kill -9 24258

Eero

la 29. tammik. 2022 klo 17.02 Dorian ROSSE (dorianbrice@hotmail.fr)
kirjoitti:

> hello,
>
>
> the answer of your line of command adviced :
>
> '''lsof /var/log/clamav/freshclam.log
> lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/125/gvfs
> Output information may be incomplete.
> lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
> Output information may be incomplete.
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> freshclam 24258 clamav 3wW REG 8,6 40824 786476
> /var/log/clamav/freshclam.log'''
>
> what i should do now ?
>
> thank you in advance for your time,
>
> Regards.
>
>
> Dorian ROSSE.
> ------------------------------
> *De :* Eero Volotinen <eero.volotinen@iki.fi>
> *Envoyé :* vendredi 28 janvier 2022 19:01
> *À :* ClamAV users ML <clamav-users@lists.clamav.net>
> *Cc :* colin course <course2017@yandex.com>; Dorian ROSSE <
> dorianbrice@hotmail.fr>
> *Objet :* Re: [clamav-users] problem for freshclam
>
> hi,
>
> try sudo lsof /var/log/clamav/freshclam.log what process is locking the
> log file and then kill it?
>
> Eero
>
> pe 28. tammik. 2022 klo 18.48 Dorian ROSSE via clamav-users (
> clamav-users@lists.clamav.net) kirjoitti:
>
> hello,
>
>
> I am there,
>
> after your three command line adviced freshclam is again broken : e
>
> '''freshclam
> ERROR: /var/log/clamav/freshclam.log is locked by another process
> ERROR: Problem with internal logger (UpdateLogFile =
> /var/log/clamav/freshclam.log).
> ERROR: initialize: libfreshclam init failed.
> ERROR: Initialization error!'''
>
> what is your advice now ?
>
> have a nice weekend from the france,
>
> regards.
>
>
> Dorian ROSSE.
> ------------------------------
> *De :* colin course <course2017@yandex.com>
> *Envoyé :* jeudi 27 janvier 2022 22:13
> *À :* Dorian ROSSE <dorianbrice@hotmail.fr>
> *Cc :* Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net>
> *Objet :* Re:[clamav-users] problem for freshclam
>
> ok thanks didant mean to be pushey
>
> you could also try clamtk the grahical interface of clam its a scanner
> i am just on there forum now trying to get mine sorted
> bionic only want to give me 5.25 version and you guessed it need it to
> be higher as it is outdated
>
> you will find a version of it on your sanaptic package installer also
> you will need clam to be higher than 2.3 something like ,4 with out
> looking
> i suppect i got the numbers wrong
> you problerly yes you will find your version on the clam log file
> any problems just ask
> tat ta for now
>
> colin
>
> all the best
>
> _______________________________________________
>
> clamav-users mailing list
> clamav-users@lists.clamav.net
> https://lists.clamav.net/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] problem for freshclam [ In reply to ]
I was added freshclam on the Cron job,

Does the process is this process ?

Thanks you in advance for your answer,

Regards.


Dorian Rosse.
________________________________
From: Eero Volotinen <eero.volotinen@iki.fi>
Sent: Saturday, January 29, 2022 4:08:18 PM
To: Dorian ROSSE <dorianbrice@hotmail.fr>
Cc: ClamAV users ML <clamav-users@lists.clamav.net>; colin course <course2017@yandex.com>
Subject: Re: [clamav-users] problem for freshclam

freshclam 24258 clamav 3wW REG 8,6 40824 786476 /var/log/clamav/freshclam.log'

means that processid (pid) is locking the file. you can kill it with sudo kill -9 24258

Eero

la 29. tammik. 2022 klo 17.02 Dorian ROSSE (dorianbrice@hotmail.fr<mailto:dorianbrice@hotmail.fr>) kirjoitti:
hello,


the answer of your line of command adviced :

'''lsof /var/log/clamav/freshclam.log
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/125/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
freshclam 24258 clamav 3wW REG 8,6 40824 786476 /var/log/clamav/freshclam.log'''

what i should do now ?

thank you in advance for your time,

Regards.


Dorian ROSSE.
________________________________
De : Eero Volotinen <eero.volotinen@iki.fi<mailto:eero.volotinen@iki.fi>>
Envoy? : vendredi 28 janvier 2022 19:01
? : ClamAV users ML <clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>>
Cc : colin course <course2017@yandex.com<mailto:course2017@yandex.com>>; Dorian ROSSE <dorianbrice@hotmail.fr<mailto:dorianbrice@hotmail.fr>>
Objet : Re: [clamav-users] problem for freshclam

hi,

try sudo lsof /var/log/clamav/freshclam.log what process is locking the log file and then kill it?

Eero

pe 28. tammik. 2022 klo 18.48 Dorian ROSSE via clamav-users (clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>) kirjoitti:
hello,


I am there,

after your three command line adviced freshclam is again broken : e

'''freshclam
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!'''

what is your advice now ?

have a nice weekend from the france,

regards.


Dorian ROSSE.
________________________________
De : colin course <course2017@yandex.com<mailto:course2017@yandex.com>>
Envoy? : jeudi 27 janvier 2022 22:13
? : Dorian ROSSE <dorianbrice@hotmail.fr<mailto:dorianbrice@hotmail.fr>>
Cc : Dorian ROSSE via clamav-users <clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>>
Objet : Re:[clamav-users] problem for freshclam

ok thanks didant mean to be pushey

you could also try clamtk the grahical interface of clam its a scanner
i am just on there forum now trying to get mine sorted
bionic only want to give me 5.25 version and you guessed it need it to
be higher as it is outdated

you will find a version of it on your sanaptic package installer also
you will need clam to be higher than 2.3 something like ,4 with out looking
i suppect i got the numbers wrong
you problerly yes you will find your version on the clam log file
any problems just ask
tat ta for now

colin

all the best

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>
https://lists.clamav.net/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] problem for freshclam [ In reply to ]
Hi there,

On Sat, 29 Jan 2022, Dorian ROSSE via clamav-users wrote:

> I was added freshclam on the Cron job,

The freshclam utility can run in two ways. It can run and then stop,
or it can run indefintely (then it is what we call a 'daemon'). The
configuration and the commands you give determine what it does. You
need to decide how you are going to use it, configure it, and give it
the proper commands to suit your needs. Read the man page for more.

I suspect that you have freshclam configured to run as a daemon when
you are attempting to start it regularly from the crontab using the
same configuration. That is certain to cause problems, because there
will already be a freshclam process running when another one tries to
start, and they will both be trying to modify the same files etc....

Welcome to the administration of a multi-tasking, multi-user system. :)

If you have freshclam running as a daemon then you will *not* want to
start another instance of it using the same configuration. You could
theoretically run more than one freshclam instance - with different
configurations for each instance - but that would be advanced usage.
I could just about imagine reasons why someone would want to do it,
but it would at least involve multiple signature providers and I'd be
willing to bet that you aren't doing anything like that.

Most people probably start freshclam at system boot, and let it run
until the next boot or an upgrade. That's what I do.

There's no need to involve cron at all.

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

1 2  View All