#/usr/local/bin/dagger: line 0: syntax error: unterminated quoted string

1 messages · Page 1 of 1 (latest)

stark valley
#

I am getting this error while running argo workflow and using the CLI as an artificated just as it's in the doct /usr/local/bin/dagger: line 0: syntax error: unterminated quoted string

I can successfully run the worflow with a custom image with built-in dagger CLI

limpid gull
#

hey @stark valley 👋 ! Do you have some code to share by any chance?

#

Probably not related to your error but are you using this version of dagger?
https://github.com/dagger/dagger/releases/download/v0.10.2/dagger_v0.10.2_linux_arm64.tar.gz

If yes I would recommend to use the latest version (docs will be updated):
https://github.com/dagger/dagger/releases/download/v0.11.1/dagger_v0.11.1_linux_arm64.tar.gz

#

cc @silver schooner ☝️

stark valley
#

I have tried both v0.11.1 and v0.10.2 and they both give error

#

Sometimes I also get this /usr/local/bin/dagger: line 0: syntax error: unexpected word (expecting ")")

#
kind: Workflow
metadata:
  generateName: test-dagger-in-argo-
spec:
  entrypoint: test-dagger-workflow
  volumes:
    - name: dagger-conn
      hostPath:
        path: /var/run/dagger
  templates:
    - name: test-dagger-workflow
      inputs:
        artifacts:
          - name: dagger-cli
            path: /usr/local/bin
            mode: 0755
            http:
             #url: https://github.com/dagger/dagger/releases/download/v0.11.1/dagger_v0.11.1_linux_arm64.tar.gz
             url: https://github.com/dagger/dagger/releases/download/v0.10.2/dagger_v0.10.2_linux_arm64.tar.gz
      container:
        image: alpine:latest
        command: ["sh","-c"]
        args: [
        "dagger version"
        ]
        env:
        - name: "_EXPERIMENTAL_DAGGER_RUNNER_HOST"
          value: "unix:///var/run/dagger/buildkitd.sock"
        volumeMounts:
          - name: dagger-conn
            mountPath: /var/run/dagger```
#

This with a custom cli image works

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: custom-test-dagger-in-argo-
spec:
  entrypoint: test-dagger-workflow
  serviceAccountName: workflow
  volumes:
    - name: dagger-conn
      hostPath:
        path: /var/run/dagger
  templates:
    - name: test-dagger-workflow
      container:
        image: africlouds/dagger-cli:latest-amd64
        command: ["sh","-c"]
        args: [
        "dagger version"
        ]
        env:
        - name: "_EXPERIMENTAL_DAGGER_RUNNER_HOST"
          value: "unix:///var/run/dagger/buildkitd.sock"
        volumeMounts:
          - name: dagger-conn
            mountPath: /var/run/dagger
normal mist
#

Just double checking, the artifact listed in the first snippet is arm64 but in the second snippet it looks like you're using amd64. Is the runner arm64 or amd64? Using an arm64 binary on amd64 could show an error message like the one you're seeing

stark valley
#

spot on ,changed to amd version and it works

#

the documentation needs to be corrected

clear hare