ikxin / kms-tools

An all-in-one KMS toolbox
https://kms.ikxin.com
MIT License
474 stars 159 forks source link

Unable to start docker #27

Closed ikxin closed 1 week ago

ikxin commented 1 month ago
          Unable to start docker.
Bun v1.1.27 (Linux arm64)

18696 |   module.exports = [

18697 |   module.exports = [

18698 |   module.exports = [

18699 |   module.exports = [

18700 |   module.exports = [

18701 |   module.exports = [

                                        ^

error: Failed to connect

 errno: 103

  code: "ECONNREFUSED"

      at createConnection (/$bunfs/root/kms-tools:18701:33)

      at module code (/$bunfs/root/kms-tools:34688:57)

Docker Compose:


services:
  kms-tools:
    build: .
    ports:
      - 3000:3000
    restart: unless-stopped
  db:
    image: mysql:8
    restart: always
    environment:
      MYSQL_DATABASE: 'db'
      MYSQL_USER: 'kmstool'
      MYSQL_PASSWORD: 'password'
      MYSQL_ROOT_PASSWORD: 'otherpassword'
    ports:
      - '3306:3306'
    volumes:
      - /var/www/vhosts/eniyiweb.net/lisans.eniyiweb.net/db:/var/lib/mysql

volumes:
  my-db:

Originally posted by @eniyiweb in https://github.com/ikxin/kms-tools/issues/24#issuecomment-2345761118

ikxin commented 1 month ago

@eniyiweb I have added a GitHub Action to automatically build the latest version and push it to Docker Hub, please try again.

eniyiweb commented 1 month ago

@eniyiweb I have added a GitHub Action to automatically build the latest version and push it to Docker Hub, please try again.

Hello, thank you for the response but the problem still persists.

ikxin commented 1 month ago

@eniyiweb Pass the following environment variables into docker

DATABASE_URL = 'mysql://root:password@localhost:3306/database'
eniyiweb commented 1 month ago

@eniyiweb Pass the following environment variables into docker

DATABASE_URL = 'mysql://root:password@localhost:3306/database'

It works now, but when I define the "ENABLE_VLMCSD=true" environment it gives the following error.

Bun v1.1.27 (Linux arm64)

Elysia is running at on port http://localhost:3000/ ...

bun: command not found: pkill

ENOENT: No such file or directory

   errno: -2

 syscall: "posix_spawn"

   path: "./service/binaries/vlmcsd-linux-arm64"

      at /$bunfs/root/kms-tools:34733:31