【Sentry运维】Docker下Sentry安装及使用

本文详细指导了如何在服务器上安装Sentry Onpremise,包括检查9000端口占用情况,创建用户账户,设置GeoIP集成,解决网络问题及Docker配置。最后演示了Flask和 connexion集成Sentry的实例。

安装

>>> git clone https://github.com/getsentry/onpremise
>>> cd onpremise

安装前先检查一下9000端口是否被占用:

>>> netstat -nltp|grep 9000
tcp        0      0 0.0.0.0:9000            0.0.0.0:*               LISTEN      22202/docker-proxy

看到了吧,已经被占用了

如果9000端口被占用,我强烈建议是把9000端口收回或者换一台没有被占用的服务器进行部署,而不是尝试修改默认端口,因为我折腾好长时间,发现此路不通,而且官方似乎也不建议修改默认的9000端口

开始安装:

>>> ./install.sh
Would you like to create a user account now? [Y/n]: Y
Email: xxxxxxx@qq.com
Password:
Repeat for confirmation:
User created: xxxxxxx@qq.com
Added to organization: sentry
Creating missing DSNs
Correcting Group.num_comments counter

▶ Migrating file storage ...
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
596ba82af5aa: Pulling fs layer
596ba82af5aa: Download complete
596ba82af5aa: Pull complete
Digest: sha256:d9a7354e3845ea8466bb00b22224d9116b183e594527fb5b6c3d30bc01a20378
Status: Downloaded newer image for alpine:latest

▶ Generating Relay credentials ...
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
Relay credentials written to relay/credentials.json

▶ Setting up GeoIP integration ...
Setting up IP address geolocation ...
Installing (empty) IP address geolocation database ... [proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
done.
IP address geolocation is not configured for updates.
See https://develop.sentry.dev/self-hosted/geolocation/ for instructions.
Error setting up IP address geolocation.


-----------------------------------------------------------------

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

  docker-compose up -d

-----------------------------------------------------------------

如果卡在

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值