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

gale fails with: "input:1: Syntax Error GraphQL request (1:122) Unexpected" #28

Closed
samalba opened this issue Jun 10, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@samalba
Copy link
Contributor

samalba commented Jun 10, 2023

I've tried with version v0.0.1 and main (commit a635d5802ba3f0eb11945fd0d7f9b9e752c5ed64), both with the same result:

~/forks/gale/gale --workflow foo --job bar 
Connected to engine b13dbd03d7d0

failed to get exit code: input:1: Syntax Error GraphQL request (1:122) Unexpected )

1: query{container{from(address:"ghcr.io/catthehacker/ubuntu:act-22.04"){withUnixSocket(path:"/var/run/docker.sock", source:){withFile(path:"/usr/local/bin/ghx", source:){withEnvVariable(name:"RUNNER_NAME", value:"Gale Agent"){withEnvVariable(value:"/home/runner/_temp", name:"RUNNER_TEMP"){withEnvVariable(name:"RUNNER_OS", value:"linux"){withEnvVariable(name:"RUNNER_ARCH", value:"x64"){withEnvVariable(name:"RUNNER_TOOL_CACHE", value:"/opt/hostedtoolcache"){withEnvVariable(name:"RUNNER_DEBUG", value:""){withDirectory(directory:, path:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_WORKSPACE", value:"/home/runner/work/hf-model-ops/hf-model-ops"){withWorkdir(path:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_RUN_NUMBER", value:"1"){withEnvVariable(name:"CI", value:"false"){withEnvVariable(value:"", name:"GITHUB_BASE_REF"){withEnvVariable(name:"GITHUB_EVENT_PATH", value:"/home/runner/_temp/workflow/event.json"){withEnvVariable(name:"GITHUB_REF_TYPE", value:""){withEnvVariable(value:"R_kgDOJhldTA", name:"GITHUB_REPOSITORY_ID"){withEnvVariable(name:"GITHUB_ACTION_PATH", value:""){withEnvVariable(name:"GITHUB_HEAD_REF", value:""){withEnvVariable(name:"GITHUB_REF_PROTECTED", value:"false"){withEnvVariable(name:"GITHUB_ACTIONS", value:"false"){withEnvVariable(name:"GITHUB_RUN_ID", value:"1"){withEnvVariable(name:"GITHUB_SERVER_URL", value:"https://github.com"){withEnvVariable(name:"GITHUB_TOKEN", value:"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\n"){withEnvVariable(name:"GITHUB_REPOSITORY_OWNER_ID", value:"MDQ6VXNlcjIxNjQ4Nw=="){withEnvVariable(name:"GITHUB_WORKSPACE", value:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_WORKFLOW_SHA", value:""){withEnvVariable(name:"GITHUB_ACTION", value:""){withEnvVariable(name:"GITHUB_ACTOR", value:"samalba"){withEnvVariable(name:"GITHUB_API_URL", value:"https://api.github.com"){withEnvVariable(name:"GITHUB_REPOSITORY", value:"samalba/hf-model-ops"){withEnvVariable(name:"GITHUB_RUN_ATTEMPT", value:"1"){withEnvVariable(name:"GITHUB_REF_NAME", value:""){withEnvVariable(value:"samalba", name:"GITHUB_REPOSITORY_OWNER"){withEnvVariable(name:"GITHUB_SHA", value:""){withEnvVariable(name:"GITHUB_ACTION_REPOSITORY", value:""){withEnvVariable(name:"GITHUB_ACTOR_ID", value:"216487"){withEnvVariable(value:"", name:"GITHUB_PATH"){withEnvVariable(value:"", name:"GITHUB_WORKFLOW"){withEnvVariable(name:"GITHUB_RETENTION_DAYS", value:"0"){withEnvVariable(name:"GITHUB_WORKFLOW_REF", value:""){withEnvVariable(name:"GITHUB_ENV", value:""){withEnvVariable(name:"GITHUB_EVENT_NAME", value:"push"){withEnvVariable(name:"GITHUB_GRAPHQL_URL", value:"https://api.github.com/graphql"){withEnvVariable(name:"GITHUB_JOB", value:""){withEnvVariable(name:"GITHUB_REF", value:""){withNewFile(path:"/home/runner/_temp/workflow/event.json", contents:"{}", permissions:420){withExec(args:["ghx","with","job","--workflow=foo","--job=bar"]){withExec(args:["ghx","run"]){directory(path:"/home/runner/_temp/ghx"){file(path:"exit-code"){contents}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
                                                                                                                            ^


Please visit https://dagger.io/help#go for troubleshooting guidance.
Error executing job: <nil>Error: input:1: Syntax Error GraphQL request (1:122) Unexpected )

1: query{container{from(address:"ghcr.io/catthehacker/ubuntu:act-22.04"){withUnixSocket(path:"/var/run/docker.sock", source:){withFile(path:"/usr/local/bin/ghx", source:){withEnvVariable(name:"RUNNER_NAME", value:"Gale Agent"){withEnvVariable(value:"/home/runner/_temp", name:"RUNNER_TEMP"){withEnvVariable(name:"RUNNER_OS", value:"linux"){withEnvVariable(name:"RUNNER_ARCH", value:"x64"){withEnvVariable(name:"RUNNER_TOOL_CACHE", value:"/opt/hostedtoolcache"){withEnvVariable(name:"RUNNER_DEBUG", value:""){withDirectory(directory:, path:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_WORKSPACE", value:"/home/runner/work/hf-model-ops/hf-model-ops"){withWorkdir(path:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_RUN_NUMBER", value:"1"){withEnvVariable(name:"CI", value:"false"){withEnvVariable(value:"", name:"GITHUB_BASE_REF"){withEnvVariable(name:"GITHUB_EVENT_PATH", value:"/home/runner/_temp/workflow/event.json"){withEnvVariable(name:"GITHUB_REF_TYPE", value:""){withEnvVariable(value:"R_kgDOJhldTA", name:"GITHUB_REPOSITORY_ID"){withEnvVariable(name:"GITHUB_ACTION_PATH", value:""){withEnvVariable(name:"GITHUB_HEAD_REF", value:""){withEnvVariable(name:"GITHUB_REF_PROTECTED", value:"false"){withEnvVariable(name:"GITHUB_ACTIONS", value:"false"){withEnvVariable(name:"GITHUB_RUN_ID", value:"1"){withEnvVariable(name:"GITHUB_SERVER_URL", value:"https://github.com"){withEnvVariable(name:"GITHUB_TOKEN", value:"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\n"){withEnvVariable(name:"GITHUB_REPOSITORY_OWNER_ID", value:"MDQ6VXNlcjIxNjQ4Nw=="){withEnvVariable(name:"GITHUB_WORKSPACE", value:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_WORKFLOW_SHA", value:""){withEnvVariable(name:"GITHUB_ACTION", value:""){withEnvVariable(name:"GITHUB_ACTOR", value:"samalba"){withEnvVariable(name:"GITHUB_API_URL", value:"https://api.github.com"){withEnvVariable(name:"GITHUB_REPOSITORY", value:"samalba/hf-model-ops"){withEnvVariable(name:"GITHUB_RUN_ATTEMPT", value:"1"){withEnvVariable(name:"GITHUB_REF_NAME", value:""){withEnvVariable(value:"samalba", name:"GITHUB_REPOSITORY_OWNER"){withEnvVariable(name:"GITHUB_SHA", value:""){withEnvVariable(name:"GITHUB_ACTION_REPOSITORY", value:""){withEnvVariable(name:"GITHUB_ACTOR_ID", value:"216487"){withEnvVariable(value:"", name:"GITHUB_PATH"){withEnvVariable(value:"", name:"GITHUB_WORKFLOW"){withEnvVariable(name:"GITHUB_RETENTION_DAYS", value:"0"){withEnvVariable(name:"GITHUB_WORKFLOW_REF", value:""){withEnvVariable(name:"GITHUB_ENV", value:""){withEnvVariable(name:"GITHUB_EVENT_NAME", value:"push"){withEnvVariable(name:"GITHUB_GRAPHQL_URL", value:"https://api.github.com/graphql"){withEnvVariable(name:"GITHUB_JOB", value:""){withEnvVariable(name:"GITHUB_REF", value:""){withNewFile(path:"/home/runner/_temp/workflow/event.json", contents:"{}", permissions:420){withExec(args:["ghx","with","job","--workflow=foo","--job=bar"]){withExec(args:["ghx","run"]){directory(path:"/home/runner/_temp/ghx"){file(path:"exit-code"){contents}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
                                                                                                                            ^


Please visit https://dagger.io/help#go for troubleshooting guidance.
Usage:
  gale [flags]
  gale [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Print version information

Flags:
      --export            Export the runner directory after the execution. Exported directory will be placed under .gale directory in the current directory.
  -h, --help              help for gale
      --job string        Name of the job
      --workflow string   Name of the workflow. If workflow doesn't have name, than it must be relative path to the workflow file

Use "gale [command] --help" for more information about a command.

Error executing command: input:1: Syntax Error GraphQL request (1:122) Unexpected )

1: query{container{from(address:"ghcr.io/catthehacker/ubuntu:act-22.04"){withUnixSocket(path:"/var/run/docker.sock", source:){withFile(path:"/usr/local/bin/ghx", source:){withEnvVariable(name:"RUNNER_NAME", value:"Gale Agent"){withEnvVariable(value:"/home/runner/_temp", name:"RUNNER_TEMP"){withEnvVariable(name:"RUNNER_OS", value:"linux"){withEnvVariable(name:"RUNNER_ARCH", value:"x64"){withEnvVariable(name:"RUNNER_TOOL_CACHE", value:"/opt/hostedtoolcache"){withEnvVariable(name:"RUNNER_DEBUG", value:""){withDirectory(directory:, path:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_WORKSPACE", value:"/home/runner/work/hf-model-ops/hf-model-ops"){withWorkdir(path:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_RUN_NUMBER", value:"1"){withEnvVariable(name:"CI", value:"false"){withEnvVariable(value:"", name:"GITHUB_BASE_REF"){withEnvVariable(name:"GITHUB_EVENT_PATH", value:"/home/runner/_temp/workflow/event.json"){withEnvVariable(name:"GITHUB_REF_TYPE", value:""){withEnvVariable(value:"R_kgDOJhldTA", name:"GITHUB_REPOSITORY_ID"){withEnvVariable(name:"GITHUB_ACTION_PATH", value:""){withEnvVariable(name:"GITHUB_HEAD_REF", value:""){withEnvVariable(name:"GITHUB_REF_PROTECTED", value:"false"){withEnvVariable(name:"GITHUB_ACTIONS", value:"false"){withEnvVariable(name:"GITHUB_RUN_ID", value:"1"){withEnvVariable(name:"GITHUB_SERVER_URL", value:"https://github.com"){withEnvVariable(name:"GITHUB_TOKEN", value:"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\n"){withEnvVariable(name:"GITHUB_REPOSITORY_OWNER_ID", value:"MDQ6VXNlcjIxNjQ4Nw=="){withEnvVariable(name:"GITHUB_WORKSPACE", value:"/home/runner/work/hf-model-ops/hf-model-ops"){withEnvVariable(name:"GITHUB_WORKFLOW_SHA", value:""){withEnvVariable(name:"GITHUB_ACTION", value:""){withEnvVariable(name:"GITHUB_ACTOR", value:"samalba"){withEnvVariable(name:"GITHUB_API_URL", value:"https://api.github.com"){withEnvVariable(name:"GITHUB_REPOSITORY", value:"samalba/hf-model-ops"){withEnvVariable(name:"GITHUB_RUN_ATTEMPT", value:"1"){withEnvVariable(name:"GITHUB_REF_NAME", value:""){withEnvVariable(value:"samalba", name:"GITHUB_REPOSITORY_OWNER"){withEnvVariable(name:"GITHUB_SHA", value:""){withEnvVariable(name:"GITHUB_ACTION_REPOSITORY", value:""){withEnvVariable(name:"GITHUB_ACTOR_ID", value:"216487"){withEnvVariable(value:"", name:"GITHUB_PATH"){withEnvVariable(value:"", name:"GITHUB_WORKFLOW"){withEnvVariable(name:"GITHUB_RETENTION_DAYS", value:"0"){withEnvVariable(name:"GITHUB_WORKFLOW_REF", value:""){withEnvVariable(name:"GITHUB_ENV", value:""){withEnvVariable(name:"GITHUB_EVENT_NAME", value:"push"){withEnvVariable(name:"GITHUB_GRAPHQL_URL", value:"https://api.github.com/graphql"){withEnvVariable(name:"GITHUB_JOB", value:""){withEnvVariable(name:"GITHUB_REF", value:""){withNewFile(path:"/home/runner/_temp/workflow/event.json", contents:"{}", permissions:420){withExec(args:["ghx","with","job","--workflow=foo","--job=bar"]){withExec(args:["ghx","run"]){directory(path:"/home/runner/_temp/ghx"){file(path:"exit-code"){contents}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
                                                                                                                            ^


Please visit https://dagger.io/help#go for troubleshooting guidance

After some digging, it turns out it's because gale can't find the docker socket under /var/run/docker.sock (I am using colima). Reading DOCKER_HOST from the env should fix it.

samalba added a commit to samalba/gale that referenced this issue Jun 10, 2023
…on when needed (fixes aweris#28)

Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
@aweris aweris closed this as completed in a337eb7 Jun 10, 2023
@aweris aweris assigned aweris and samalba and unassigned aweris Jun 10, 2023
@aweris aweris added the bug Something isn't working label Jun 10, 2023
@aweris aweris mentioned this issue Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants