Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with https://juxt.pro/crux/docs/configuration.html#standalone #266

Closed
pwhittin opened this issue Jun 21, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@pwhittin
Copy link

Problems with https://juxt.pro/crux/docs/configuration.html#standalone

Starting with a new Edge component:

To add Crux as a project dependency:

Adding:

juxt/crux {:mvn/version "19.06-1.6.0-alpha"}

fails because the specified version does not exist.

Adding:

juxt/crux {:mvn/version "19.06-1.1.0-alpha"}

as indicated on the CRUX github page at https://github.com/juxt/crux works.

Start the standalone system:

Executing:

(def ^crux.api.ICruxAPI system
  (crux/start-standalone-system {:kv-backend "crux.kv.memdb.MemKv"
                                 :db-dir "data/db-dir-1"}))

results in

Syntax error (IllegalStateException) compiling def at (REPL:1:1).
system already refers to: #'dev-extras/system in namespace: dev

Executing (note the name change from system to csys):

(def ^crux.api.ICruxAPI csys
  (crux/start-standalone-system {:kv-backend "crux.kv.memdb.MemKv"
                                 :db-dir "data/db-dir-1"}))

results in

Execution error - invalid arguments to crux.bootstrap.standalone/start-standalone-system at (standalone.clj:85).
{:kv-backend "crux.kv.memdb.MemKv", :db-dir "data/db-dir-1"} - failed: (contains? % :event-log-dir)

The following executed with only a couple of warning logs:

(def ^crux.api.ICruxAPI csys
  (crux/start-standalone-system {:kv-backend "crux.kv.memdb.MemKv"
                                 :db-dir "data/db-dir-1"
                                 :event-log-dir "data/event-log-dir"}))

which were:

14:20:46.259 WARN  crux.kv.memdb [main]
Using fsync on MemKv has no effect.
14:20:46.259 WARN  crux.kv.memdb [main]
Using sync? on MemKv has no effect. Persistence is disabled.
@hraberg hraberg added the docs label Jun 24, 2019
@hraberg hraberg added this to To do in XTDB Development via automation Jun 24, 2019
@hraberg hraberg added this to the Beta milestone Jun 24, 2019
@refset
Copy link
Contributor

refset commented Jun 24, 2019

Related to #261 and incorrect version number / typo in docs.

jonpither added a commit that referenced this issue Jun 25, 2019
Fixes #266 Make `event-log-dir` mandatory for standalone
XTDB Development automation moved this from To do to Done Jun 25, 2019
@jarohen jarohen removed this from the Beta milestone Nov 15, 2019
@jarohen jarohen added the 1.x label Apr 21, 2023
@jarohen jarohen removed the docs label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants