IP2Geo update and 403 error

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.12
AlmaLinux release 9.3 (Shamrock Pampas Cat)

Describe the issue:
I receive errors: “error”:“ip2geo_data_expired”, when tried to download manifest manually - received errors like below:
wget https://geoip.maps.opensearch.org/v1/geolite2-country/manifest.json
–2024-09-24 14:39:22-- https://geoip.maps.opensearch.org/v1/geolite2-country/manifest.json
Resolving geoip.maps.opensearch.org (geoip.maps.opensearch.org)… 108.138.51.120, 108.138.51.12, 108.138.51.87, …
Connecting to geoip.maps.opensearch.org (geoip.maps.opensearch.org)|108.138.51.120|:443… connected.
HTTP request sent, awaiting response… 403 Forbidden
2024-09-24 14:39:22 ERROR 403: Forbidden.

Configuration:
{
“datasources”: [
{
“name”: “geo-datasource”,
“state”: “AVAILABLE”,
“endpoint”: “https://geoip.maps.opensearch.org/v1/geolite2-city/manifest.json”,
“update_interval_in_days”: 3,
“next_update_at_in_epoch_millis”: 1727435468123,
“database”: {
“provider”: “maxmind”,
“sha256_hash”: “xdtsVZzxm9X96Kd4Owf58FNSeFol5zVs2hSfFta2Xeg=”,
“updated_at_in_epoch_millis”: 1721406613000,
“valid_for_in_days”: 30,
“fields”: [
“country_iso_code”,
“country_name”,
“continent_name”,
“region_iso_code”,
“region_name”,
“city_name”,
“time_zone”,
“location”
]
},
“update_stats”: {
“last_succeeded_at_in_epoch_millis”: 1721733234050,
“last_processing_time_in_millis”: 164678,
“last_failed_at_in_epoch_millis”: 1727176280887
}
}
]
}

Relevant Logs or Screenshots:

Hi @lczerwonka ,

Please try using this command:

curl -O https://geoip.maps.opensearch.org/v1/geolite2-country/manifest.json
1 Like

This parameter did the trick, thanks.

But regarding “ip2geo_data_expired” - I figured it out… too low heap size was the reason. After increase I was able to update geoIP database.