Author Topic: <solved> freshclam service will not start  (Read 543 times)

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
<solved> freshclam service will not start
« on: October 17, 2012, 06:52:59 AM »
amigas y amigos

I have for some time problem with the service freshclam.
during the boot process I get an error message: WARNING: Can't get information about user --quiet.
Google knows nothing about this topic

Code: [Select]
$ su -c 'service freshclam start'
Password:
Der Clam AntiVirus Aktualisierungs-Systemdienst wird gestartet: WARNING: Can't get information about user --quiet.
                                                                                                                                             [FEHLER]

any ideas?
« Last Edit: October 21, 2012, 06:19:26 AM by rogaven »
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: freshclam service will not start
« Reply #1 on: October 20, 2012, 05:22:45 AM »
is this a personal problem ???
only I use clamav?
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline twa

  • Full Member
  • ***
  • Posts: 65
  • flown west
Re: freshclam service will not start
« Reply #2 on: October 20, 2012, 02:01:39 PM »
rogaven,
see here:http://www.pclinuxos.com/forum/index.php/topic,108170.msg929673.html#msg929673
and here:http://www.pclinuxos.com/forum/index.php/topic,109491.msg935371.html#msg935371
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread.

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: freshclam service will not start
« Reply #3 on: October 20, 2012, 02:16:50 PM »

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: freshclam service will not start
« Reply #4 on: October 21, 2012, 05:21:02 AM »
thanks for the hints
but the problem here no is freshclam, work as root and user
Code: [Select]
$ freshclam --datadir=/home/rogaven/.clamtk/db
ClamAV update process started at Sun Oct 21 06:40:37 2012
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
Downloading daily-15482.cdiff [100%]
daily.cld updated (version: 15482, sigs: 277543, f-level: 63, builder: ccordes)
bytecode.cvd is up to date (version: 190, sigs: 36, f-level: 63, builder: neo)
Database updated (1321966 signatures) from database.clamav.net (IP: 194.186.47.19)
Code: [Select]
$ su -c 'freshclam'
Password:
ClamAV update process started at Sun Oct 21 06:34:24 2012
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
Downloading daily-15470.cdiff [100%]
Downloading daily-15471.cdiff [100%]
Downloading daily-15472.cdiff [100%]
Downloading daily-15473.cdiff [100%]
Downloading daily-15474.cdiff [100%]
Downloading daily-15475.cdiff [100%]
Downloading daily-15476.cdiff [100%]
Downloading daily-15477.cdiff [100%]
Downloading daily-15478.cdiff [100%]
Downloading daily-15479.cdiff [100%]
Downloading daily-15480.cdiff [100%]
Downloading daily-15481.cdiff [100%]
Downloading daily-15482.cdiff [100%]
daily.cld updated (version: 15482, sigs: 277543, f-level: 63, builder: ccordes)
bytecode.cvd is up to date (version: 190, sigs: 36, f-level: 63, builder: neo)
Database updated (1321966 signatures) from database.clamav.net (IP: 200.236.31.1)

I mean the service that is started at boot
Code: [Select]
$ su -c 'service freshclam start'
Password:
Der Clam AntiVirus Aktualisierungs-Systemdienst wird gestartet: WARNING: Can't get information about user --quiet.
                                                                                                                                             [FEHLER]

Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: freshclam service will not start
« Reply #5 on: October 21, 2012, 05:35:07 AM »
error found  8)
the script search for user
Code: [Select]
$ USER=`grep '^User\b' /etc/clamd.conf|awk '{ print $2}'`
[rogaven@rogaven ~]$ echo $USER

but I had not specified a user

from clamd.conf
Code: [Select]
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
# User clamav
when I chanhge to
Code: [Select]
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
User clamav
the script work without problems
but this setting is correct? or must set to root?  :o
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: freshclam service will not start
« Reply #6 on: October 21, 2012, 05:40:53 AM »
If i understand right, it must set User as clamav, and then it will work correctly

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: freshclam service will not start
« Reply #7 on: October 21, 2012, 05:50:03 AM »
das ist das Problem (that's the problem)  :-\
Quote
Run as another user (clamd must be started by root for this option to work)
Quote
Default: don't drop privileges

wie sieht eine richtig konfigurierte (how look a properly configured) clamd.conf and freshclam.conf aus?
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: freshclam service will not start
« Reply #8 on: October 21, 2012, 05:58:13 AM »
The question is, why should clamav run as an another user?

If you can start clamav, and clamav will work properly, without any errors,
and update freshclam database so is it what you want, or not?

-DE
Die Frage lautet, warum sollte clamav gestartet werden als ein anderer Benutzer?

Wenn clamav startet und korrekt funktioniert, ohne Probleme, dabei die Freshclam
Datenbank aktualisiert, so ist es doch das was man will, oder etwa nicht?

DE-   

Offline Tony

  • Hero Member
  • *****
  • Posts: 1733
  • Reasonable works, ...
Re: freshclam service will not start
« Reply #9 on: October 21, 2012, 06:02:57 AM »
Sorry, my German is not good.

As seen in PCLinuxOS Magazine, good Tutorial for another AntiVirus:   Avast!

avast4workstation-1.3.0-1.i586.rpm

Not clamav I realise; apologies.
*WIKI --PCLinuxOS  is great - remember to Donate ! -- *Software Updates

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: freshclam service will not start
« Reply #10 on: October 21, 2012, 06:19:02 AM »
@Tony,
I'll not change just because something does not work; I'll look for a solution ;)

@daniel
freshclam wurde beim booten nicht gestartet, das habe ich bisher über cronjob gelöst und werde es auch weiterhin tun, da der PC 24 Stunden läuft
es war ein Fehler, den ich beseitigen wollte
freshclam failed during boot,  I have been solved via cronjob and will continue to do so, since the PC is running 24 hours
it was an error, I wanted to eliminate
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <solved> freshclam service will not start
« Reply #11 on: October 21, 2012, 06:23:27 AM »
Is it solved?

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2402
Re: freshclam service will not start
« Reply #12 on: October 21, 2012, 06:31:06 AM »
when I chanhge to
Code: [Select]
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
User clamav
the script work without problems
but this setting is correct? or must set to root?  :o



It seems people use this setting without problems:
Quote
The clamd.conf file looks
like this in my case:

# Run as selected user (clamd must be started by root).
# By default it doesn't drop privileges.
User clamav

http://www.gossamer-threads.com/lists/clamav/users/22749

Offline rogaven

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 559
  • be patient, I'm German
Re: <solved> freshclam service will not start
« Reply #13 on: October 21, 2012, 06:59:40 AM »
also thank you @Bretheren Sea Holystone

yes is solved (i hope; the next boot will show it)
Nothing is perfect, not even my english
3.4.25-pclos1.pae.bfs - KDE: 4.10.1 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 8 GB - GeForce 8400 GS