-
Notifications
You must be signed in to change notification settings - Fork 39
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
"There is no active user" when setting up Xray to write logs to files #32
Comments
hom this is odd, it shouldn't be a problem |
Yes, the problem persists even after rebooting the server and restarting marzban. The xray logs themselves are created correctly. They contain user IPs and all other information. Marzban displays logs in the panel. Only V2IpLimit stops working. It continues to write log and send messages in telegram, but there is always “There is no active user”. As soon as I remove these lines from the Xray config, even without rebooting the kernel, V2IpLimit immediately, according to the timer, starts working correctly.
|
I checked myself. "log": {
"loglevel": "info",
"access": "access.log",
"error": "error.log"
}, This is what Api and Panel shows (script receives logs like this):
And this is the contents of
And that's why I don't know how you can see the users' information inside the panel logs. Please check it again. As I can understand when with Xray you save the logs Xray doesn't show them on stdout, so marzban can't catch them. ...
def capture_only():
while self.process:
output = self.process.stdout.readline()
if output:
output = output.strip()
... so marzban just read the stdout and when Xray is saving log file, it doesn't send logs into stdout. This is my opinion, maybe I'm wrong :) |
It looks like it is. That is, writing logs to files and working with V2IpLimit are incompatible on marzban. Is it possible to force the script to read logs from xray files? |
i had the same issues here |
@AlexKoup Not by default, but it can be changed. I will create an issue in Marzban to report it. |
I found a problem. If the xray_config.json file specifies saving logs to files like this:
then the script does not work, it displays "There is no active user".
Right while the script was running, I deleted and added back the access and error entries, restarted Xray and the script either worked or stopped.
The text was updated successfully, but these errors were encountered: