```2024-08-15T18:54:54.204983434Z Command 'parse_m...
# troubleshooting
i
Copy code
2024-08-15T18:54:54.204983434Z Command 'parse_manifest
' could not be found. Utility 'dbt-snowflake' supports the following commands: build, clean, compile, debug, deps, describe, docs-generate, docs-serve, freshness, initialize, run, seed, snapshot, test, parse_manifest
2024-08-15T18:54:54.958553252Z /project/entrypoint.sh: line 3: $'\r': command not found
I'm randomly getting this error trying to parse my dbt manifest in my docker image. The dockerfile line looks like this:
ENTRYPOINT ["/bin/bash", "-c", "/project/entrypoint.sh"]
My entrypoint.sh looks like this:
Copy code
# parse dbt manifest for dagster
meltano invoke dbt-snowflake:parse_manifest

meltano invoke dagster:start_docker
The command as it's set up in my meltano.yml looks like this:
Copy code
utilities:
  - name: dbt-snowflake
    variant: dbt-labs
    pip_url: dbt-core~=1.8.0 dbt-snowflake~=1.8.0 git+<https://github.com/meltano/dbt-ext.git@v0.1.0>
    commands:
      parse_manifest:
        args: parse --quiet
        executable: dbt_invoker
Is docker misinterpreting something in my bash script? This was not failing until the last day or so and nothing's been changed with any of this in the past month or so.
e
Is it possible there's a extraneous whitspace in there?
Copy code
'parse_manifest
'
i
In the bash ? No
But there is an indent between the two commands
e
Oh, I see
$'\r': command not found'
so there's definitely some newline malarkey going on! Can you try adjusting the newlines in the script so they don't have that carriage return?
i
I screwed with it and did a bunch of permutations and nothing worked
Asked chatgpt and it said to use dos2unix so I added it to my dockerfile and that worked
Copy code
RUN apt-get update && apt-get install -y dos2unix
COPY entrypoint.sh /project/entrypoint.sh
RUN dos2unix /project/entrypoint.sh
RUN chmod +x /project/entrypoint.sh
e
Oh nice!
i
Weird that it just suddenly couldn't handle the carriage return though hmm