Bug #446

improve threshold.conf not found error

Added by Victor Julien about 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:04/05/2012
Priority:NormalDue date:
Assignee:Eric Leblond% Done:

0%

Category:-
Target version:1.3rc1

Description

<ebf0> 20:52:36> [24300] 4/4/2012 -- 20:49:35 - (util-reference-config.c:97) <Error> (SCRConfInitContext) -- [ERRCODE: SC_ERR_FOPEN(44)] - Error opening file: "/usr/local/suricata-git/etc/reference.config": No such file or directory
<ebf0> 20:52:52> which is informational, but:
<ebf0> 20:52:54> [24360] 4/4/2012 -- 20:51:57 - (util-threshold-config.c:138) <Warning> (SCThresholdConfInitContext) -- [ERRCODE: SC_ERR_FOPEN(44)] - Error opening file: "threshold.config": No such file or directory
<ebf0> 20:53:22> util-threshold-config.c:138 miss where its looking for the file :)

History

#1 Updated by Victor Julien almost 2 years ago

  • Assignee set to OISF Dev

#2 Updated by Victor Julien almost 2 years ago

  • Assignee changed from OISF Dev to Eric Leblond
  • Target version changed from 1.3beta2 to 1.3rc1

#3 Updated by Eric Leblond almost 2 years ago

Can we consider this is fixed by 2d22f667 ?

#4 Updated by Victor Julien almost 2 years ago

  • Status changed from New to Assigned

It seems the var gets passed before it's expanded to include "/suricata". When I use --sysconfdir=/etc I get:

Generic build parameters:
  Installation prefix (--prefix):          /usr
  Configuration directory (--sysconfdir):  /etc/suricata/
  Log directory (--localstatedir) :        /var/log/suricata/

but also:

[13335] 20/6/2012 -- 18:03:50 - (util-threshold-config.c:138) <Warning> (SCThresholdConfInitContext) -- [ERRCODE: SC_ERR_FOPEN(44)] - Error opening file: "/etc/threshold.config": No such file or directory

#5 Updated by Victor Julien almost 2 years ago

  • Status changed from Assigned to Closed

Fixed.

Also available in: Atom PDF