Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_clinet_ip_job.go:195 crashes the server #140

Open
4 tasks done
VexCloudVPN opened this issue Feb 3, 2023 · 2 comments
Open
4 tasks done

check_clinet_ip_job.go:195 crashes the server #140

VexCloudVPN opened this issue Feb 3, 2023 · 2 comments

Comments

@VexCloudVPN
Copy link

VexCloudVPN commented Feb 3, 2023

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

every day at exactly same time my x-ui crashes and the server goes down , nothing works until hard reboot of server, the only thing running on my server is x-ui and the log is below :
panic: runtime error: invalid memory address or nil pointer dereference
/home/runner/work/x-ui/x-ui/web/job/check_clinet_ip_job.go:195 +0x241
i've checked the x-ui.db and did
"SELECT * FROM inbounds WHERE settings LIKE %[EACH_USER_CLIENT_EMAIL_FROM_INBOUND_CLIENT_IPS_TABLE]% "
query for each of " client_email "in " inbound_client_ips" table and it worked for all " client_email "so there is no wrong or deleted " client_email " in xui.db but the problem exist

Version of x-ui

$ x-ui version
# 

x-ui log or xray log

# Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: 2023/02/03 10:40:24 WARNING - client ip job err: database is locked
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: panic: runtime error: invalid memory address or nil pointer dereference
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x90 pc=0xad1281]
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: goroutine 489350 [running]:
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: x-ui/web/job.updateInboundClientIps(0xc00062a7b0, {0xc000735540, 0xb}, {0xc00065ed00?, 0x2, 0x2})
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]:         /home/runner/work/x-ui/x-ui/web/job/check_clinet_ip_job.go:195 +0x241
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: x-ui/web/job.processLogFile()
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]:         /home/runner/work/x-ui/x-ui/web/job/check_clinet_ip_job.go:100 +0x40a
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: x-ui/web/job.(*CheckClientIpJob).Run(0x1b099b8?)
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]:         /home/runner/work/x-ui/x-ui/web/job/check_clinet_ip_job.go:34 +0x65
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: github.com/robfig/cron/v3.(*Cron).startJob.func1()
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]:         /home/runner/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:312 +0x6a
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]: created by github.com/robfig/cron/v3.(*Cron).startJob
Feb 03 10:40:24 1881651801271138453215 x-ui[29015]:         /home/runner/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:310 +0xad
Feb 03 10:40:25 1881651801271138453215 systemd[1]: x-ui.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 03 10:40:25 1881651801271138453215 systemd[1]: x-ui.service: Failed with result 'exit-code'.
@aliafshany
Copy link

@NidukaAkalanka
please investigate this. i have the exact problem. this is a critical bug that needs to be fixed.

@aliafshany
Copy link

@VexCloudVPN
did you find anything useful?
if you want, we can have a chat and share the experience here on telegram, https://t.me/Ali_Afshany
this happens to me exactly by the night comes. i have tested some other queries also but no luck 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants