-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
IP属地无法显示 #1002
Comments
db_path: ./data/ip2region.xdb |
感谢解答。不过应该不是这个问题。因为容器内的目录地址为 $ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12cf134f6cb7 artalk/artalk-go "/entrypoint.sh serv…" About an hour ago Up About an hour 0.0.0.0:8080->23366/tcp, [::]:8080->23366/tcp artalk
$ sudo docker exec -it 12cf134f6cb7 bash
12cf134f6cb7:/# ls ./data
artalk.log artalk.yml ip2region.xdb 刚刚看到了此讨论,个人推测是否为数据库不支持IPv6导致的呢? |
我目前也有这个问题,路径是对的,相对的html就可以取到 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我已经按照官方教程开启了IP属地选项,不过似乎仍未显示IP地址。
我是通过
Docker
部署的,将artalk
的相关配置存储在了artalk-app-data
卷中:相关文件是从官方给出的链接中下载,且已经保存在了数据卷中,用户具有读取权限:
相关选项已经打开,这是
artalk.yml
中的配置:我使用了
postgres:17-alpine
这一Docker镜像部署。我的评论数据是从twikoo
中导入的。查询后发现数据库中存在IP数据,即comments
表中存在ip
字段。并且导出评论时,配置文件中亦存在IP数据,并且我确定这些IP是真实的IP,而不是Docker虚拟网卡或是私有地址的IP。其中一个IP地址为:2409:895a:65e:c05d:17fc:5234:a884:d650
。查看
artalk.log
日志似乎未发现错误。我还尝试了重启artalk服务,但是仍然没有效果。但我不清楚如何排查能否读取IP,或者是该IP的属地在数据库中并不存在。如果是后者,我认为加一个
属地:未知
可能更好。请问一下是什么原因,或者是我应该如何进一步排查呢?不胜感激!
The text was updated successfully, but these errors were encountered: