Code Project AI Server ver 2.9.5 Linux Port 5000 conflict?

hapstabu

Getting the hang of it
Aug 29, 2020
108
55
US
A while ago, I remember having to change from False to True in this AppSettings.json file to keep Code Project AI Server from using port 5000:

"ServerOptions": {

/ Whether or not to disable port 5000 (5500 on mac) so it's free for something else
"DisableLegacyPort": true,

I set this to True, it doesn't have any effect.

tcp6 0 0 :::32168 :::* LISTEN 26967/dotnet
tcp6 0 0 :::5000 :::* LISTEN 26967/dotnet

(I also have the Disable IPv6 parameter set to true.That doesn't have any effect either.)

This is the /bin/codeproject.ai-server/server/appsettings.json file.

Am I changing the wrong file?

I'm using another program that conflicts with port 5000.

Infor *** STARTING CODEPROJECT.AI SERVER
Infor RUNTIMES_PATH = /usr/bin/codeproject.ai-server/runtimes
Infor PREINSTALLED_MODULES_PATH = /usr/bin/codeproject.ai-server/preinstalled-modules
Infor DEMO_MODULES_PATH = /usr/bin/codeproject.ai-server/src/demos/modules
Infor EXTERNAL_MODULES_PATH = /usr/bin/CodeProject.AI-Modules
Infor MODULES_PATH = /usr/bin/codeproject.ai-server/modules
Infor PYTHON_PATH = /bin/ubuntu/%PYTHON_NAME%/venv/bin/python3
Infor Data Dir = /etc/codeproject/ai

The /etc/codeproject/ai directory has a serversettings.json file that is empty. that might be from running the docker version a year ago.

Any ideas?
 
A while ago, I remember having to change from False to True in this AppSettings.json file to keep Code Project AI Server from using port 5000:

"ServerOptions": {

/ Whether or not to disable port 5000 (5500 on mac) so it's free for something else
"DisableLegacyPort": true,

I set this to True, it doesn't have any effect.

tcp6 0 0 :::32168 :::* LISTEN 26967/dotnet
tcp6 0 0 :::5000 :::* LISTEN 26967/dotnet

(I also have the Disable IPv6 parameter set to true.That doesn't have any effect either.)

This is the /bin/codeproject.ai-server/server/appsettings.json file.

Am I changing the wrong file?

I'm using another program that conflicts with port 5000.

Infor *** STARTING CODEPROJECT.AI SERVER
Infor RUNTIMES_PATH = /usr/bin/codeproject.ai-server/runtimes
Infor PREINSTALLED_MODULES_PATH = /usr/bin/codeproject.ai-server/preinstalled-modules
Infor DEMO_MODULES_PATH = /usr/bin/codeproject.ai-server/src/demos/modules
Infor EXTERNAL_MODULES_PATH = /usr/bin/CodeProject.AI-Modules
Infor MODULES_PATH = /usr/bin/codeproject.ai-server/modules
Infor PYTHON_PATH = /bin/ubuntu/%PYTHON_NAME%/venv/bin/python3
Infor Data Dir = /etc/codeproject/ai

The /etc/codeproject/ai directory has a serversettings.json file that is empty. that might be from running the docker version a year ago.

Any ideas?
Well, it seems to work now as it should. I don't know if I made a mistake, or if rebooting several times fixed it.

Sent from my iPlay_50 using Tapatalk