Closed ahaverty closed 1 year ago
Perhaps the server is hardcoded to attempt something on port 5000 for non MacOS machines? https://github.com/codeproject/CodeProject.AI-Server/blob/65acf54edb29ddd22e3c2df7656739870ea43bea/src/API/Server/FrontEnd/Program.cs#L396
Removing the known service I have on port 5000 would be a mess for me right now unfortunately.
I've solved for now by moving the service I had running on 5000 to a different port. CodeProject now starts as expected, with no changes to the default config. I'd say it's an open issue though if I'm right, or at least some help if anyone else hits this.
We'll add proper error handling around that piece of code to correct this in our next (2.1) release
Area of Concern
Describe the bug Code Project Server on windows is failing to start due to another service running on port 5000, despite my appsettings.json being set to 32168.
Expected behavior Code Project Server starts on 32168, and doesn't attempt to use port 5000 at all.
Screenshots
Your System (please complete the following information):
Additional context
CodeProject.AI.Serve.exe
manually also fails, and gives me a better understanding of the error: