Skip to content

xray-core:latest-ls 镜像最近更新后,自定义容器用户运行显示Geofile权限错误。 #4747

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

Closed
4 tasks done
dansean opened this issue May 20, 2025 · 7 comments
Closed
4 tasks done

Comments

@dansean
Copy link

dansean commented May 20, 2025

完整性要求

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
  • 我搜索了 issues, 没有发现已提出的类似问题。
  • 问题在 Release 最新的版本上可以成功复现

描述

xray-core:latest-ls 镜像最近更新后,自定义容器用户运行显示Geofile权限错误。

重现方式

版本:25.5.16
tag:latest-ls
uid:13
user:www-data
错误:
Failed to start: main: failed to load config files: [/etc/xray/01_log.json /etc/xray/02_policy.json /etc/xray/03_dns.json /etc/xray/04_stats.json /etc/xray/05_routing.json /etc/xray/06_outbounds.json /etc/xray/07_metrics.json /etc/xray/08_xxx8080.json /etc/xray/09_socket8081.json] > infra/conf: failed to build routing configuration > infra/conf: invalid field rule > infra/conf: failed to parse domain rule: geosite:category-ads-all > infra/conf: failed to load geosite: CATEGORY-ADS-ALL > infra/conf: failed to load file: geosite.dat > infra/conf: failed to open file: geosite.dat > open /usr/share/xray/geosite.dat: permission denied”

客户端配置


服务端配置


客户端日志


服务端日志


@Meo597

This comment has been minimized.

@Fangliding
Copy link
Member

很奇怪啊 二分法测下来有问题的commit是这个。。
0d0fe7e

@Meo597
Copy link
Contributor

Meo597 commented May 20, 2025

基础映像是无发行版的
你这个wwwdata用户估计都没有对应的uid

你应该设置nonroot这个用户名运行,uid65532,然后dat所在目录给755归root uid0

当前的这个docker映像不用也罢,因为做得并不好
最后为啥把我的回复折叠了

@Fangliding
Copy link
Member

因为之前的版本没问题 我说的那个commit之后才有问题的 是核心行为变了 一码归一码 和你的pr没关系 所以标ot了

@Meo597
Copy link
Contributor

Meo597 commented May 20, 2025

你是直接拉ghcr的image测的吧
我盲猜是chainguard的breakchange导致的,可以试试在你说的那个commit之前,用最新的build一下

@Fangliding
Copy link
Member

谢了 还真是 够无聊

@Fangliding Fangliding closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2025
@Meo597
Copy link
Contributor

Meo597 commented May 21, 2025

就是试了一下发现当前docker映像很烂
因此提交了 #4738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants