Hello, I am getting the following error Is there a...
# help
a
Hello, I am getting the following error Is there a way I could run lakefs in debug mode..
Copy code
[ec2-user@ip-xxx-xxx-xxx-xxx ~]$ /opt/lakefs/latest/lakefs --config /etc/lakefs/poc-01-newton-config.yaml run
INFO[0000]/home/runner/work/lakeFS/lakeFS/cmd/lakefs/cmd/root.go:130 <http://github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig()|github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig()> Configuration file                            fields.file=/etc/lakefs/poc-01-newton-config.yaml file=/etc/lakefs/poc-01-newton-config.yaml phase=startup
FATA[0000]/home/runner/work/lakeFS/lakeFS/cmd/lakefs/cmd/root.go:114 <http://github.com/treeverse/lakefs/cmd/lakefs/cmd.LoadConfig()|github.com/treeverse/lakefs/cmd/lakefs/cmd.LoadConfig()> Load config                                   error="decoding failed due to the following error(s):\n\n'database' has invalid keys: dynamodb_table_name" phase=startup
I found the error in my config file. But my question on starting this in debug mode remains..
n
Hi @Amit Varde you can enabled debug logs in lakeFS either by passing the relevant configuration parameter in the config yaml or environment variable. See documentation for more informaiton
gratitude thank you 1
a
Thanks. In this case, the error in my config file was that I was using a
dynamodb_table_name
instead of
Copy code
dynamodb:
    table_name: "xxx"
    aws_region: "YYY"
Totally my bad :) Is there a syntax checker or a comprehensive "valid key" guides?
n
You can follow the documentation. A '.' in the config param name means it is a nested parameter