codeproject / CodeProject.AI-Server

CodeProject.AI Server is a self contained service that software developers can include in, and distribute with, their applications in order to augment their apps with the power of AI.
Other
574 stars 136 forks source link

Trying to update Docker pre-installed modules: "A 'pre-installed' module can't be downloaded" #59

Closed melyux closed 8 months ago

melyux commented 11 months ago

Area of Concern

Describe the bug Pre-installed modules on the base Docker image (Face Processing, Object Detection (YOLOv5 .NET), Object Detection (YOLOv5 6.2)) can't be updated. (They also can't be removed, but that's a different issue.)

Expected behavior I should be able to update the pre-installed modules.

Screenshots

image

Your System (please complete the following information):

AKHwyJunkie commented 10 months ago

FWIW, I'm seeing this exact same thing. Also running Docker instance. I'm running the latest available version, 2.1.11 Beta. I see the same error on both the modules I might be able to update, FaceProcessing and Yolov5.6.2. Full error logs from system are as follows:

11:49:39:Preparing to install module 'ObjectDetectionYolo'
11:49:39:Module description for 'ObjectDetectionYolo' is invalid. A 'pre-installed' module can't be downloaded
11:57:57:Preparing to install module 'FaceProcessing'
11:57:57:Module description for 'FaceProcessing' is invalid. A 'pre-installed' module can't be downloaded

In the FWIW department, I can also demonstrate this in 2.1.9 as well. It occurs on both active and inactive modules, same exact error. I have tried stopping the modules and still get the same error. I also didn't see the modules update in my test migration from 2.1.9 to 2.1.11 (full docker image re-pull), but I'm not sure if that would be expected behavior.

I did see a somewhat similar issue in the CPAI forums, but this appeared to be a Windows install and the fixes didn't work for me. I'll keep poking at it and will update if I find a workaround.

matthewDDennis commented 10 months ago

Could you try and install a different module. If this fails the same way, it may be that the CodeProject.AI Server is not able to connect to the internet to download the modules. How did you start the Docker Container?

melyux commented 10 months ago

Could you try and install a different module.

If this fails the same way, it may be that the CodeProject.AI Server is not able to connect to the internet to download the modules.

How did you start the Docker Container?

Other modules download and install correctly

sanderdewit commented 10 months ago

same issue here on multiple devices running Docker.

AKHwyJunkie commented 10 months ago

Could you try and install a different module.

I also tested installing a new module on my instances, works fine in both v2.1.9 and v2.1.11. In my case, I'm using Docker Compose to start my instance. Config file as follows:

version: '3.3'
services:
    CodeProject.AI-Server:
        ports:
            - '32168:32168'
        restart: unless-stopped
        volumes:
            - '/etc/codeproject/ai:/etc/codeproject/ai'
            - '/opt/codeproject/ai:/app/modules'
            - '/app/preinstalled-modules/ObjectDetectionYolo/custom-models:/app/preinstalled-modules/ObjectDetectionYolo/custom-models'
        image: "codeproject/ai-server:latest"
sanderdewit commented 10 months ago

I can confirm, installing other modules work fine.

xm4rcell0x commented 10 months ago

i have the same issue!

sanderdewit commented 10 months ago

when removing the modules from preinstalled folder and installing them via the gui, it works fine.

ChrisMaunder commented 8 months ago

This has been fixed in the latest version