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

关于 geo和geoipupdate #2395

Closed
yysfwls opened this issue Sep 11, 2023 · 14 comments
Closed

关于 geo和geoipupdate #2395

yysfwls opened this issue Sep 11, 2023 · 14 comments
Labels

Comments

@yysfwls
Copy link

yysfwls commented Sep 11, 2023

Problem Statement

我在onpremise/geoip/GeoIP.conf 目录下配置AccountID、LicenseKey、EditionIDs之后,重启了服务
但是sentry dashboards-Errors by Country 没有关于GEO的数据,所有都是no value,

其他地方,例如Performance-Transaction Summary 的USER IP 都是有值的;

Solution Brainstorm

尝试在onpremise 安装了geoipupdate_6.0.0_darwin_amd64,修改了GeoIP.conf 并尝试执行
geoipupdate
geoipupdate -d /opt/onpremise/geoip/GeoIP.conf
都没有解决

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 11, 2023
@yysfwls yysfwls changed the title GEO.REGION,GEO.CITY 能显示正确的信息 GEO.REGION,GEO.CITY 不能显示正确的信息 Sep 11, 2023
@yysfwls
Copy link
Author

yysfwls commented Sep 11, 2023

0b751482c14cf82318aa1301d2527883
fd2041934bd48d7a3eae5ae3c3ac6e6e

@yysfwls yysfwls changed the title GEO.REGION,GEO.CITY 不能显示正确的信息 关于 geo和geoipupdate Sep 11, 2023
@yysfwls
Copy link
Author

yysfwls commented Sep 11, 2023

所以我到底应不应该装geoipupdate?
系统是ubuntu x86_64
apt install geoipupdate之后自动安装了geoipupdate_5.0.0_linux_amd64.deb

@yysfwls
Copy link
Author

yysfwls commented Sep 14, 2023

还没解决 有人帮助解答吗

@hubertdeng123
Copy link
Member

Could you please use english here so that it is easier to help out? Have you followed the instructions here?

https://develop.sentry.dev/self-hosted/geolocation/

@yysfwls
Copy link
Author

yysfwls commented Sep 15, 2023 via email

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Sep 15, 2023
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 Sep 18, 2023
@hubertdeng123
Copy link
Member

Responded here:
#2402

It's difficult to know what is going wrong when it appears your setup is just not working properly. Are there any logs that may indicate what might be going wrong?

docker compose logs

@yysfwls
Copy link
Author

yysfwls commented Sep 20, 2023

Responded here: #2402

It's difficult to know what is going wrong when it appears your setup is just not working properly. Are there any logs that may indicate what might be going wrong?

docker compose logs

ok , i close #2402,
Now there is only one problem with Self-Hosted Geolocation;

I created a new GeoIP.conf and configured AccountID LicenseKey EditionIDs.
Then
docker compose down
./install.sh
docker compose up -d
Check User Settings > Security > Session History. The country/region code and region are not displayed below the IP address in the table

Partial log:
...
Docker images built.

▶ Downloading and installing wal2json ...

▶ Bootstrapping and migrating Snuba ...
Network sentry-self-hosted_default Creating
...
Container sentry-self-hosted-snuba-api-1 Started
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Running migrations for default
Operations to perform:
Apply all migrations: auth, contenttypes, nodestore, replays, sentry, sessions, sites, social_auth
Running migrations:
No migrations to apply.
Creating missing DSNs
Correcting Group.num_comments counter

▶ Setting up GeoIP integration ...
Setting up IP address geolocation ...
IP address geolocation database already exists.
IP address geolocation is configured for updates.
Updating IP address geolocation database ...
Done updating IP address geolocation database.
Done setting up IP address geolocation.


You're all done! Run the following command to get Sentry running:

docker compose up -d


@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Sep 20, 2023
@yysfwls
Copy link
Author

yysfwls commented Sep 20, 2023

GeoIp.conf:

043e7d287a8f2f63d3d82073bee439b9

@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 Sep 21, 2023
@hubertdeng123
Copy link
Member

Are you sending ip addresses to Sentry? Newer SDK's don't do this by default

https://docs.sentry.io/platforms/python/data-management/sensitive-data/#personally-identifiable-information-pii

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Sep 22, 2023
@yysfwls
Copy link
Author

yysfwls commented Sep 22, 2023

Are you sending ip addresses to Sentry? Newer SDK's don't do this by default

https://docs.sentry.io/platforms/python/data-management/sensitive-data/#personally-identifiable-information-pii

😬Thanks for the reply. Now I have some data for regions and cities, but why do most of them show no value?

@hubertdeng123
Copy link
Member

😬Thanks for the reply. Now I have some data for regions and cities, but why do most of them show no value?

Most of them show no value? Can you elaborate more here?

@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 Sep 25, 2023
@yysfwls
Copy link
Author

yysfwls commented Sep 26, 2023

😬Thanks for the reply. Now I have some data for regions and cities, but why do most of them show no value?

Most of them show no value? Can you elaborate more here?

dd523b1bc5465faf10da8c91f97e0d3c

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Sep 26, 2023
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 Sep 27, 2023
@hubertdeng123
Copy link
Member

I'm afraid I'm not entirely sure what might be the issue here. Some people may be disabling geoip usage from their browsers so that might be it.

@getsantry
Copy link

getsantry bot commented Oct 19, 2023

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Oct 19, 2023
@getsantry getsantry bot closed this as completed Oct 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants