CodeProject.AI 2.1.6 Sever Offline?

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
The subject title is what is showing on the dashboard and the log is showing alerts cancelled because AI not responding (obviously.) According to the log CodeProject.AI stopped responding at around 10:11 AM today, before I did the update. The new version requires an uninstall of previous version (2.0.8a) prior to installing the new version, which isn't showing up as a service (new architecture?), and the setting AI tab shows "Start now" grayed out rather than stop. BTW, I am still using port 5000 which is still working on my other installations.

Looks like I pulled the trigger too soon on 2.0.8. I'm reaching out for any help with this problem. Thanks!
 

tmushy

Getting the hang of it
Joined
Oct 17, 2017
Messages
73
Reaction score
36
I recommend running it in a docker setup. You can try windows docker. I use a dedicated linux virtual machine that runs docker with codeproject. Its processing about 50,000 images a day flawlessly and has never once crashed.
I cant trust the windows install because it has failed on me a few times in the past. Out of nowhere, it just stops working

I am running 2.1.6 and its working great!
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,219
Reaction score
4,261
Location
Brooklyn, NY
Thank you that worked! The 2.1.3 didn't work, it installed quickly like the 2.1.6 did, almost like an update. 2.0.8 took a while to install and works great! Maybe something i'm doing wrong on the other versions?
Version 2.1.3 and 2.1.6 only install the main server and none of the modules, that is why it is quick. Once the server is installed the modules get installed and this can take some time. You can open up the Dashboard to see the progress of the module install.
 

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
Thank you that worked! The 2.1.3 didn't work, it installed quickly like the 2.1.6 did, almost like an update. 2.0.8 took a while to install and works great! Maybe something i'm doing wrong on the other versions?
My experience has been the exact same as yours with 2.1.6 and 2.1.3. The installation difference in time is due to the changes in the way the later versions install some of the modules (after the initial installation.)
 

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
I recommend running it in a docker setup. You can try windows docker. I use a dedicated linux virtual machine that runs docker with codeproject. Its processing about 50,000 images a day flawlessly and has never once crashed.
I cant trust the windows install because it has failed on me a few times in the past. Out of nowhere, it just stops working

I am running 2.1.6 and its working great!
I stumbled my way through the Windows Docker setup for CPAI. So far, 2.1.8-beta is working very well. Thanks again for the suggestion.
 
Joined
Jun 1, 2016
Messages
79
Reaction score
39
I have an Dell Optiplex i7-7700 with 16gigs of RAM and an Nvidia GTX 1050 Ti GPU

Any instructions on how to set up docker would be greatly appreciated if it will help me get AI back up and running.

Running BI 7.7.6.3 and back to CPAI 2.1.3
YOLOv5 6.2

AI still timing out.


Sent from my iPhone using Tapatalk Pro
 
Last edited:

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
Running CodeProject.AI Server in Docker

I read through and followed the steps contained in the link above, first uninstalling CPAI 2.0.8 and deleting its folders under Program Files and ProgramData. Under "Running a Docker container" I opted for #2 - "Save settings and downloadable modules in a folder outside the Docker container." I copied and paste of the command line:

docker run --name CodeProject.AI -d -p 32168:32168 ^
--mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\data,target=/etc/codeproject/ai ^
--mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\modules,target=/app/modules ^
codeproject/ai-server

It downloaded and installed everything. I verified the container using Desktop Docker. After restarting BI service and checking the log everything appeared to be running fine except for an error where "Alerts" and "New" were "not found," but after rebooting and restarting BI a couple of times the error went away.

That's how I got it working for me. I am still reading the material on Docker to get more up to speed than just plug and play, but I'm happy with just that much right now.
 

tmushy

Getting the hang of it
Joined
Oct 17, 2017
Messages
73
Reaction score
36
Running CodeProject.AI Server in Docker

I read through and followed the steps contained in the link above, first uninstalling CPAI 2.0.8 and deleting its folders under Program Files and ProgramData. Under "Running a Docker container" I opted for #2 - "Save settings and downloadable modules in a folder outside the Docker container." I copied and paste of the command line:

docker run --name CodeProject.AI -d -p 32168:32168 ^
--mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\data,target=/etc/codeproject/ai ^
--mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\modules,target=/app/modules ^
codeproject/ai-server

It downloaded and installed everything. I verified the container using Desktop Docker. After restarting BI service and checking the log everything appeared to be running fine except for an error where "Alerts" and "New" were "not found," but after rebooting and restarting BI a couple of times the error went away.

That's how I got it working for me. I am still reading the material on Docker to get more up to speed than just plug and play, but I'm happy with just that much right now.
Im no docker pro but here are the commands I use in order to start and upgrade if there is a new release


I do this in order. On a windows machine, you may not need the "sudo".

sudo docker ps (this will show your running containers)
sudo docker stop ############ (Stop the container. Type in the container id from the "docker ps")
sudo docker image pull codeproject/ai-server (download the latest)
sudo docker run -d --restart unless-stopped -d -p 32168:32168 codeproject/ai-server (Start the docker image and never stop it unless manually stopped).
 

tmushy

Getting the hang of it
Joined
Oct 17, 2017
Messages
73
Reaction score
36
Running CodeProject.AI Server in Docker

I read through and followed the steps contained in the link above, first uninstalling CPAI 2.0.8 and deleting its folders under Program Files and ProgramData. Under "Running a Docker container" I opted for #2 - "Save settings and downloadable modules in a folder outside the Docker container." I copied and paste of the command line:

docker run --name CodeProject.AI -d -p 32168:32168 ^
--mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\data,target=/etc/codeproject/ai ^
--mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\modules,target=/app/modules ^
codeproject/ai-server

It downloaded and installed everything. I verified the container using Desktop Docker. After restarting BI service and checking the log everything appeared to be running fine except for an error where "Alerts" and "New" were "not found," but after rebooting and restarting BI a couple of times the error went away.

That's how I got it working for me. I am still reading the material on Docker to get more up to speed than just plug and play, but I'm happy with just that much right now.
I personally would have everything running inside a docker container. This prevents the possibility of mismatched files or any dependency errors
 

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
I personally would have everything running inside a docker container. This prevents the possibility of mismatched files or any dependency errors
That's a personal choice and there is no right or wrong way. Both work. Choosing to keep everything in one container simplifies the matter. My choice is to keep the settings outside of the Docker container so that I don't have to keep resetting them after an image upgrade. I could go either way on the downloaded modules.
 

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
Im no docker pro but here are the commands I use in order to start and upgrade if there is a new release


I do this in order. On a windows machine, you may not need the "sudo".

sudo docker ps (this will show your running containers)
sudo docker stop ############ (Stop the container. Type in the container id from the "docker ps")
sudo docker image pull codeproject/ai-server (download the latest)
sudo docker run -d --restart unless-stopped -d -p 32168:32168 codeproject/ai-server (Start the docker image and never stop it unless manually stopped).
I use the GUI Windows Docker Desktop to upgrade.
 

matt_pl

n3wb
Joined
Mar 10, 2020
Messages
10
Reaction score
4
Location
Poland
What is the advantage of running CodeProjectAI in a Docker setup vs Windows install?
 

caduceus26

n3wb
Joined
Jun 11, 2021
Messages
26
Reaction score
12
Location
Florida
What is the advantage of running CodeProjectAI in a Docker setup vs Windows install?
The Docker setup allowed me to get past version 2.0.8, which was the last Windows installer that worked for me (see my initial post in this thread.) I tried the Windows installer with 2.1.3 and 2.1.6 and was never able to get it running. Tmushy recommending trying Docker in the thread and I did. I used Docker to create a 2.1.8 image and so far CPAI has run without a hitch.
 
Last edited:
Top