Jesse Levitt
07/27/2021, 6:52 PMlakefs setup --user-name root --access-key-id EXAMPLE_KEY --secret-access-key EXAMPLE_SECRET
the error message is:
ERROR [2021-07-27T18:44:43Z]lakeFS/pkg/db/migration.go:44 pkg/db.(*DatabaseMigrator).Migrate Failed to migrate direction=up error="dial tcp 127.0.0.1:5432: connect: connection refused"`
This is surprising as some of the setup appears to successfully connect to an RDS:
INFO [2021-07-27T18:44:30Z]lakeFS/pkg/db/connect.go:57 pkg/db.ConnectDBPool connecting to the DB conn_max_lifetime=5m0s driver=pgx max_idle_conns=25 max_open_conns=25 uri="<postgres://postgres>:paasword@<prefixes>.<http://us-east-1.rds.amazonaws.com/postgres|us-east-1.rds.amazonaws.com/postgres>"
INFO [2021-07-27T18:44:30Z]lakeFS/pkg/db/connect.go:77 pkg/db.ConnectDBPool initialized DB connection conn_max_lifetime=5m0s driver=pgx max_idle_conns=25 max_open_conns=25 uri="<postgres://postgres>:paasword@<prefixes>.<http://us-east-1.rds.amazonaws.com/postgres|us-east-1.rds.amazonaws.com/postgres>"
DEBUG [2021-07-27T18:44:30Z]lakeFS/cmd/lakefs/cmd/run.go:61 cmd/lakefs/cmd.glob..func9 No migration, setup required
...
...
INFO [2021-07-27T18:44:30Z]lakeFS/pkg/auth/service.go:207 pkg/auth.NewDBAuthService initialized Auth service
DEBUG [2021-07-27T18:44:30Z]lakeFS/pkg/stats/metadata.go:34 pkg/stats.NewMetadata failed to collect account metadata error="ERROR: relation \"auth_installation_metadata\" does not exist (SQLSTATE 42P01)"
DEBUG [2021-07-27T18:44:30Z]lakeFS/pkg/stats/collector.go:213 pkg/stats.(*BufferedCollector).CollectMetadata could not update metadata error="installation ID is missing: stats: send error" service=stats_collector
DEBUG [2021-07-27T18:44:30Z]lakeFS/cmd/lakefs/cmd/run.go:211 cmd/lakefs/cmd.checkForeignRepos lakeFS isn't initialized, skipping mismatched adapter checks
Any help or guidance would be appreciated. We haven't connected the EC2 to an elastic IP, so the S3_Gateway may be faulty, but that doesn't seem to be the issueItai Admi
07/27/2021, 7:17 PMconfig.yaml
file that you’re using?Jesse Levitt
07/27/2021, 7:31 PMlogging:
format: text
level: DEBUG
output: "-"
database:
connection_string: "<postgres://postgres>:password@<prefixes>.<http://us-east-1.rds.amazonaws.com/postgres|us-east-1.rds.amazonaws.com/postgres>"
auth:
encrypt:
secret_key: "EXAMPLE_SECRET"
blockstore:
type: s3
s3:
region: us-east-1
profile: default
credentials_file: /home/ubuntu/.aws/credentials
gateways:
s3:
# replace this with the host you will use for the lakeFS S3-compatible endpoint:
domain_name: s3.lakefs.<company>.io
Itai Admi
07/27/2021, 7:36 PMlakefs run
with the same config file, and do the setup through the UI or REST api?Jesse Levitt
07/27/2021, 7:37 PM!
in it. could that contribute to an issue?Itai Admi
07/27/2021, 7:37 PM--config=path/to/config.yaml
?Jesse Levitt
07/27/2021, 7:38 PM/home/ubuntu/config.yml
Itai Admi
07/27/2021, 7:39 PM$HOME/.lakefs.yaml
Jesse Levitt
07/27/2021, 7:41 PMlakefs run
optionItai Admi
07/27/2021, 7:42 PMJesse Levitt
07/27/2021, 7:43 PMJesse Levitt
07/27/2021, 7:44 PMItai Admi
07/27/2021, 7:48 PMJesse Levitt
07/27/2021, 7:56 PMItai Admi
07/27/2021, 7:58 PM