部署XrayR后端 启动失败 修复过程

 

今天在部署 Xrayr 的后端的时候 发现始终无法启动成功。发现提示的是找不到文件。
系统是Ubuntu 22.0 系统是新装的。
但是一直说找不到文件。 仔细检查 发现配置文件也问题。最后经过仔细分析。发现问题如下。


Apr 24 13:27:43 VM-VVVVVV systemd[24133]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:27:43 VM-VVVVVV systemd[24133]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:27:43 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:27:43 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:27:53 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 4.
Apr 24 13:27:53 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:27:53 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:27:53 VM-VVVVVV systemd[24428]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:27:53 VM-VVVVVV systemd[24428]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:27:53 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:27:53 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:28:04 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 5.
Apr 24 13:28:04 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:28:04 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:28:04 VM-VVVVVV systemd[24723]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:28:04 VM-VVVVVV systemd[24723]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:28:04 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:28:04 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:28:14 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 6.
Apr 24 13:28:14 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:28:14 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:28:14 VM-VVVVVV systemd[25116]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:28:14 VM-VVVVVV systemd[25116]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:28:14 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:28:14 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:28:24 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 7.
Apr 24 13:28:24 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:28:24 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:28:24 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:28:24 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:28:34 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 8.
Apr 24 13:28:34 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:28:34 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:28:34 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:28:34 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:28:45 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 9.
Apr 24 13:28:45 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:28:45 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:28:45 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:28:45 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:28:55 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 10.
Apr 24 13:28:55 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:28:55 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:28:55 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:28:55 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:29:03 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:29:03 VM-VVVVVV systemd[25354]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:29:03 VM-VVVVVV systemd[25354]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:29:03 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:29:03 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:29:03 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:29:13 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 11.
Apr 24 13:29:13 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:29:13 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:29:13 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:29:13 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:29:23 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 12.
Apr 24 13:29:23 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:29:23 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:29:23 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:29:23 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:29:33 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 13.
Apr 24 13:29:33 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:29:33 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:29:33 VM-VVVVVV systemd[25392]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:29:33 VM-VVVVVV systemd[25392]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:29:33 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:29:33 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:29:43 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:29:43 VM-VVVVVV systemd[25838]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:29:43 VM-VVVVVV systemd[25838]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:29:43 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:29:43 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:29:43 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:29:53 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 14.
Apr 24 13:29:53 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:29:53 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:29:53 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:29:53 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:30:03 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 15.
Apr 24 13:30:03 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:30:03 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:30:03 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:30:03 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:30:09 VM-VVVVVV systemd[1]: Stopped XrayR Service.
Apr 24 13:32:28 VM-VVVVVV systemd[26493]: XrayR.service: Failed to locate executable /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:32:28 VM-VVVVVV systemd[26493]: XrayR.service: Failed at step EXEC spawning /usr/local/XrayR/XrayR: No such file or directory
Apr 24 13:32:28 VM-VVVVVV systemd[1]: Started XrayR Service.
Apr 24 13:32:28 VM-VVVVVV systemd[1]: XrayR.service: Main process exited, code=exited, status=203/EXEC
Apr 24 13:32:28 VM-VVVVVV systemd[1]: XrayR.service: Failed with result 'exit-code'.
Apr 24 13:32:38 VM-VVVVVV systemd[1]: XrayR.service: Scheduled restart job, restart counter is at 1.
Apr 24 13:32:38 VM-VVVVVV systemd[1]: Stopped XrayR Service.

问题出现在:
系统默认没有安装解压缩软件 unzip 导致在线安装的文件无法被正确解压导致的。而且因为系统是刚装的 软件源也似乎有问题。

解决办法如下:
1、修复 dpkg。执行命令 sudo dpkg --configure -a
2、安装 unzip 执行名 sudo apt-get install unzip

安装完成之后。再重新执行 xray的安装命令重新安装。
软件包已经自动解压到正确为止。
至此 该问题修复!

阅读剩余
THE END