CodeProject.AI on Ubuntu

Cor K Dikland

Getting the hang of it
Apr 25, 2019
104
37
Ontario, Canada
Anyone getting this package i(v2.9.5 Ubuntu X64) installed under Ubuntu? I am currently running Ubuntu V24.04 and got through most of the C...AI install but it bombed during the "Processing Modules" section ending with the error "This module cant installed on this system"
No idea which "This module" is

Anyone?

SOLUTION: CodeProject.AI on Ubuntu
 
Last edited:
Anyone getting this package i(v2.9.5 Ubuntu X64) installed under Ubuntu? I am currently running Ubuntu V24.04 and got through most of the C...AI install but it bombed during the "Processing Modules" section ending with the error "This module cant installed on this system"
No idea which "This module" is

Anyone?

I just successfully installed 2.9.5 Ubuntu x64 today on ubuntu VM with steps below:

## Install GPU driver, toolkit, .net SDK... first before execute commands below.

wget https://codeproject-ai-bunny.b-cdn.net/server/installers/linux/codeproject.ai-server_2.9.5_Ubuntu_x64.zip
unzip codeproject.ai-server_2.9.5_Ubuntu_x64.deb
sudo dpkg -i codeproject.ai-server_2.9.5_Ubuntu_x64.deb
bash /usr/bin/codeproject.ai-server-2.9.5/start.sh

#Wait for Face, YOLOs (by default) installations to finish.
#Check with IP:32168 to make sure CPA server is up

pushd "/usr/bin/codeproject.ai-server-2.9.5/server" && bash ../setup.sh && popd
cd /etc/systemd/system/

#Check for file name codeproject.ai-server.service

sudo systemctl daemon-reload
sudo systemctl enable codeproject.ai-server.service
sudo systemctl start codeproject.ai-server.service

# to auto start codeproject server after reboot
# you might have to execute sudo dpkg -r codeproject.ai-server to remove previous install.

Hope this helps.
 
  • Like
Reactions: Cor K Dikland
I just successfully installed 2.9.5 Ubuntu x64 today on ubuntu VM with steps below:

## Install GPU driver, toolkit, .net SDK... first before execute commands below.

wget https://codeproject-ai-bunny.b-cdn.net/server/installers/linux/codeproject.ai-server_2.9.5_Ubuntu_x64.zip
unzip codeproject.ai-server_2.9.5_Ubuntu_x64.deb
sudo dpkg -i codeproject.ai-server_2.9.5_Ubuntu_x64.deb
bash /usr/bin/codeproject.ai-server-2.9.5/start.sh

#Wait for Face, YOLOs (by default) installations to finish.
#Check with IP:32168 to make sure CPA server is up

pushd "/usr/bin/codeproject.ai-server-2.9.5/server" && bash ../setup.sh && popd
cd /etc/systemd/system/

#Check for file name codeproject.ai-server.service

sudo systemctl daemon-reload
sudo systemctl enable codeproject.ai-server.service
sudo systemctl start codeproject.ai-server.service

# to auto start codeproject server after reboot
# you might have to execute sudo dpkg -r codeproject.ai-server to remove previous install.

Hope this helps.
This look very similar to what I did EXCEPT bash /usr/bin/codeproject.ai-server-2.9.5/start.sh which may explain why the modules didnt work. Will try your steps above later today. Thanks for your input


IT WORKED!!!! For anyone else trying this follow the above instruction exactly as shown.
 
Last edited:
I just successfully installed 2.9.5 Ubuntu x64 today on ubuntu VM with steps below:
For unrelated reasons I had to reinstall Ubuntu and now, for the likes of me, cannot get codeproject.ai re-installed.
I followed your steps above AFTER I installed net
sudo apt update && sudo apt install dotnet-sdk-8.0
Version 7.0 doesnt appear to exists so I replaced it with 8.0 This is what I did the first time and all worked fine.

My problems appears to start with
bash /usr/bin/codeproject.ai-server-2.9.5/start.sh
Here is the output from the above

you must install or update .NET to run this application.

App: /usr/bin/codeproject.ai-server-2.9.5/server/CodeProject.AI.Server.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '9.0.0' (x64)
.NET location: /usr/lib/dotnet/

The following frameworks were found:
8.0.11 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Learn more:

To install missing framework, download:
[28653:28653:1228/134251.690409:ERROR:zygote_host_impl_linux.cc(101)] Running as root without --no-sandbox is not supported. See .

It seems to suggest .NET is not installed but when I try to re-install it it says everything is already there.
Can you make any sense from the above?
 
For unrelated reasons I had to reinstall Ubuntu and now, for the likes of me, cannot get codeproject.ai re-installed.
I followed your steps above AFTER I installed net
sudo apt update && sudo apt install dotnet-sdk-8.0
Version 7.0 doesnt appear to exists so I replaced it with 8.0 This is what I did the first time and all worked fine.

My problems appears to start with
bash /usr/bin/codeproject.ai-server-2.9.5/start.sh
Here is the output from the above



It seems to suggest .NET is not installed but when I try to re-install it it says everything is already there.
Can you make any sense from the above?
I think 2.9.5 requires .net SDK 9.0.
Please run the below to install .net SDK 9.0 before install CPAI 2.9.5:

#########################
# Remove all .NET packages
sudo apt-get remove 'dotnet*'
sudo apt-get remove 'aspnetcore*'
# Delete PMC repository from APT, by deleting the repo .list file
rm /etc/apt/sources.list.d/microsoft-prod.list
apt-get update
apt install software-properties-common
sudo add-apt-repository ppa:dotnet/backports
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-9.0
###########################
 
  • Love
Reactions: Cor K Dikland
I think 2.9.5 requires .net SDK 9.0.
Please run the below to install .net SDK 9.0 before install CPAI 2.9.5:

#########################
# Remove all .NET packages
sudo apt-get remove 'dotnet*'
sudo apt-get remove 'aspnetcore*'
# Delete PMC repository from APT, by deleting the repo .list file
rm /etc/apt/sources.list.d/microsoft-prod.list
apt-get update
apt install software-properties-common
sudo add-apt-repository ppa:dotnet/backports
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-9.0
###########################
:DYou are a scholar and a genius. Thank you so much for all your help. I am forever in your debt.:)
 
I don't often comment in boards but had to this time to pass on my thanks for hxhoang, your advice above has fixed the problems I was having. Many Thanks! and I second what Cor said, you truly are a Scholar and Genius!