Unable to Start CodeProject.AI Server Due To Space in ImagePath
-
After installing CodeProject AI Server on my Windows 10 machine for use with Blue Iris Security, I was unable to get the CodeProject AI Server service to start. I eventually was able to get it to start by modifying the CodeProject AI Server ImagePath in Windows Registry. I had to add quotes to the ImagePath ("C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"). I think the reason I had to add quotes to the path is because there is a space within the path string between "Program" and "Files." The CodeProject AI installer I used was CodeProject.AI.Server-1.5.0.exe. This installer doesn't include quotes around the ImagePath. I imagine that most systems don't encounter this problem even without the quotes. One of my installations did encounter the problem and one didn't, even though the ImagePath was identical on both machines. I think the installer should include the quotes by default since the quotes will prevent this problem on machines where there is a conflict in the path. On the machine where I encountered this problem, now I am experiencing repeated restarts of the CodeProject AI Server service. I am wondering if this is somehow related to other calls made by the program to the same path. If so, maybe those calls should include quotes around the path. This is just a guess because I have not had much time to look into the restarts, yet. I would suggest that maybe the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. Disclaimer: I probably don't need to state the obvious, but I am not a programmer.
-
After installing CodeProject AI Server on my Windows 10 machine for use with Blue Iris Security, I was unable to get the CodeProject AI Server service to start. I eventually was able to get it to start by modifying the CodeProject AI Server ImagePath in Windows Registry. I had to add quotes to the ImagePath ("C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"). I think the reason I had to add quotes to the path is because there is a space within the path string between "Program" and "Files." The CodeProject AI installer I used was CodeProject.AI.Server-1.5.0.exe. This installer doesn't include quotes around the ImagePath. I imagine that most systems don't encounter this problem even without the quotes. One of my installations did encounter the problem and one didn't, even though the ImagePath was identical on both machines. I think the installer should include the quotes by default since the quotes will prevent this problem on machines where there is a conflict in the path. On the machine where I encountered this problem, now I am experiencing repeated restarts of the CodeProject AI Server service. I am wondering if this is somehow related to other calls made by the program to the same path. If so, maybe those calls should include quotes around the path. This is just a guess because I have not had much time to look into the restarts, yet. I would suggest that maybe the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. Disclaimer: I probably don't need to state the obvious, but I am not a programmer.
Thanks for the report. A quick look around shows this issue could be an issue with the Windows MSI installer. We're wrapping the paths with quotes, but I've seen one developer manually go back and adjust the reg entry within the installer as a safeguard (just like you did manually). We've added this to our TODO list.
cheers Chris Maunder
-
After installing CodeProject AI Server on my Windows 10 machine for use with Blue Iris Security, I was unable to get the CodeProject AI Server service to start. I eventually was able to get it to start by modifying the CodeProject AI Server ImagePath in Windows Registry. I had to add quotes to the ImagePath ("C:\Program Files\CodeProject\AI\Server\CodeProject.AI.Server.exe"). I think the reason I had to add quotes to the path is because there is a space within the path string between "Program" and "Files." The CodeProject AI installer I used was CodeProject.AI.Server-1.5.0.exe. This installer doesn't include quotes around the ImagePath. I imagine that most systems don't encounter this problem even without the quotes. One of my installations did encounter the problem and one didn't, even though the ImagePath was identical on both machines. I think the installer should include the quotes by default since the quotes will prevent this problem on machines where there is a conflict in the path. On the machine where I encountered this problem, now I am experiencing repeated restarts of the CodeProject AI Server service. I am wondering if this is somehow related to other calls made by the program to the same path. If so, maybe those calls should include quotes around the path. This is just a guess because I have not had much time to look into the restarts, yet. I would suggest that maybe the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. Disclaimer: I probably don't need to state the obvious, but I am not a programmer.
the CodeProject AI Server program should be broadly evaluated for instances where this type of path conflict could be a problem. True.
-
Thanks for the report. A quick look around shows this issue could be an issue with the Windows MSI installer. We're wrapping the paths with quotes, but I've seen one developer manually go back and adjust the reg entry within the installer as a safeguard (just like you did manually). We've added this to our TODO list.
cheers Chris Maunder
MSI installer. Something to consider more. Thank you. :thumbsup: