Xubo Fei
04/02/2021, 9:01 PMtime="2021-04-02T20:56:29Z" level=error msg="Failed to migrate" func="pkg/db.(*DatabaseMigrator).Migrate" file="build/pkg/db/migration.go:44" direction=up error="sql: Scan error on column index 0, name \"current_schema\": converting NULL to string is unsupported in line 0: SELECT CURRENT_SCHEMA()" host=<http://lakefs.charlie.kariusdx.com|lakefs.charlie.kariusdx.com> method=POST path=/api/v1/setup_lakefs request_id=6da192ba-ca43-4495-973c-4715afda9ad3 service_name=rest_api
Yoni Augarten
04/02/2021, 9:05 PMsearch_path
parameter, you need to create this schema on your database.Yoni Augarten
04/02/2021, 9:05 PM?search_path=my_schema
, you need to run CREATE SCHEMA my_schema;
on your database.Yoni Augarten
04/02/2021, 9:06 PMsearch_path
parameter to use the default schema (usually called "public")Xubo Fei
04/02/2021, 9:07 PM<postgres://lakefs:XXXXX@XXXX:5432/lakefs>
Yoni Augarten
04/02/2021, 9:08 PMYoni Augarten
04/02/2021, 9:09 PMXubo Fei
04/02/2021, 9:09 PMYoni Augarten
04/02/2021, 9:09 PMYoni Augarten
04/02/2021, 9:09 PMXubo Fei
04/02/2021, 9:09 PMYoni Augarten
04/02/2021, 9:10 PM\l
?Xubo Fei
04/02/2021, 9:10 PMlakefs=> \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
lakefs | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres +
| | | | | postgres=CTc/postgres+
| | | | | lakefs=CTc/postgres
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
rdsadmin | rdsadmin | UTF8 | en_US.UTF-8 | en_US.UTF-8 | rdsadmin=CTc/rdsadmin
template0 | rdsadmin | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/rdsadmin +
| | | | | rdsadmin=CTc/rdsadmin
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(5 rows)
Yoni Augarten
04/02/2021, 9:11 PMSELECT CURRENT_SCHEMA()
?Xubo Fei
04/02/2021, 9:12 PMlakefs=> SELECT CURRENT_SCHEMA();
current_schema
----------------
(1 row)
Yoni Augarten
04/02/2021, 9:12 PM\dt
?Xubo Fei
04/02/2021, 9:12 PMlakefs=> \dt
Did not find any relations.
Xubo Fei
04/02/2021, 9:13 PMYoni Augarten
04/02/2021, 9:13 PMSET search_path TO public
, does the output of SELECT CURRENT_SCHEMA();
return something?Xubo Fei
04/02/2021, 9:14 PMlakefs=> SET search_path TO public;
SET
lakefs=> SELECT CURRENT_SCHEMA();
current_schema
----------------
(1 row)
Yoni Augarten
04/02/2021, 9:14 PMYoni Augarten
04/02/2021, 9:15 PMXubo Fei
04/02/2021, 9:15 PMlakefs=> SHOW search_path;
search_path
-------------
public
(1 row)
Xubo Fei
04/02/2021, 9:15 PMYoni Augarten
04/02/2021, 9:27 PMlakefs
database is not owned by the user lakefsYoni Augarten
04/02/2021, 9:27 PMXubo Fei
04/02/2021, 9:51 PMpermission denied to create extension \"pgcrypto
Xubo Fei
04/02/2021, 9:51 PMYoni Augarten
04/02/2021, 9:52 PMXubo Fei
04/02/2021, 9:58 PMYoni Augarten
04/02/2021, 10:00 PMYoni Augarten
04/02/2021, 10:00 PMXubo Fei
04/02/2021, 10:01 PMlakefs
database is not owned by the user lakefsXubo Fei
04/02/2021, 10:02 PMYoni Augarten
04/02/2021, 10:02 PMYoni Augarten
04/02/2021, 10:02 PMJennifer Cristina Evangelista Da Silva
04/18/2022, 7:25 PM