Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
【solved】 Agent software v2raya shows crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wlmosv
n00b
n00b


Joined: 19 Apr 2024
Posts: 38

PostPosted: Tue Apr 30, 2024 1:22 pm    Post subject: 【solved】 Agent software v2raya shows crash Reply with quote

Code:
wlmosv$ rc-status
Runlevel: default
 syslog-ng                                                                                                   [  started  ]
 dhcpcd                                                                                                      [  started  ]
 dbus                                                                                                        [  started  ]
 NetworkManager                                                                                              [  started  ]
 dnsmasq                                                                                                     [  started  ]
 netmount                                                                                                    [  started  ]
 display-manager                                                                                             [  started  ]
 tor                                                                                                         [  started  ]
 pure-ftpd                                                                                                   [  started  ]
 mysql                                                                                                       [  started  ]
 libvirtd                                                                                                    [  started  ]
 local                                                                                                       [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 display-manager-setup                                                                                       [  started  ]
 virtlogd                                                                                                    [  started  ]
Dynamic Runlevel: manual
 v2raya                                                                                                      [  crashed  ]
wlmosv$

The agent can be used normally but the startup status is crashed
when i use command v2raya
Code:
wlmosv$ v2raya
2024/04/30 21:21:34.194 [E] [main.go:23]  Please execute this program with sudo or as a root user for the best experience.
If you are sure you are root user, use the --passcheckroot parameter to skip the check.
If you don't want to run as root or you are a non-linux user, use --lite please.
For example:
$ v2raya --lite
wlmosv$ v2raya --lite
2024/04/30 21:21:41.465 [I] [pre.go:162]  init DB
2024/04/30 21:21:41.489 [A] [main.go:29]  V2Ray binary is /usr/bin/xray
2024/04/30 21:21:41.489 [A] [main.go:29]  V2Ray asset directory is /run/user/1000/v2raya
2024/04/30 21:21:41.489 [A] [main.go:29]  v2rayA working directory is /home/wlmosv
2024/04/30 21:21:41.489 [A] [main.go:29]  v2rayA configuration directory is /home/wlmosv/.config/v2raya
2024/04/30 21:21:41.489 [A] [main.go:29]  Golang: go1.22.2
2024/04/30 21:21:41.489 [A] [main.go:29]  OS: linux
2024/04/30 21:21:41.489 [A] [main.go:29]  Arch: amd64
2024/04/30 21:21:41.489 [A] [main.go:29]  Lite: true
2024/04/30 21:21:41.489 [A] [main.go:29]  Version: 2.2.5.1
2024/04/30 21:21:41.489 [A] [main.go:29]  Starting...
2024/04/30 21:21:41.489 [I] [main.go:30]  the core was not running the last time v2rayA exited
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://127.0.0.1:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://192.168.5.19:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://192.168.5.20:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://192.168.122.1:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://[::1]:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://[240e:435:dea0:3557:254b:d96:dd33:12a9]:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://[240e:435:dea0:3557:ff0c:9095:c16c:ce82]:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://[fe80::c7cb:6054:1a78:1c05]:2017
2024/04/30 21:21:41.493 [A] [index.go:116]  v2rayA is listening at http://[fe80::8fc8:220b:d995:1a87]:2017
2024/04/30 21:21:41.493 [E] [main.go:30]  run: listen tcp 0.0.0.0:2017: bind: address already in use
wlmosv$

what should i do ....
_________________
学习他,成为他,超越他:Embrace the journey of learning from him, becoming like him, and ultimately surpassing him.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3426

PostPosted: Tue Apr 30, 2024 2:47 pm    Post subject: Reply with quote

Things like that happen with services that daemonize themselves without leaving a pidfile for openrc.
From init's point of view it looks like the service terminated itself, even though it's child is still running (after it ran from home). What does start function in /etc/init.d/v2raya look like?
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
wlmosv
n00b
n00b


Joined: 19 Apr 2024
Posts: 38

PostPosted: Tue Apr 30, 2024 4:19 pm    Post subject: Reply with quote

szatox wrote:
Things like that happen with services that daemonize themselves without leaving a pidfile for openrc.
From init's point of view it looks like the service terminated itself, even though it's child is still running (after it ran from home). What does start function in /etc/init.d/v2raya look like?


Code:
 cat /etc/init.d/v2raya
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

name="v2rayA"
description="web GUI client of Project V which supports V2Ray, Xray, SS, SSR, Trojan and Pingtunnel"
command="/usr/bin/v2raya"
command_args="${V2RAYA_OPTS}"
error_log="/var/log/v2raya/error.log"
pidfile="/run/${RC_SVCNAME}.pid"
command_background="yes"
rc_ulimit="-n 30000"
rc_cgroup_cleanup="yes"

depend() {
        need net
        after net
}

start_pre() {
        mkdir -p /var/log/v2raya

        eend $?
}

_________________
学习他,成为他,超越他:Embrace the journey of learning from him, becoming like him, and ultimately surpassing him.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum