Giter Site home page Giter Site logo

Comments (6)

marchmallow avatar marchmallow commented on May 23, 2024 2

@jlegrone I am trying temporalite for the first time and indeed hitting this just as I do (following the README steps):

% go install github.com/temporalio/temporalite/cmd/temporalite@latest
go: downloading github.com/temporalio/temporalite v0.0.0-20220801155940-a4b633da82bc
% temporalite start --namespace default
2022/08/02 13:46:14 error setting up schema: unable to create SQLite admin DB: unable to open database file: out of memory (14)

If instead I do temporalite start --namespace default -f my_test.db then it works

from temporalite-archived.

jlegrone avatar jlegrone commented on May 23, 2024

I'm a bit concerned about automatically creating a new directory. If this was due to a typo, then workflows could be started right away in the new database and merging state between the old and new databases would be tricky.

A change to improve the error message would be very welcome however!

from temporalite-archived.

rgooch avatar rgooch commented on May 23, 2024

@jlegrone Which OS did you run this on? I think this is similar to the problem I'm seeing on MacOS.
Using the default DB location:
~/go/bin/temporalite start --namespace local
2022/08/01 09:12:37 error setting up schema: unable to create SQLite admin DB: unable to open database file: out of memory (14)

Using a specified DB location where the parent directory does not exist:
~/go/bin/temporalite start --namespace local -f ~/notthere/my.db
2022/08/01 09:12:00 error setting up schema: unable to create SQLite admin DB: unable to open database file: out of memory (14)

from temporalite-archived.

jlegrone avatar jlegrone commented on May 23, 2024

@marchmallow can you confirm that you get a more explicit error message now that #99 is merged?

from temporalite-archived.

marchmallow avatar marchmallow commented on May 23, 2024

@marchmallow can you confirm that you get a more explicit error message now that #99 is merged?

@jlegrone yes now I see a meaningful error message:

% temporalite start --namespace default
2022/08/11 16:56:02 error setting up schema: stat /Users/max.gallo/Library/Application Support/temporalite/db: no such file or directory

So eg I created the dir and works:

% mkdir  /Users/max.gallo/Library/Application\ Support/temporalite/db -p
% temporalite start --namespace default
{"level":"info","ts":"2022-08-11T16:57:05.983+0100","msg":"Successfully saved cluster metadata.","component":"metadata-initializer","cluster-name":"active","logging-call-at":"fx.go:631"}

from temporalite-archived.

longquanzheng avatar longquanzheng commented on May 23, 2024

@jlegrone I am trying temporalite for the first time and indeed hitting this just as I do (following the README steps):

% go install github.com/temporalio/temporalite/cmd/temporalite@latest
go: downloading github.com/temporalio/temporalite v0.0.0-20220801155940-a4b633da82bc
% temporalite start --namespace default
2022/08/02 13:46:14 error setting up schema: unable to create SQLite admin DB: unable to open database file: out of memory (14)

If instead I do temporalite start --namespace default -f my_test.db then it works

Got the same error and this command works for me

from temporalite-archived.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.