Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 6 tasks
melyux opened this issue Aug 19, 2023 · 9 comments
Closed
2 of 6 tasks

Comments

@melyux
Copy link

melyux commented Aug 19, 2023

Area of Concern

  • Server
  • Behaviour of one or more Modules [provide name(s), e.g. ObjectDetectionYolo]
  • Installer
  • Runtime [e.g. Python3.7, .NET]
  • Module packages [e.g. PyTorch)
  • Something else

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):

  • CodeProject.AI Server version: latest
  • OS: Docker
  • System RAM: 16GB
  • GPU: Intel internal
@AKHwyJunkie
Copy link

AKHwyJunkie commented Aug 26, 2023

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
Copy link
Contributor

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
Copy link
Author

melyux commented Aug 29, 2023

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
Copy link

same issue here on multiple devices running Docker.

@AKHwyJunkie
Copy link

AKHwyJunkie commented Aug 29, 2023

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
Copy link

I can confirm, installing other modules work fine.

@xm4rcell0x
Copy link

i have the same issue!

@sanderdewit
Copy link

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

@ChrisMaunder
Copy link
Contributor

This has been fixed in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants