trojanpanel / install-script

Multi-user web administration panel supporting Xray/Trojan-Go/Hysteria/NaiveProxy
https://trojanpanel.github.io
1.81k stars 466 forks source link

trojan-panel-core crash is everyday increasing by adding users #353

Open netsupcloud opened 9 months ago

netsupcloud commented 9 months ago

trojan-panel-core crash is everyday increasing by adding users what should i do ?

for example crash and restart of container was every 1 hour now it is every 5 minute sometimes crash happens 29sec after last crash

netsupcloud commented 9 months ago

its not usable anymore it crashes between 0sec to 5minutes

netsupcloud commented 9 months ago

excuse me crash rate increased by changing kernel to elrepo kernel-ml 6.7 but only crash rate increased for tp-core

jonssonyan commented 9 months ago

What versions of install-script, trojan-panel, and trojan-panel-core are you using? What is your number of users and nodes?

netsupcloud commented 9 months ago

What versions of install-script, trojan-panel, and trojan-panel-core are you using? What is your number of users and nodes?

latest version 2.3.2 users are about 1100 registered accounts but active users about 600 and 7 xray nodes but i reduced nodes before and crash was there always.. also 1 hysteria2 node that i added it newly crash was there before adding it

what works now for me i exported container like this : https://github.com/trojanpanel/install-script/issues/354

and i made 2 services like this:

first service will run a children.sh that will run only children of trojan-panel-core (xray -c configs)

second service is normal trojan-panel-core command and will run but cant open same proxy ports as first service but will close api ports of first service (+30000 dokodemo ports) and will use of his own children api ports

and now when second service restarts after crash first service's children will work with loaded users from api

but ofcourse there is some bugs

i think you can implement this yourself inside container and make trojan-panel-core's crash separate of children as i said here https://github.com/trojanpanel/install-script/issues/352#issuecomment-1913175336

jonssonyan commented 9 months ago

The function of trojan-panel-core is authentication and traffic statistics. If trojan-panel-core is not started, user authentication and traffic statistics of all nodes will be invalid.Provide crash logs for trojan-panel-core

netsupcloud commented 9 months ago

The function of trojan-panel-core is authentication and traffic statistics. If trojan-panel-core is not started, user authentication and traffic statistics of all nodes will be invalid.Provide crash logs for trojan-panel-core

i never said that dont start trojan-panel-core check here https://github.com/trojanpanel/install-script/issues/352#issuecomment-1913569015