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

geoip include error issues #93

Open
VVelox opened this issue Sep 5, 2024 · 1 comment
Open

geoip include error issues #93

VVelox opened this issue Sep 5, 2024 · 1 comment

Comments

@VVelox
Copy link

VVelox commented Sep 5, 2024

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.

@beave
Copy link
Contributor

beave commented Oct 21, 2024

Hmm.. Can you send me a copy of your config? When it isn't enabled, it shouldn't be trying to load that file!

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
@beave @VVelox and others