Click here to Skip to main content
15,884,099 members
Articles / CodeProject.AI

Solutions for Common Issues with Blue Iris and CodeProject.AI Server

Rate me:
Please Sign up or sign in to vote.
3.00/5 (3 votes)
4 Nov 2022CPOL6 min read 37.9K   6   42
This article provides a single location for all Blue Iris and CodeProject.AI Server issues and their solutions.

I've been reading through the Blue Iris Facebook group, and the forums on Blue Iris, CodeProject.AI Server, and ipcamtalk. Every forum has different users reporting different issues and someone usually swoops in to help. But there is no central location for common issues and their solutions for users who are using Blue Iris and CodeProject.AI Server.

This article is meant to be a collection of all those issues and their solutions, for the more recent versions of Blue Iris and CodeProject.AI Server. This article will be continually added to and updated, in hopes to have a single location for all Blue Iris and CodeProject.AI Server issues and their solutions.

Error List

Unable to load model at C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\assets\yolov5m.pt

This issue comes from the CodeProject.AI Server forums. In this post, the user encountered the following error on their CodeProject.AI Server console.

1:08:29 PM: Object Detection (YOLO): Unable to load model at C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\assets\yolov5m.pt (CUDA error: no kernel image is available for execution on the device
1:08:29 PM: Object Detection (YOLO): Unable to create YOLO detector for model yolov5m

Image 1

The user was using an NVIDIA GeForce GTX 660, with driver version 30.0.14.73481. This card has compute capability 3.0 which, at the time of the message's posting was below what CodeProject.AI Server supported. However, this user was also trying to use YOLO detection, which only works for custom models. The fix for this is to go to the CodeProject.AI Server dashboard, stop Object Detection (YOLO) by clicking the three dots next to it on the dashboard, selecting Stop, then going to Object Detection (.NET), clicking on the the three dots and choosing Start.

CodeProject.AI Server log shows requests every minute or less when there is no motion detection

This issue also comes from theCodeProject.AI Server forums. In this instance the user was seeing requests in the CodeProject.AI Server log every minute or less when there was no motion detection.

Image 2

Within Blue Iris there is an option within the AI tab in the camera settings panel called "Detect/Ignore static objects" where Blue Iris checks for static objects. If this box is checked, there will be a steady stream of requests in the CodeProject.AI Server log, because Blue Iris is constantly checking for static objects. Unchecking the "Detect/Ignore static objects" box and hitting OK resolves the issue.

Browser cannot open port 321678

In this issue on the CodeProject.AI Server forum, a user could not access http://localhost:32168 and was unable to launch CodeProject.AI Server in their browser.

Image 3

To resolve this issue, a user recommended using netstat to see if that port was listening. The user was using Windows. To do this, hit the Win + R keys on the keyboard to open the Run window, then type cmd to open the CMD prompt. From there, type netstat -ano -p tcp. This opens a list of all ports and indicates which ports are listening.

Image 4

For this user, port 32168 did not show up on the list at all. The fix was to go to Windows services and start or restart CodeProject.AI Server. To do this, hit the Win + R keys on the keyboard to open the Run window, then type services.msc. This opens Windows services. Scroll down to CodeProject.AI Server and hit the "Start Service" button. CodeProject.AI Server then launches successfully.

CodeProject.AI Server and Python using a lot of system resources

Image 5

This issue comes fom the Blue Iris User Group on Facebook (note: it is a private group). This user reported that their CPU system resources were hitting 20%.

Image 6

They provided an image of their CodeProject.AI Server dashboard and they were running both Object Detection (.NET) and Object Detection (YOLO). These two modules were not meant to be used in unison. The solution is simply to turn Object Detection (YOLO) off. Go to the CodeProject.AI Server dashboard, click the three dots next to it on the dashboard, and select Stop.

Confirmed but nothing detected

Image 7

This issue comes from the Blue Iris forums. In this instance Blue Iris detects motion but does not recognize anything. Blue Iris logs it as "Confirmed", but according to CodeProject.AI Server, nothing is found. The user wants to know why CodeProject.AI Server does not cancel this if nothing is found.

Image 8

The solution comes from the ipcamtalk forums. In the global AI tab on the camera settings, there is a field "To cancel." Using "Nothing found:0" in the "To cancel" box eliminates (green) "Nothing found" from the Confirmed alerts list. It forces the AI to search through all the images in an alert to select the best one.

CodeProject.AI Server in Docker Container Doesn't Respond to Requests

In this setup, a user has CodeProject.AI running in a Docker container. CodeProject.AI loads, the web interface can be accessed, it can ping the Blue Iris server, but CodeProject.AI in both the Explorer and Blue Iris, just time out for detection requests and generate no logs.

If this is happening for you, here's a few items you might try:

Are there any firewall rules stopping POST requests to the CodeProject.AI server? You can obviously make GET calls in order to view the UI, and get updates.

  • If you see a decent set of logs then it means the backend modules can contact the front end server
  • If you can see any logs then it means the machine you're running the Explorer on can access the CodeProject.AI machine
  • Move the log detail slider all the way to the right to show Trace. If you see any "request from queue processing" type messages then it means requests are getting to the modules.
  • If you're seeing timeouts then either the modules are having issues returning values, or the modules are simply timing out does the dashboard show a object detection module running (green band)?
  • If you're at this point, maybe try stopping one object detection module and switching to another (eg try the .NET instead of the Python or vice versa)

How Do I Resolve Error 500

Image 9

With CodeProject.AI Server 2.1.6, we saw a number of Blue Iris users report getting Error 500 in their Blue Iris logs.

After a lot of error reporting (thank you all!) we've been working with Ken at Blue Iris and are hopeful to have a resolution for error 500.

Short version: try the latest Blue Iris release, version 5.7.5.6. Should resolve it.

Long version: The error 500 issue revolves around how Blue Iris processes Face Processing requests and responses. There's no "error," rather Blue Iris is passing images to face recognition when there's no detectable face, and CodeProject.AI returns success = false (and code = 500) as a result. The call was made, the image processed, but the recognition processing failed because there's no face to recognise.

Purely an issue around what constitutes success and failure.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Writer CodeProject
Canada Canada
Sean Ewington is the Content Manager for CodeProject.

His background in programming is primarily C++ and HTML, but has experience in other, "unsavoury" languages.

He loves movies, and likes to say inconceivable often, even if it does not mean what he thinks it means.

Comments and Discussions

 
QuestionAI not dectecting any image Pin
Member 1608944110-Sep-23 6:18
Member 1608944110-Sep-23 6:18 
AnswerRe: AI not dectecting any image Pin
Sean Ewington11-Sep-23 6:13
staffSean Ewington11-Sep-23 6:13 
GeneralRe: AI not dectecting any image Pin
Member 1608944111-Sep-23 11:58
Member 1608944111-Sep-23 11:58 
GeneralRe: AI not dectecting any image Pin
Member 1608944111-Sep-23 11:57
Member 1608944111-Sep-23 11:57 
GeneralRe: AI not dectecting any image Pin
Sean Ewington11-Sep-23 12:38
staffSean Ewington11-Sep-23 12:38 
GeneralRe: AI not dectecting any image Pin
Member 1608944111-Sep-23 15:25
Member 1608944111-Sep-23 15:25 
GeneralRe: AI not dectecting any image Pin
Sean Ewington12-Sep-23 5:50
staffSean Ewington12-Sep-23 5:50 
GeneralRe: AI not dectecting any image Pin
Member 1608944112-Sep-23 13:52
Member 1608944112-Sep-23 13:52 
GeneralRe: AI not dectecting any image Pin
Sean Ewington13-Sep-23 5:32
staffSean Ewington13-Sep-23 5:32 
GeneralRe: AI not dectecting any image Pin
Member 1608944113-Sep-23 13:24
Member 1608944113-Sep-23 13:24 
GeneralRe: AI not dectecting any image Pin
Member 1608944113-Sep-23 16:01
Member 1608944113-Sep-23 16:01 
GeneralRe: AI not dectecting any image Pin
Sean Ewington14-Sep-23 5:41
staffSean Ewington14-Sep-23 5:41 
BugStarting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
seashellz5912-Jul-23 20:03
seashellz5912-Jul-23 20:03 
GeneralRe: Starting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
Sean Ewington10-Aug-23 8:05
staffSean Ewington10-Aug-23 8:05 
GeneralRe: Starting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
seashellz5910-Aug-23 11:10
seashellz5910-Aug-23 11:10 
GeneralRe: Starting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
Sean Ewington10-Aug-23 11:37
staffSean Ewington10-Aug-23 11:37 
GeneralRe: Starting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
seashellz5910-Aug-23 14:05
seashellz5910-Aug-23 14:05 
GeneralRe: Starting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
seashellz5914-Aug-23 0:18
seashellz5914-Aug-23 0:18 
GeneralRe: Starting the AI service takes 30+ minutes, and never stabilizes if Blue Iris keeps making requests during this period Pin
Sean Ewington14-Aug-23 10:14
staffSean Ewington14-Aug-23 10:14 
BugCUDA Modules not detecting anything Pin
Member 1414705820-Jun-23 13:28
Member 1414705820-Jun-23 13:28 
GeneralRe: CUDA Modules not detecting anything Pin
Sean Ewington23-Jun-23 6:12
staffSean Ewington23-Jun-23 6:12 
GeneralRe: CUDA Modules not detecting anything Pin
Member 1414705823-Jun-23 6:24
Member 1414705823-Jun-23 6:24 
GeneralRe: CUDA Modules not detecting anything Pin
Sean Ewington23-Jun-23 6:34
staffSean Ewington23-Jun-23 6:34 
GeneralRe: CUDA Modules not detecting anything Pin
Member 1414705823-Jun-23 9:34
Member 1414705823-Jun-23 9:34 
QuestionAI not responding Pin
Member 1603396620-Jun-23 12:22
Member 1603396620-Jun-23 12:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.