#Machine learning container stopping after startup

1 messages · Page 1 of 1 (latest)

obsidian shoal
#

Hi there, I'm trying to set up immich ML on my PC, away from main immich server. When I start the containers, they start up fine, but immidiately shutdown?

cat docker-compose.yml        
name: immich_remote_ml

services:
  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    #extends:
    #    file: hwaccel.ml.yml
    #    service: openvino # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    restart: always
    ports:
      - 3003:3003

volumes:
  model-cache:

❯ sudo docker compose up -d                        
[+] Running 2/2
 ✔ Network immich_remote_ml_default   Created                                                                                                                                                                                          0.3s 
 ✔ Container immich_machine_learning  Started                                                                                                                                                                                          0.4s
sand sableBOT
#

:wave: Hey @obsidian shoal,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

obsidian shoal
#
❯ sudo docker ps -a
CONTAINER ID   IMAGE                                                COMMAND                CREATED         STATUS                            PORTS                                       NAMES
6d45534ac1e4   ghcr.io/immich-app/immich-machine-learning:release   "tini -- ./start.sh"   3 seconds ago   Up 3 seconds (health: starting)   0.0.0.0:3003->3003/tcp, :::3003->3003/tcp   immich_machine_learning

❯ sudo docker logs -f immich_machine_learning
[09/01/24 15:15:02] INFO     Starting gunicorn 22.0.0                           
[09/01/24 15:15:02] INFO     Listening at: http://[::]:3003 (10)                
[09/01/24 15:15:02] INFO     Using worker: app.config.CustomUvicornWorker       
[09/01/24 15:15:02] INFO     Booting worker with pid: 11                        
[09/01/24 15:15:05] INFO     Started server process [11]                        
[09/01/24 15:15:05] INFO     Waiting for application startup.                   
[09/01/24 15:15:05] INFO     Created in-memory cache with unloading after 300s  
                             of inactivity.                                     
[09/01/24 15:15:05] INFO     Initialized request thread pool with 16 threads.   
[09/01/24 15:15:05] INFO     Application startup complete.                      

❯ sudo docker ps -a
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
#

After the Application startup complete. the bash control is "returned" and container is not running anymore

#

Oh, and I start it with ❯ sudo docker compose up -d

sand sableBOT
obsidian shoal
#

I removed the image and ran it again:

sudo docker compose up                                              
[+] Running 13/13
 ✔ immich-machine-learning Pulled                                                                                                                    137.0s 
   ✔ e4fff0779e6d Pull complete                                                                                                                        8.9s 
   ✔ d97016d0706d Pull complete                                                                                                                        9.0s 
   ✔ 53db1713e5d9 Pull complete                                                                                                                        9.4s 
   ✔ a8cd795d9ccb Pull complete                                                                                                                        9.4s 
   ✔ de3ba92de392 Pull complete                                                                                                                        9.6s 
   ✔ 547c8ab856c8 Pull complete                                                                                                                        9.6s 
   ✔ 9bd9e6ad7a3b Pull complete                                                                                                                        9.6s 
   ✔ 5a39584b7a7b Pull complete                                                                                                                        9.6s 
   ✔ 009e177fb715 Pull complete                                                                                                                      135.2s 
#
   ✔ 3f0e2e5f086b Pull complete                                                                                                                      135.2s 
   ✔ 7916dc932fd5 Pull complete                                                                                                                      135.2s 
   ✔ dc562e988ff8 Pull complete                                                                                                                      135.2s 
[+] Running 2/2
 ✔ Network immich_remote_ml_default   Created                                                                                                          0.2s 
 ✔ Container immich_machine_learning  Created                                                                                                          1.9s 
Attaching to immich_machine_learning
immich_machine_learning  | [09/01/24 16:27:46] INFO     Starting gunicorn 23.0.0                           
immich_machine_learning  | [09/01/24 16:27:46] INFO     Listening at: http://[::]:3003 (9)                 
immich_machine_learning  | [09/01/24 16:27:46] INFO     Using worker: app.config.CustomUvicornWorker       
immich_machine_learning  | [09/01/24 16:27:46] INFO     Booting worker with pid: 10                        
immich_machine_learning exited with code 143
#

when I run it on other computer, it starts fine and doesn't exit though :/