mirror of
https://github.com/fosrl/newt.git
synced 2026-05-06 16:09:02 -05:00
[GH-ISSUE #180] flag -accept-clients not working
#1126
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iconoclasthero on GitHub (Nov 22, 2025).
Original GitHub issue: https://github.com/fosrl/newt/issues/180
Originally assigned to: @oschwartz10612 on GitHub.
Describe the Bug
The --help shows:
but when I try to run it:
Environment
To Reproduce
calling it via systemd:
the commented line fails, the uncommented line succeeds.
Expected Behavior
This is a flag listed in --help. it should work and accept clients.
@iconoclasthero commented on GitHub (Nov 22, 2025):
Also, on my other machine with newt 1.5.1,
--accept-clients(2 -- prefix) works.@iconoclasthero commented on GitHub (Nov 22, 2025):
Also, why is it now spitting out this first line when I query the version?
that't not happening here:
@oschwartz10612 commented on GitHub (Nov 22, 2025):
So
--accept-clientsworks but-accept-clientsdoes not?That's a bug I will fix.
@iconoclasthero commented on GitHub (Nov 22, 2025):
No, I originally had
--accept-clientsin my systemctl, I changed it to-accept-clientsafter seeing the error message.So far as I can tell, neither work. I had to remove it completely so systemd could start newt.
@oschwartz10612 commented on GitHub (Nov 22, 2025):
Hum testing now for me both seem to work and I am able to start newt.
Could you provide a full output of the logs when you use
--accept-clients. What happens specifically when it does not work?
@iconoclasthero commented on GitHub (Nov 22, 2025):
I misspoke earlier, this is on a Rhino 2025.03 machine (i.e., Ubuntu devel/Resolute), but I tested it on my Manjaro server and the same thing happened.
Does not work with either
--accept-clientsor-accept-clients:@oschwartz10612 commented on GitHub (Nov 22, 2025):
Hum it looks like it is working in the bottom output but not the top
two. And if you use --help does it show in the options?
Are you only providing --accept-clients or also the --id, --secret,
--endpoint? Those are also required.
@iconoclasthero commented on GitHub (Nov 22, 2025):
the systemd unit pulls those in from an EnvironmentFile, see below:
also,this would probably be easier to do on discord...
@oschwartz10612 commented on GitHub (Nov 22, 2025):
AHH! Okay its because you have already provided accept clients as true in the env var. When this happens it does not check the cli flags and you would get that error.
So this is "expected behavior" but I think it could be improved by not throwing the warning and just bypassing that flag when the env is set. Will take this as an enhancement.
@iconoclasthero commented on GitHub (Nov 22, 2025):
It's not throwing a warning, it's exiting 1.