# MaxMindライセンスキーを設定してもIP位置情報が不明なまま

**URL:** https://meta.discourse.org/t/ip-location-still-remains-unknown-when-maxmind-license-key-configured/384596
**Category:** Support
**Tags:** unsupported-install, maxmind
**Created:** [2025 年 10 月 3 日午前 4:50 UTC](https://meta.discourse.org/t/ip-location-still-remains-unknown-when-maxmind-license-key-configured/384596 "2025-10-03T04:50:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MoRanYue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moranyue/32/523065_2.png) [@MoRanYue](https://meta.discourse.org/u/MoRanYue)
#### Post date: [2025 年 10 月 3 日午前 4:50 UTC](https://meta.discourse.org/t/ip-location-still-remains-unknown-when-maxmind-license-key-configured/384596/1 "2025-10-03T04:50:52Z")

</div>

MaxMind ライセンスキーとアカウント ID を以下の 3 つの場所に設定しました。`~/.bashrc`、`<Discourse root>/config/discourse.conf`、`discourse.service (Systemd)`。しかし、IP の場所はクエリされず、組織のみが表示されます。

たとえば次のようになります。

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/2/0/820bd30dd0588b12e35ee2312c09954593f238c3.png)

> ## IP アドレスクエリ
> 
> **場所**  
> (不明)  
> **組織**  
> NETLAB-SDN

`rake assets:precompile` を実行すると、データベースファイルがダウンロードされ、MaxMind のライセンスキーとアカウント ID が利用不可または欠落しているという警告は表示されませんでした。なぜ発生したのかわかりません。

---

<div class="post-metadata">

### Author: ![MoRanYue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moranyue/32/523065_2.png) [@MoRanYue](https://meta.discourse.org/u/MoRanYue)
#### Post date: [2025 年 10 月 3 日午前 4:57 UTC](https://meta.discourse.org/t/ip-location-still-remains-unknown-when-maxmind-license-key-configured/384596/2 "2025-10-03T04:57:12Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/a/d/1/ad14ae75190799d66e103e3f15978e4247883c4c.png)

正しい組織が表示されましたが、場所は気にしないでください…

---

<div class="post-metadata">

### Author: ![MoRanYue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moranyue/32/523065_2.png) [@MoRanYue](https://meta.discourse.org/u/MoRanYue)
#### Post date: [2025 年 10 月 4 日午前 5:53 UTC](https://meta.discourse.org/t/ip-location-still-remains-unknown-when-maxmind-license-key-configured/384596/3 "2025-10-04T05:53:51Z")

</div>

MaxMind アカウントの国を中国に設定すると、`City.mmdb` をダウンロードする際に次のコンテンツが返されます。

```plaintext
Downloads of this database from CN are forbidden due to US bulk sensitive data transfer rules

```

[こちら](https://github.com/wp-statistics/GeoLite2-City)から手動でダウンロードしました。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025 年 11 月 3 日午前 5:54 UTC](https://meta.discourse.org/t/ip-location-still-remains-unknown-when-maxmind-license-key-configured/384596/4 "2025-11-03T05:54:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
