Click here to Skip to main content
15,909,896 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 40.7K   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

 
AnswerRe: AI not responding Pin
Sean Ewington21-Jun-23 6:13
staffSean Ewington21-Jun-23 6:13 
GeneralRe: AI not responding Pin
Member 1603396621-Jun-23 7:52
Member 1603396621-Jun-23 7:52 
GeneralRe: AI not responding Pin
Sean Ewington21-Jun-23 8:48
staffSean Ewington21-Jun-23 8:48 
GeneralRe: AI not responding Pin
Member 1603396621-Jun-23 9:56
Member 1603396621-Jun-23 9:56 
GeneralRe: AI not responding Pin
Sean Ewington22-Jun-23 3:27
staffSean Ewington22-Jun-23 3:27 
QuestionIdentification working great, then suddenly stops after 24 hours Pin
Adriano Bastos2-Jun-23 0:32
Adriano Bastos2-Jun-23 0:32 
AnswerRe: Identification working great, then suddenly stops after 24 hours Pin
Sean Ewington6-Jun-23 9:26
staffSean Ewington6-Jun-23 9:26 
QuestionAI: error 404 Pin
Stephen Griffiths 202313-May-23 12:36
Stephen Griffiths 202313-May-23 12:36 
AnswerRe: AI: error 404 Pin
Sean Ewington18-May-23 6:40
staffSean Ewington18-May-23 6:40 
GeneralRe: AI: error 404 Pin
Stephen Griffiths 202319-May-23 16:07
Stephen Griffiths 202319-May-23 16:07 
GeneralRe: AI: error 404 Pin
Sean Ewington23-May-23 4:40
staffSean Ewington23-May-23 4:40 
GeneralRe: AI: error 404 Pin
EdgeCon 202312-Aug-23 16:16
EdgeCon 202312-Aug-23 16:16 
QuestionFacing the same problem... Pin
Wb M22-Apr-23 4:47
Wb M22-Apr-23 4:47 
QuestionI can't get the service to run at all Pin
Goat Rides Bikes29-Mar-23 11:24
Goat Rides Bikes29-Mar-23 11:24 
AnswerRe: I can't get the service to run at all Pin
Member 160217425-Jun-23 5:20
Member 160217425-Jun-23 5:20 
GeneralRe: I can't get the service to run at all Pin
Member 160217425-Jun-23 6:58
Member 160217425-Jun-23 6:58 
GeneralRe: I can't get the service to run at all Pin
Sean Ewington8-Jun-23 10:43
staffSean Ewington8-Jun-23 10:43 

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.