I have been stuck on the patroni install. I followed the steps but the patroni service is unable to start because it says the file cannot be found when running patroni.py... trying to start the service gives me:
2025-11-27 00:25:45,262 DEBUG - Starting WinSW in service mode
2025-11-27 00:25:45,300 INFO - Starting python.exe C:\PES\patroni\patroni.py C:\PES\patroni\patroni.yaml
2025-11-27 00:25:45,325 ERROR - Failed to start service.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at WinSW.Util.ProcessHelper.StartProcessAndCallbackForExit(Process processToStart, String executable, String arguments, Dictionary2 envVars, String workingDirectory, Nullable1 priority, ProcessCompletionCallback callback, LogHandler logHandler, Boolean hideWindow)
at WinSW.WrapperService.StartProcess(Process processToStart, String arguments, String executable, LogHandler logHandler)
at WinSW.WrapperService.DoStart()
at WinSW.WrapperService.OnStart(String[] args)
I am trying to connect patroni to an already existing postgres data directory and I have given the pes user full access to those files. I only adjusted what was necessary in the patroni.yaml file. I have tried changing the patroni_service.xml file to have the absolute path the the python.exe download but now I am getting the message:
Cannot start service patroni on computer '.'.
I have been stuck on the patroni install. I followed the steps but the patroni service is unable to start because it says the file cannot be found when running patroni.py... trying to start the service gives me:
2025-11-27 00:25:45,262 DEBUG - Starting WinSW in service mode
2025-11-27 00:25:45,300 INFO - Starting python.exe C:\PES\patroni\patroni.py C:\PES\patroni\patroni.yaml
2025-11-27 00:25:45,325 ERROR - Failed to start service.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at WinSW.Util.ProcessHelper.StartProcessAndCallbackForExit(Process processToStart, String executable, String arguments, Dictionary2 envVars, String workingDirectory, Nullable1 priority, ProcessCompletionCallback callback, LogHandler logHandler, Boolean hideWindow)
at WinSW.WrapperService.StartProcess(Process processToStart, String arguments, String executable, LogHandler logHandler)
at WinSW.WrapperService.DoStart()
at WinSW.WrapperService.OnStart(String[] args)
I am trying to connect patroni to an already existing postgres data directory and I have given the pes user full access to those files. I only adjusted what was necessary in the patroni.yaml file. I have tried changing the patroni_service.xml file to have the absolute path the the python.exe download but now I am getting the message:
Cannot start service patroni on computer '.'.