Skip to content

geoip include error issues #93

Description

@VVelox

Trying to set set geoip options via a included file results in odd errors.

>yq .sagan-core.geoip sagan.yaml
enabled: no
country_database: "/usr/local/share/GeoIP2/GeoLite2-Country.mmdb"
skip_networks: "8.8.8.8/32, 8.8.4.4/32"
>yq .sagan-core.geoip sagan-include.yaml 
country_database: /usr/local/share/GeoIP/GeoLite2-Country.mmdb
enabled: yes

Results in the error below.

[*] Loading GeoIP database. []
[W] Cannot open '' [No such file or directory]!

But the file does definitely exist.

>ll /usr/local/share/GeoIP/GeoLite2-Country.mmdb    
Permissions Size User Group Date Modified Name
.rw-r--r--  6.3M root wheel 17 Dec  2023  /usr/local/share/GeoIP/GeoLite2-Country.mmdb

If enabled and db path set in the main file it works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions