runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Sync not working on Windows?

Open WoLfulus opened this issue 3 years ago • 2 comments

acorn run -i will keep saying it cannot "sync".

Using Windows 11 + Docker Desktop

services-59d47f9bc5-wjs2q: (sync): Error: Sync Error on E:\projects\test\src: initial sync: populate file map: collect changes: start retrieving changes: rpc error: code = Unavailable desc = connection closed before server preface received
services-59d47f9bc5-wjs2q: (sync): Sync stopped
services-87c8c67bc-9p6k2: (sync): Start syncing
silo-c469bd449-l6l2s: (sync): Start syncing
services-87c8c67bc-9p6k2: (sync): Error: Sync Error on E:\projects\test\src: initial sync: populate file map: collect changes: start retrieving changes: rpc error: code = Unavailable desc = connection closed before server preface received
services-87c8c67bc-9p6k2: (sync): Sync stopped
silo-c469bd449-l6l2s: (sync): Error: Sync Error on E:\projects\test\src: initial sync: populate file map: collect changes: start retrieving changes: rpc error: code = Unavailable desc = connection closed before server preface received
silo-c469bd449-l6l2s: (sync): Sync stopped

Acornfile

args: {
    env: "development"
}

containers: {
    silo: {
        build: {
            context: "."
            target: "silo-\(args.env)"
            buildArgs: {
                "BUILD_ENVIRONMENT": args.env
                "BUILD_CONFIGURATION": std.ifelse(args.dev || args.env == "development", "Debug", "Release")
            }
        }
        ports: {
            publish: [
                "30000/tcp",
                "31000/tcp",
                "32000/http"
            ]
        }
        if args.dev || args.env == "development" {
            dirs: {
                "/app/src": "./src"
            }
        }
    }
    services: {
        build: {
            context: "."
            target: "services-\(args.env)"
            buildArgs: {
                "BUILD_ENVIRONMENT": args.env
                "BUILD_CONFIGURATION": std.ifelse(args.dev || args.env == "development", "Debug", "Release")
            }
        }
        ports: {
            publish: [
                "3000/http"
            ]
        }
        if args.dev || args.env == "development" {
            dirs: {
                "/app/src": "./src"
            }
        }
    }
}

WoLfulus avatar Aug 13 '22 00:08 WoLfulus

Are you using the k8s built into Docker Desktop or something else like kind, minikube, or k3d?

ibuildthecloud avatar Aug 15 '22 18:08 ibuildthecloud

The builtin one.

WoLfulus avatar Aug 16 '22 16:08 WoLfulus