Hi, I'm assuming what i'm trying to do is possible...
# help
j
Hi, I'm assuming what i'm trying to do is possible. so, if it's not let me know, lol. I'm trying to get a local lakefs system setup on my windows box inside wsl. I'm assuming the way to do this (per the lakefs docs) is to pull down the latest docker image (which i've done). I also have a postgres docker image installed wtih the 5432 port mapped from the docker image to the host. i initialized the postgres socker image and i know what the username/pwd is. I setup a config.yaml file (as attached). When i start the lakefs docker image, i get this error:
Copy code
time="2024-05-04T19:39:09Z" level=info msg="Configuration file" func=github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig file="/build/cmd/lakefs/cmd/root.go:109" fields.file=/etc/lakefs/config.yaml file="/build/cmd/lakefs/cmd/root.go:109" phase=startup
time="2024-05-04T19:39:09Z" level=fatal msg="Load config" func=github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig file="/build/cmd/lakefs/cmd/root.go:149" error="1 error(s) decoding:\n\n* 'Database' has invalid keys: connection_string" fields.file=/etc/lakefs/config.yaml file="/build/cmd/lakefs/cmd/root.go:149" phase=startup
The config.yaml file has this as the connection string: database: connection_string: "postgres://postgres:uniden@localhost:5432/postgres?sslmode=disable"
n
Hi @Joe M if you're using postgres please use the following configuration: database.type: postgres database.postgres.connection_string: <your connection string>
j
ok i'll try that, thanks. btw, those options are not listed here, is this documentation out of date? https://docs.lakefs.io/v0.52/reference/configuration.html
n
You are looking at documentation for version 0.52, that's very old. I suggest looking at latest
j
argh, lol, thanks. no idea how i got to that page.
thanks, see that on the latest doc page
n
Probably googled it, unfortunately SEO is a conundrum
j
haha, yes it is
n
let us know how it goes
j
sweet. after a couple of screw ups, i got it running locally. thanks for the help on a saturday!
🎉 1