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

Configuration file instructions and yq errors related to DB config #6

Open
armchairancap opened this issue Dec 20, 2024 · 2 comments
Open

Comments

@armchairancap
Copy link

On Ubntu Linux, sh doesn't seem to work at all, while bash does.

$ sh ./dotlakeIngest.sh 
./dotlakeIngest.sh: 4: [[: not found
./dotlakeIngest.sh: 10: [[: not found
Unsupported operating system. Please install yq manually.
...

$ bash ./dotlakeIngest.sh 
usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
          [--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
          [--indentless-lists] [--in-place] [--version]
          [jq_filter] [files ...]
yq: error: argument files: can't open '.relay_chain': [Errno 2] No such file or directory: '.relay_chain'
usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
          [--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
          [--indentless-lists] [--in-place] [--version]

With Bash, there seem to be issues with the statements such as yq eval '.databases[0].type' config.yaml

$ yq eval '.databases[0].type' config.yaml
usage: yq [-h] [--yaml-output] [--yaml-roundtrip] [--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH] [--indentless-lists] [--in-place] [--version] [jq_filter] [files ...]
yq: error: argument files: can't open '.databases[0].type': [Errno 2] No such file or directory: '.databases[0].type'

In fact, config.yaml has the databases section marked out, so why is it being parsed in the first place?
I removed # in my config.yaml, but I also tried with # and neither way works.

My DB section w/o the sharp:

retain_db: true  # Set to true to retain database after the end of process.
databases:
  - type: postgres
    host: 127.0.0.1
    port: 5432
    name: dotlake
    user: postgres
    password: postgres

Can you take a look at the instructions and make it clear how it should be or maybe fix the installer script if the problem is there?

@KarimJedda
Copy link
Collaborator

GM @armchairancap thank you for submitting this issue! We'll look into it cc @pranaydotparity

@pranaydotparity
Copy link
Collaborator

This issue you are facing on Linux machine should be fixed after today's update.
Added a little more detailed instructions on how to setup the database configuration on README, hope that resolves any confusion with regards to the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants