Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect argument format for option <optionName> #33

Open
Yamakasi opened this issue May 5, 2017 · 12 comments
Open

Incorrect argument format for option <optionName> #33

Yamakasi opened this issue May 5, 2017 · 12 comments

Comments

@Yamakasi
Copy link

Yamakasi commented May 5, 2017

On a puppetrun I get the following message when the ClamAV Daemon wants to start

May 5 14:01:43 mailscan-02 systemd[1]: Started Clam AntiVirus userspace daemon.
May 5 14:01:44 mailscan-02 clamd[18391]: ERROR: Incorrect argument format for option AlgorithmicDetection
May 5 14:01:44 mailscan-02 clamd[18391]: ERROR: Can't open/parse the config file /etc/clamav/clamd.conf

A default config from the ClamAV installation works well.

@edestecd
Copy link
Owner

edestecd commented May 5, 2017

What is your OS and version?

@Yamakasi
Copy link
Author

Yamakasi commented May 5, 2017

Wow, quick reply! thanks.

Ubuntu 17.04

@ubellavance
Copy link

It's not on the list of supported OS versions: https://forge.puppet.com/edestecd/clamav/compatibility. Would you like to help us make it compatible?

@Yamakasi
Copy link
Author

Yamakasi commented May 5, 2017

Sure I want to, I just need to figure out why it hangs on that... gimme a sec.

@edestecd
Copy link
Owner

edestecd commented May 5, 2017

While this module does not officially support that version, I am happy to add support, if you can help provide more detail...

Can you find out what the correct argument format is for AlgorithmicDetection?
We are setting it here for all OSes: https://github.com/edestecd/puppet-clamav/blob/master/manifests/params.pp#L184

As a temporary fix you could set that to the proper format or have it removed like so:

class { 'clamav':
  manage_clamd  => true,
  clamd_options => {
    'AlgorithmicDetection' => undef,
  },
}

@Yamakasi
Copy link
Author

Yamakasi commented May 5, 2017

Hi, the thing is that the format is proper, I get true where true/yes/1 can live. Normally these changes are not that huge so that's why I opened this ticket. Thanks already!

I think I'm missing something in the top of the file that needs to be loaded first ?

@Yamakasi
Copy link
Author

Yamakasi commented May 5, 2017

OK, the puppetized install overwritten with a default clamd.conf gives the same error(s). Need to investigate.

@Yamakasi
Copy link
Author

Yamakasi commented May 5, 2017

Found the issue, there comes ^M from github in the templates when you clone it. Or you guys have uploaded a template with ^M ?

@Yamakasi
Copy link
Author

Yamakasi commented May 6, 2017

Please remove AllowSupplementaryGroups as it's removed from ClamAV 0.99.2

@edestecd
Copy link
Owner

edestecd commented May 6, 2017

#25

@edestecd
Copy link
Owner

edestecd commented May 6, 2017

^M is a special character... Often thats a Windows carriage return new line issue.
Are you using windows? It is possible that someone checked in a windows formatted template.

@edestecd
Copy link
Owner

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants