mirror of
https://github.com/fosrl/newt.git
synced 2026-05-06 07:59:04 -05:00
[GH-ISSUE #325] newt initial usage on Windows saves settings on different place than when service is looking for them #1762
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 @robsiera on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/325
Describe the Bug
newt's initial usage on Windows saves settings on different place than when newt-as-a-service is looking for them
Environment
To Reproduce
I did a fresh install of Pangolin. Self-hosted. Non-Enterprise.
I added a windows site using the newt that was downloaded with the provided curl command.
That first usage saves the config.json in %PROGRAMDATA%\olm\newt-client
When using the same newt.exe with install and start, it says:
"Saved service args to: C:\ProgramData\newt\service_args.json" and connection is not re-established.
This is probably because the config is not in the correct place? The docs say that config should be here: %PROGRAMDATA%\newt\newt-client\config.json
Expected Behavior
What I would expect: that at first usage the config is saved in the same place that is being used when using newt-as-a-service.
Or am I missing something?
@AstralDestiny commented on GitHub (Apr 25, 2026):
The json is just your endpoint and such, I've asked in the past for changing that or allow defining it, But can only assume it's likely due to it wants a static location but %PROGRAMDATA% is the same as C:\ProgramData\ So is it just saving it same place but differing by a single folder?
INFO: 2026/04/25 17:59:31 Config file does not exist at C:\ProgramData\olm\newt-client\config.json, will create it
INFO: 2026/04/25 17:59:32 Server version: 1.18.0-rc.0
INFO: 2026/04/25 17:59:32 Saving config to: C:\ProgramData\olm\newt-client\config.json
From a brand new install what am I missing to get it to show elsewhere?
@robsiera commented on GitHub (Apr 26, 2026):
When, in the Pangolin UI, adding a site, one gets these instructions:
When executed, that will
But then, when installing that same newt.exe as a window service, like this:
it looks for the config file in a different place: C:\ProgramData\newt\newt-client\config.json
Hence the connection is NOT established.
I had to move the config file from the \olm\.. to \newt\.. folder and restart the service.
Then the connection was re-established.
This inconsistency in location between creation and reading the config file seems to be undesirable.
@AstralDestiny commented on GitHub (Apr 26, 2026):
Well can replicate we'll look into this soon.
@robsiera commented on GitHub (Apr 26, 2026):
some more observations: