```keto_1 | time=2022-07-18T09:40:39Z l...
# talk-keto
b
Copy code
keto_1            | time=2022-07-18T09:40:39Z level=info msg=No tracer configured - skipping tracing setup audience=application service_name=Ory Keto service_version=v0.8.0-alpha.2

postgres_1        | 2022-07-18 09:40:39.785 UTC [56] ERROR:  relation "schema_migration" does not exist at character 47

postgres_1        | 2022-07-18 09:40:39.785 UTC [56] STATEMENT:  SELECT EXISTS (SELECT schema_migration.* FROM schema_migration AS schema_migration WHERE version = $1)

keto_1            | Migrations were not applied yet, please apply them first.kavach_keto_1 exited with code 255
I am getting this error while setting up the latest version of keto on my end. I dont have any data related to previous version
s
as the output says
Migrations were not applied yet, please apply them first
b
@steep-lamp-91158 how can I do that?
s
Copy code
$ keto help
Global and consistent permission and authorization server

Usage:
  keto [command]

Available Commands:
  check          Check whether a subject has a relation on an object
  completion     Generate the autocompletion script for the specified shell
  expand         Expand a subject set
  help           Help about any command
  migrate        Commands to migrate the database
  namespace      Read and manipulate namespaces
  relation-tuple Read and manipulate relation tuples
  serve          Starts the server and serves the HTTP REST and gRPC APIs
  status         Get the status of the upstream Keto instance
  version        Show the build version, build time, and git hash

Flags:
  -c, --config strings   Config files to load, overwriting in the order specified. (default [/home/patrik/keto.yml])
  -h, --help             help for keto

Use "keto [command] --help" for more information about a command.

$ keto help migrate
Commands to migrate the database.
This does not affect namespaces. Use `keto namespace migrate` for migrating namespaces.

Usage:
  keto migrate [command]

Available Commands:
  down        Migrate the database down
  status      Get the current migration status
  up          Migrate the database up

Flags:
  -h, --help   help for migrate

Global Flags:
  -c, --config strings   Config files to load, overwriting in the order specified. (default [/home/patrik/keto.yml])

Use "keto migrate [command] --help" for more information about a command.
b
Thanks @steep-lamp-91158!