Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Error when following getting started guide #122

Closed
vpavlin opened this issue Sep 5, 2022 · 3 comments · Fixed by #140
Closed

Error when following getting started guide #122

vpavlin opened this issue Sep 5, 2022 · 3 comments · Fixed by #140
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@vpavlin
Copy link

vpavlin commented Sep 5, 2022

Hi, I am starting my experiments with Temporal and the getting started docs resulted in an error for me.

Temporal started normally when I pre-created the missing directory, but Temporal should probably either create it, or the docs should mention it is needed

mkdir -p /home/vpavlin/.config/temporalite/db

Expected Behavior

$ /home/vpavlin/devel/bin/temporalite start --namespace default
{"level":"info","ts":"2022-09-05T08:29:27.156+0200","msg":"Successfully saved cluster metadata.","component":"metadata-initializer","cluster-name":"active","logging-call-at":"fx.go:631"}

Actual Behavior

$ /home/vpavlin/devel/bin/temporalite start --namespace default
2022/09/05 08:27:57 error setting up schema: stat /home/vpavlin/.config/temporalite/db: no such file or directory

Steps to Reproduce the Problem

  1. go install github.com/temporalio/temporalite/cmd/temporalite@latest
  2. temporalite start --namespace default

Specifications

  • Version:
  • Platform:
@jlegrone
Copy link
Collaborator

jlegrone commented Sep 7, 2022

This seems related to #99 which improved on the error message. I think we should also add a special case to create the directory if not exists when the db file path is set to the default, since $XDG_CONFIG_HOME/temporalite/db is not going to exist with a fresh installation.

@jlegrone jlegrone added good first issue Good for newcomers help wanted Extra attention is needed labels Sep 7, 2022
@lorensr
Copy link

lorensr commented Sep 22, 2022

Similar error on Mac:

temporalite start --namespace default
2022/09/22 15:20:07 error setting up schema: stat /Users/me/Library/Application Support/temporalite/db: no such file or directory

@hferentschik
Copy link
Contributor

@vpavlin, @lorensr - this should fix the issue #140 ;-)

hferentschik added a commit to hferentschik/temporalite that referenced this issue Sep 23, 2022
hferentschik added a commit to hferentschik/temporalite that referenced this issue Sep 23, 2022
hferentschik added a commit to hferentschik/temporalite that referenced this issue Sep 23, 2022
hferentschik added a commit to hferentschik/temporalite that referenced this issue Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants