xbclub / xraya

v2raya的fork 以支持xray vision协议
GNU Affero General Public License v3.0
28 stars 1 forks source link

XRAY_LOCATION_ASSET not working #3

Open iopq opened 1 year ago

iopq commented 1 year ago

Version, approach of installation, operating system

  1. What version of xrayA are you using?

the master

  1. What approach of installation do you install V2rayA?

from github

  1. What is your operating system?

NixOS unstable

Description

This seems to be an issue from v2ray, but the author doesn't support xray so I can't file it there. When you use the XRAY_LOCATION_ASSET it works with directly running xray, but with xrayA I needed to set the V2RAY_LOCATION_ASSET for some reason

Steps to reproduce

run xrayA but only set the assets to XRAY_LOCATION_ASSET, it will fail to find the assets

Logs:

I saved the log from v2raya having this issue, but xray actually didn't change anything

2023/03/04 16:15:32.776 [I] [io.go:429] Failed to start: main: failed to load config files: [/etc/v2raya/config.json] > infra/conf: invalid field rule > infra/conf: failed to load GeoIP: private > infra/conf: failed to load file: geoip.dat > infra/conf: failed to open file: geoip.dat > open /etc/v2raya:/nix/store/j9wqkrpww59sdpkbrcd51q8zk3bq2kp0-v2ray-assets/share/v2ray/geoip.dat: no such file or directory

iopq commented 1 year ago

The issue seems to be that I'm installing a folder called v2ray but I'm setting the XRAY_LOCATION_ASSET variable

https://github.com/XTLS/Xray-core/issues/26

in XRAY this is already fixed by testing the v2ray folder name as well

Should I just package it with V2RAY_LOCATION_ASSET in nixos instead and just avoid this issue?

iopq commented 1 year ago

I have decided to just fix my local set-up and use the V2RAY_LOCATION_ASSET instead:

https://github.com/NixOS/nixpkgs/pull/225390

marillindie commented 1 year ago

The issue seems to be that I'm installing a folder called v2ray but I'm setting the XRAY_LOCATION_ASSET variable

XTLS/Xray-core#26

in XRAY this is already fixed by testing the v2ray folder name as well

Should I just package it with V2RAY_LOCATION_ASSET in nixos instead and just avoid this issue?

Maybe you have met some translation problems, but the issue you quoted shows that the maintainer REFUSED to change the code of xray, because xray has been designed to have a separated ecology.

iopq commented 1 year ago

I think you're right, this software should use XRAY_LOCATION_ASSET instead when running xray