Topic
The K2 Configuration Service is running on port 5000 and not on port 5560. This can be seen from the K2 Configuration Service log found in {K2 Installation Folder}\SourceCode.Configuration.Api\Logs\.
>INF] Starting Service Manager.
>INF] Now listening on: http://localhost:5000
>INF] Application started. Hosting environment: Staging; Content root path: C:\Program Files\K2\SourceCode.Configuraiton.Api\
This can be caused by having either of the following Windows Environment Variables to have a value that is not equal to 'PRODUCTION':
- DOTNET_ENVIRONMENT
- ASPNETCORE_ENVIRONMENT
You may verify this using the steps below:
- Open Control Panel and go to System and Security > System
- Click on Advanced system settings
- Under the Advanced tab, click on Environment Variables...
- Check for the variable under System variables
Instructions
If any of the variables listed are present, please delete them:
- DOTNET_ENVIRONMENT
- ASPNETCORE_ENVIRONMENT
The variable can be deleted following the steps below:
- Open Control Panel and go to System and Security > System
- Click on Advanced system settings
- Under the Advanced tab, click on Environment Variables...
- Select the variable to be deleted under System variables
- Click on the Delete button
- Restart the K2 Configuration Service