https://www.ory.sh/ logo
c

careful-engineer-44837

05/04/2022, 3:04 PM
Hi, I'm trying to do some experiments with Keto. When I spin up the Keto container with sqlite (following https://github.com/gen1us2k/ory_workshop/blob/master/keto/docker-compose.yml) I get
time=2022-05-04T15:03:13Z level=error msg=Unable to connect to database, retrying. audience=application error=map[message:unsupported dialect ''] service_name=ORY Keto service_version=v0.7.0-alpha.1
. Where might be the problem? Edit: Am I right in assuming that this image should run its own sqlite instance within its container or am I supposed to supply a sqlite instance myself?
d

damp-sunset-69236

05/04/2022, 3:13 PM
Hello. It’ll run sqlinstance within its container
Keep in mind that I use outdated version of Keto
c

careful-engineer-44837

05/04/2022, 3:15 PM
Okay. When I'm running
v0.8.0-sqlite
I'm getting
time=2022-05-04T15:14:31Z level=error msg=Unable to connect to database, retrying. audience=application error=map[message:unsupported dialect '' stack_trace:stack trace could not be recovered from error type *errors.errorString] service_name=ORY Keto service_version=v0.8.0-alpha.0.pre.0
Am I missing some important configuration?
s

steep-lamp-91158

05/04/2022, 3:18 PM
what is your config?
c

careful-engineer-44837

05/04/2022, 3:21 PM
Copy code
keto:
    image: oryd/keto:v0.8.0-sqlite
    ports:
      - '4466:4466'
      - '4467:4467'
    command: serve -c /home/ory/keto.yml
    restart: on-failure
    volumes:
      - type: bind
        source: ./keto/config
        target: /home/ory
    networks:
      - intranet
Keto config is basically the same from your repo with minor changes
This is resolved now. Seemed to work with v0.7.0-sqlite.
6 Views