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

'The parameter is incorrect' when try to raw_exec any exe #1112

Closed
alfeg opened this issue Apr 20, 2016 · 2 comments
Closed

'The parameter is incorrect' when try to raw_exec any exe #1112

alfeg opened this issue Apr 20, 2016 · 2 comments

Comments

@alfeg
Copy link

alfeg commented Apr 20, 2016

Nomad version

Nomad v0.3.2-rc2

Operating system and Environment details

Microsoft Windows [Version 10.0.14316] - Build 14316.rs1_release.160402-2217

Issue

No matter what I provide as a command for raw_exec I get following error

fork/exec C:\Program Files\Git\usr\bin\env.exe: The parameter is incorrect.

Have try to run nomad.exe with -dev key or with config file, where put "driver.raw_exec.enable" = "1". Nothing helps.

Nomad Server logs (if appropriate)

    2016/04/20 14:35:40 [DEBUG] http: Request /v1/evaluation/aa6233e5-6ad9-2ce5-4c29-9cff28ff163d (0)
    2016/04/20 14:35:40 [DEBUG] worker: submitted plan for evaluation aa6233e5-6ad9-2ce5-4c29-9cff28ff163d
    2016/04/20 14:35:40 [DEBUG] sched: <Eval 'aa6233e5-6ad9-2ce5-4c29-9cff28ff163d' JobID: 'playground'>: setting status to complete
    2016/04/20 14:35:40 [DEBUG] client: updated allocations at index 46 (pulled 1) (filtered 5)
    2016/04/20 14:35:40 [DEBUG] client: allocs: (added 1) (removed 0) (updated 0) (ignore 5)
    2016/04/20 14:35:40 [DEBUG] worker: updated evaluation <Eval 'aa6233e5-6ad9-2ce5-4c29-9cff28ff163d' JobID: 'playground'>
    2016/04/20 14:35:40 [DEBUG] worker: ack for evaluation aa6233e5-6ad9-2ce5-4c29-9cff28ff163d
    2016/04/20 14:35:40 [DEBUG] client: starting task runners for alloc '4319d2b5-fc84-d5bf-5023-06337e28d961'
    2016/04/20 14:35:40 [DEBUG] client: starting task context for 'microservice' (alloc '4319d2b5-fc84-d5bf-5023-06337e28d961')
    2016/04/20 14:35:40 [DEBUG] plugin: starting plugin: C:\Users\vgladkikh\.go\bin\nomad.exe []string{"C:\\Users\\vgladkikh\\.go\\bin\\nomad.exe", "executor", "c:\\data\\nomad\\alloc\\4319d2b5-fc84-d5bf-5023-06337e28d961\\microservice\\microservice-executor.out"}
    2016/04/20 14:35:40 [DEBUG] http: Request /v1/evaluation/aa6233e5-6ad9-2ce5-4c29-9cff28ff163d/allocations (0)
    2016/04/20 14:35:40 [DEBUG] plugin: waiting for RPC address for: C:\Users\vgladkikh\.go\bin\nomad.exe
    2016/04/20 14:35:40 [DEBUG] plugin: nomad.exe: 2016/04/20 14:35:40 [DEBUG] plugin: plugin address: tcp 127.0.0.1:14000
    2016/04/20 14:35:40 [DEBUG] plugin: C:\Users\vgladkikh\.go\bin\nomad.exe: plugin process exited
    2016/04/20 14:35:40 [ERR] client: failed to start task 'microservice' for alloc '4319d2b5-fc84-d5bf-5023-06337e28d961': fork/exec C:\Program Files\Git\usr\bin\env.exe: The parameter is incorrect.
    2016/04/20 14:35:40 [INFO] client: Not restarting task: microservice for alloc: 4319d2b5-fc84-d5bf-5023-06337e28d961

Nomad Client logs (if appropriate)

2016/04/20 14:35:40 [DEBUG] executor: launching command env

Job file (if appropriate)

job "playground" {

    region = "global"
    datacenters = ["dc1"]
    type = "service"

    constraint {
        attribute = "${attr.kernel.name}"
        value = "windows"
    }

    update {
        stagger = "30s"
        max_parallel = 1
    }

    group "microservices" {
        count = 1
        task "microservice" {
            driver = "raw_exec"

            config {
                command = "env"                
            }

            resources {
                cpu = 500
                memory = 128
            }
        }
    }
}
@dg-eparizzi
Copy link

No updates? I find it impossible to launch anything using the raw_exec on a Windows client. Nothing works...

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants