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
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.
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.
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.
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
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%.
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
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.
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
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.
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.