Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

【solved】 Agent software v2raya shows crash

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
wlmosv
n00b
n00b
User avatar
Posts: 48
Joined: Fri Apr 19, 2024 11:01 am

【solved】 Agent software v2raya shows crash

  • Quote

Post by wlmosv » Tue Apr 30, 2024 1:22 pm

Code: Select all

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: Select all

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.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Tue Apr 30, 2024 2:47 pm

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 Pipewire a system service
Top
wlmosv
n00b
n00b
User avatar
Posts: 48
Joined: Fri Apr 19, 2024 11:01 am

  • Quote

Post by wlmosv » Tue Apr 30, 2024 4:19 pm

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: Select all

 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.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic