Hello,
I'm getting this error after starting xray service:
root@OpenWrt:~# /etc/init.d/xray start
xray[22205]: Generating Xray configuration files...
xray[22205]: Starting Xray from /usr/bin/xray
xray[22205]: Using procd_set_param limits nofile=8192 16384
xray[22205]: Setting dnsmasq and firewall for transparent proxy...
xray[22205]: # Generated dnsmasq configurations by luci-app-xray strict-order server=/#/127.0.0.1#5300 server=127.0.0.1#5300
xray[22205]: Generating firewall4 rules...
Reference error: left-hand side expression is null
In /usr/share/xray/firewall_include.ut, line 15, byte 59:
` push(wan_fw_ips_no_dns, split(general.secure_dns, ":")[0]);`
Near here -------------------------------------------------^
xray[22205]: Triggering firewall4 restart...
transparent-proxy-ipset[22461]: default gateway available at 192.168.101.191
root@OpenWrt:~#
Logread shows :
root@OpenWrt:~# logread -f
Sat Oct 29 17:19:36 2022 user.warn xray[23171]: Generating Xray configuration files...
Sat Oct 29 17:19:36 2022 user.warn xray[23171]: Starting Xray from /usr/bin/xray
Sat Oct 29 17:19:36 2022 user.warn xray[23171]: Using procd_set_param limits nofile=8192 16384
Sat Oct 29 17:19:36 2022 user.warn xray[23171]: Setting dnsmasq and firewall for transparent proxy...
Sat Oct 29 17:19:36 2022 user.warn xray[23171]: # Generated dnsmasq configurations by luci-app-xray strict-order server=/#/127.0.0.1#5300 server=127.0.0.1#5300
Sat Oct 29 17:19:36 2022 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: started, version 2.86 cachesize 150
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC no-ID loop-detect inotify dumpfile
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.101.100 -- 192.168.101.249, lease time 12h
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 127.0.0.1#5300 for domain #
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 127.0.0.1#5300
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 127.0.0.1#5300 for domain #
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 127.0.0.1#5300
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 4.2.2.2#53
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver 192.168.99.1#53
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using nameserver fd87:65b9:22c4::1#53
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq[1]: read /tmp/hosts/odhcpd - 2 addresses
Sat Oct 29 17:19:40 2022 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sat Oct 29 17:19:40 2022 user.warn xray[23171]: Generating firewall4 rules...
Sat Oct 29 17:19:40 2022 user.warn xray[23171]: Triggering firewall4 restart...
Sat Oct 29 17:19:40 2022 user.info transparent-proxy-ipset[23426]: default gateway available at 192.168.99.191
Sat Oct 29 17:19:40 2022 daemon.info xray[23438]: Xray 1.6.0 (Xray, Penetrates Everything.) OpenWrt (go1.18.4 linux/arm64)
Sat Oct 29 17:19:40 2022 daemon.info xray[23438]: A unified platform for anti-censorship.
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: 2022/10/29 17:19:40 Using confdir from arg: /var/etc/xray
Sat Oct 29 17:19:40 2022 daemon.info xray[23438]: 2022/10/29 17:19:40 [Info] infra/conf/serial: Reading config: /var/etc/xray/config.json
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: panic: runtime error: invalid memory address or nil pointer dereference
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xcb64c0]
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]:
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: goroutine 1 [running]:
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf.FakeDNSPostProcessingStage.Process({}, 0x4000222dd0)
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf/fakedns.go:65 +0x90
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf.PostProcessConfigureFile(0x400026d800?)
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf/lint.go:18 +0x90
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf.(*Config).Build(0x4000222dd0)
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf/xray.go:556 +0x2c
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf/serial.BuildConfig({0x400021c540, 0x1, 0x400018fc58?}, {0x400021c5a0, 0x1, 0x4edc88?})
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/infra/conf/serial/builder.go:29 +0x54
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/core.LoadConfig({0xf63221, 0x4}, {0xdcb760?, 0x400023a090?})
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/core/config.go:117 +0x2f4
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: main.startXray()
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/main/run.go:185 +0xa8
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: main.executeRun(0x1745be0?, {0x40000c4020?, 0x400005a768?, 0x439abc?})
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/main/run.go:65 +0x2c
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/main/commands/base.Execute()
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/main/commands/base/execute.go:64 +0x5c8
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: main.main()
Sat Oct 29 17:19:40 2022 daemon.err xray[23438]: github.com/xtls/xray-core/main/main.go:22 +0x1e8
Your configurations seems missing option secure_dns setting under config general. Try replacing your configuration file with the default one provided with this package.
Hello, I'm getting this error after starting xray service:
Logread shows :
this is how my config looks like :
I've just compiled luci-app-xray | 1.22.0-1 using openwrt-sdk-22.03.2-PLatform-gcc-11.2.0_musl.Linux-x86_64 after running the OpenWrt :
installed packages