Be Careful with CodeProject AI 2.1.0

2.1.1 on unRaid Docker kept throwing me this error "ObjectDetectionNet.dll: Unable to get request from objectdetection_queue for ObjectDetectionNet". Rolling back to 2.0.8 for now

I nuked the docker container as the LPR module was borked and re-installed 2.1.1 BETA. Working fine now with BI and AI Tool.
 
Last edited:
2.1.1 on unRaid Docker kept throwing me this error "ObjectDetectionNet.dll: Unable to get request from objectdetection_queue for ObjectDetectionNet". Rolling back to 2.0.8 for now

I nuked the docker container as the LPR module was borked and re-installed 2.1.1 BETA. Working fine now with BI and AI Tool.

What does "nuked the docker container" mean? I uninstalled 2.0.8 before installing 2.1.1 thinking that'd be a clean install. Didn't work.

Thanks,
Mike
 
What does "nuked the docker container" mean? I uninstalled 2.0.8 before installing 2.1.1 thinking that'd be a clean install. Didn't work.

Thanks,
Mike

Uninstalled the container then deleted the appdata. This is on unRaid docker which is Linux.
 
Oh. I'm on Windows and not using Docker. I can install 2.1.1 and it seems to work for maybe one trigger and then the server stops on its own and has to be restarted. I don't think 2.1.1 is even installing properly. 2.0.8 installs for like 10 minutes and you can see a lot of modules installing in a command prompt. 2.1.1 finishes in like 60 seconds and you don't see any of that: like the install isn't going all the way through.

Mike
 
Oh. I'm on Windows and not using Docker. I can install 2.1.1 and it seems to work for maybe one trigger and then the server stops on its own and has to be restarted. I don't think 2.1.1 is even installing properly. 2.0.8 installs for like 10 minutes and you can see a lot of modules installing in a command prompt. 2.1.1 finishes in like 60 seconds and you don't see any of that: like the install isn't going all the way through.

Mike
With version 2.1.1 none of the module are install during the install. They get installed once the service starts up. each module will take several minutes to install.
 
With version 2.1.1 none of the module are install during the install. They get installed once the service starts up. each module will take several minutes to install.

Interesting. I'm not seeing that behavior. When I start the service, it doesn't appear to install anything and I tried to verify that by looking in the log file.
 
2.1.1 is giving me the same issues 2.1.0 was giving me. 2.0.8 is reinstalled.

I've given up and gone back to 2.0.8 as well. I've spent enough time/tries getting 2.1.1 to work and it just doesn't. I'll wait until they have a version that actually properly/entirely installs like 2.0.8 instead of doing a partial install and quitting.

Mike
 
  • Like
Reactions: Skinny1
You alert folder generally can be set very small 1gb or less because nothing is actually stored in that folder unless you store high res alert images - which are not needed unless you have a specific case use.
I have the option to save a high res jpg turned ON in the "trigger" tab, which saves a jpg in the Alerts folder, because as far as I can tell that's the only way to get Pushover to function properly with BI. I did try to use the similar option to save a jpg from the "RECORD" tab instead, and save it to the "stored" folder, but I couldn't get Pushover to see those jpgs and alert properly (after changing the curl parameters to reflect the change in the alerts tab). Is there a problem saving the jpgs to "alerts"?
 
I have the option to save a high res jpg turned ON in the "trigger" tab, which saves a jpg in the Alerts folder, because as far as I can tell that's the only way to get Pushover to function properly with BI. I did try to use the similar option to save a jpg from the "RECORD" tab instead, and save it to the "stored" folder, but I couldn't get Pushover to see those jpgs and alert properly (after changing the curl parameters to reflect the change in the alerts tab). Is there a problem saving the jpgs to "alerts"?
You dont need to save an alert image for pushover anymore. @jaydeel posted an update here. Send Pushover notifications with pictures and hyperlinks

That said, you can still use save high res alert - just keep the folder small 1gb or less. so it doesn't contain 200,000 files. The problem arises when the database has to deal with many hundreds of thousands of files.
 
You dont need to save an alert image for pushover anymore. @jaydeel posted an update here. Send Pushover notifications with pictures and hyperlinks

That said, you can still use save high res alert - just keep the folder small 1gb or less. so it doesn't contain 200,000 files. The problem arises when the database has to deal with many hundreds of thousands of files.

thanks, I will make sure to keep that folder size small. Also, I looked at that post, and there is an update mentioning a caveat from Ken about that (post #303 in same thread: Send Pushover notifications with pictures and hyperlinks

I did just test not saving a jpg to alerts, and pushover is working for me, so I will try that for a while. Thanks!
 
  • Like
Reactions: fenderman
You dont need to save an alert image for pushover anymore. @jaydeel posted an update here. Send Pushover notifications with pictures and hyperlinks

With Blue Iris v5.7.4.2, I've just confirmed under these requirements:
if you use &ALERT_PATH in an email, sms, push, etc. AND the alert is not already being saved as a JPG file
that macro &ALERT_PATH is still returning the temp file, like temp_{camname}.jpg,
For details, click here.

Interesting note...
If you try to watch this file being created live (via the Alerts folder in Windows File Explorer), then you may be disappointed if the folder has 1000s of files (due to slow refresh times). However, you can easily observe its creation using NirSoft utility FolderChangesView (download).

Set it up like this...
1681944329113.png

Then you should see a result like the screenshot below when Blue Iris creates the image.
BTW, the 'Modified Count' value will increment every time the image is recreated.
1681944358956.png
 
Last edited:
  • Like
Reactions: fenderman and rdxny
I guess that's why mine still works, good to know. Saves creating lots of unnecessary high res jpg files to the alerts folder. Thanks
 
I just got 2.1.9 working with BI today. I figured out that (at least for me) what works is to uninstall the old version of Codeproject, delete the Codeproject folders from \ProgramData and \Program Files and then install the new version. But most importantly after the (quick) install of the new version of CP AI, LET IT SIT for a LONG time before you start Blue Iris again. Since the latest CP AI installs addons the first time it runs, when the installation is complete, it is not really complete for like 10-15 minutes because the installer fires off the service and it is still downloading what it needs during that first startup. During that time, if you start BI while that first run is still downloading addons to CP AI, BI interferes with CP trying to download the addons and interrupts it. After that happens, CP AI will not run and is permanently damaged, period, and has to be reinstalled.
 
Unfortunately no amount of waiting works for me. Uninstalling, reinstalled and starting any of the modules result in these errors.


Code:
15:33:18:Server: This is the latest version
15:34:23:Preparing to install module 'YOLOv5-3.1'
15:34:23:Downloading module 'YOLOv5-3.1'
15:34:23:Installing module 'YOLOv5-3.1'
15:34:23:YOLOv5-3.1:              Installing CodeProject.AI Analysis Module               
15:34:23:YOLOv5-3.1: ========================================================================
15:34:23:YOLOv5-3.1:                    CodeProject.AI Installer                             
15:34:23:YOLOv5-3.1: ========================================================================
15:34:23:YOLOv5-3.1: Checking GPU support                                                 
15:34:23:YOLOv5-3.1: CUDA Present...False
15:34:23:YOLOv5-3.1: Allowing GPU Support: Yes
15:34:23:YOLOv5-3.1: Allowing CUDA Support: No
15:34:23:YOLOv5-3.1: General CodeProject.AI setup                                         
15:34:23:YOLOv5-3.1: Creating Directories...Done
15:34:23:YOLOv5-3.1: Installing module YOLOv5-3.1                                         
15:34:23:YOLOv5-3.1: Installing python.= in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python.=
15:34:23:YOLOv5-3.1: Checking for python.= download...Present
15:34:23:YOLOv5-3.1: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python.=\python.exe"' is not recognized as an internal or external command,
15:34:23:YOLOv5-3.1: operable program or batch file.
15:34:24:YOLOv5-3.1: Creating Virtual Environment...Done
15:34:24:YOLOv5-3.1: The system cannot find the path specified.
15:34:24:YOLOv5-3.1: Enabling our Virtual Environment...Done
15:34:24:YOLOv5-3.1: The system cannot find the path specified.
15:34:24:YOLOv5-3.1: Confirming we have Python ...
15:34:24:Module YOLOv5-3.1 installed successfully.
15:34:24:Module YOLOv5-3.1 not configured to AutoStart.
15:34:24:Installer exited with code 255
15:34:24:Unknown response from server


Code:
5:23:29:Error trying to start Object Detection (YOLOv5 .NET) (ObjectDetectionNet.exe)
15:23:29:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet\ObjectDetectionNet.exe' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet'. The system cannot find the file specified.
15:23:29:   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
15:23:29:Please check the CodeProject.AI installation completed successfully
 
Unfortunately no amount of waiting works for me. Uninstalling, reinstalled and starting any of the modules result in these errors.


Code:
15:33:18:Server: This is the latest version
15:34:23:Preparing to install module 'YOLOv5-3.1'
15:34:23:Downloading module 'YOLOv5-3.1'
15:34:23:Installing module 'YOLOv5-3.1'
15:34:23:YOLOv5-3.1:              Installing CodeProject.AI Analysis Module              
15:34:23:YOLOv5-3.1: ========================================================================
15:34:23:YOLOv5-3.1:                    CodeProject.AI Installer                            
15:34:23:YOLOv5-3.1: ========================================================================
15:34:23:YOLOv5-3.1: Checking GPU support                                                
15:34:23:YOLOv5-3.1: CUDA Present...False
15:34:23:YOLOv5-3.1: Allowing GPU Support: Yes
15:34:23:YOLOv5-3.1: Allowing CUDA Support: No
15:34:23:YOLOv5-3.1: General CodeProject.AI setup                                        
15:34:23:YOLOv5-3.1: Creating Directories...Done
15:34:23:YOLOv5-3.1: Installing module YOLOv5-3.1                                        
15:34:23:YOLOv5-3.1: Installing python.= in C:\Program Files\CodeProject\AI\runtimes\bin\windows\python.=
15:34:23:YOLOv5-3.1: Checking for python.= download...Present
15:34:23:YOLOv5-3.1: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python.=\python.exe"' is not recognized as an internal or external command,
15:34:23:YOLOv5-3.1: operable program or batch file.
15:34:24:YOLOv5-3.1: Creating Virtual Environment...Done
15:34:24:YOLOv5-3.1: The system cannot find the path specified.
15:34:24:YOLOv5-3.1: Enabling our Virtual Environment...Done
15:34:24:YOLOv5-3.1: The system cannot find the path specified.
15:34:24:YOLOv5-3.1: Confirming we have Python ...
15:34:24:Module YOLOv5-3.1 installed successfully.
15:34:24:Module YOLOv5-3.1 not configured to AutoStart.
15:34:24:Installer exited with code 255
15:34:24:Unknown response from server


Code:
5:23:29:Error trying to start Object Detection (YOLOv5 .NET) (ObjectDetectionNet.exe)
15:23:29:An error occurred trying to start process 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet\ObjectDetectionNet.exe' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionNet'. The system cannot find the file specified.
15:23:29:   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at CodeProject.AI.API.Server.Frontend.ModuleProcessServices.StartProcess(ModuleConfig module)
15:23:29:Please check the CodeProject.AI installation completed successfully
There was some server issues where the file get downloaded from, it should be fixed now