gpustack: Worker gpustack not found

I run a server by docker-compose, config is as follows:

services:
  gpustack:
    image: registry.cn-shanghai.aliyuncs.com/gpu-stack/gpustack:v0.6.0
    container_name: gpustack
    restart: unless-stopped
    ports:
      - "9090:80"
    ipc: host
    volumes:
      - gpustack-data:/var/lib/gpustack
    command: ["--worker-ip", "192.168.11.1"]

    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              device_ids: ['4','5','6','7']
              capabilities: [gpu]

volumes:
  gpustack-data:

the docker log is as follows: 2025-04-27T08:39:48+00:00 - gpustack.server.server - INFO - Starting GPUStack server. 2025-04-27T08:39:48+00:00 - gpustack.server.server - INFO - Running database migration. 2025-04-27T08:39:49+00:00 - gpustack.server.server - INFO - Database migration completed. 2025-04-27T08:39:52+00:00 - gpustack.server.catalog - INFO - Cannot access https://huggingface.co, using ModelScope model catalog. 2025-04-27T08:39:52+00:00 - gpustack.server.server - INFO - Serving on 0.0.0.0:80. 2025-04-27T08:39:52+00:00 - gpustack.scheduler.scheduler - INFO - Scheduler started. 2025-04-27T08:40:00+00:00 - gpustack.worker.worker - INFO - Starting GPUStack worker. 2025-04-27T08:40:04+00:00 - gpustack.worker.worker - INFO - Serving worker APIs on 0.0.0.0:10150. 2025-04-27T08:40:04+00:00 - gpustack.worker.worker - ERROR - Error serving worker APIs: Worker gpustack not found. 2025-04-27T08:40:04+00:00 - gpustack.worker.worker - INFO - Worker has shut down.

Linux version 5.4.0-81-generic (buildd@lgw01-amd64-052) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) # Nvidia A40 128 Hygon C86 7381 32-core Processor

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

Feedback from another user who has similar error:

  1. The same worker node was initially installed and registered successfully using a script, but later stopped due to pipx environment issues.
  2. The worker node was then manually deleted from the server.
  3. Afterwards, we restarted the worker node using Docker.
  4. However, it failed to register — the system kept reporting that the node could not be found, and the registration process did not occur.
  5. When we used the script to bring up the node again (without deleting it), registration succeeded.
  6. After uninstalling the node properly and then bringing it up again via Docker, it worked without any problems.

It seems like there might be a bug related to deleting a worker node with the same name — possibly the deletion did not fully clean up related resources.

Env info for the above:

  • Ubuntu 22 LTS
  • Linux Kernel 5.15
  • CPU Intel 8358