如何修复“在目录中找不到原子”

时间:2019-09-01 21:57:27

标签: clojure datomic

我正在尝试使用本地postgresql运行datomic pro,并与对等体进行事务处理。

我能够启动数据库和事务处理程序而没有任何问题:

db-storage       | 2019-09-01 21:26:34.823 UTC [1] LOG:  starting PostgreSQL 12beta3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 8.3.0) 8.3.0, 64-bit
db-storage       | 2019-09-01 21:26:34.823 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db-storage       | 2019-09-01 21:26:34.823 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db-storage       | 2019-09-01 21:26:34.835 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-storage       | 2019-09-01 21:26:34.849 UTC [18] LOG:  database system was shut down at 2019-09-01 21:25:15 UTC
db-storage       | 2019-09-01 21:26:34.852 UTC [1] LOG:  database system is ready to accept connections
db-transactor    | Launching with Java options -server -Xms1g -Xmx1g -XX:+UseG1GC -XX:MaxGCPauseMillis=50
db-transactor    | Starting datomic:sql://<DB-NAME>?jdbc:postgresql://localhost:5432/datomic?user=datomic&password=datomic-password, you may need to change the user and password parameters to work with your jdbc driver ...
db-transactor    | System started datomic:sql://<DB-NAME>?jdbc:postgresql://localhost:5432/datomic?user=datomic&password=datomic-password, you may need to change the user and password parameters to work with your jdbc driver

(它们都在具有network_mode = host的容器上运行) 我认为这些警告可能源于我使用datomic作为用户和数据库名称的事实,但是我不确定。

但是,当我尝试启动对等服务器时,遇到以下错误:

$ ./bin/run -m datomic.peer-server -h localhost -p 8998 -a datomic-peer-user,datomic-peer-password -d datomic,datomic:sql://datomic?jdbc:postgresql://localhost:5432/datomic?user=datomic\&password=datomic-password
Exception in thread "main" java.lang.RuntimeException: Could not find datomic in catalog
    at datomic.peer$get_connection$fn__18852.invoke(peer.clj:681)
    at datomic.peer$get_connection.invokeStatic(peer.clj:669)
    at datomic.peer$get_connection.invoke(peer.clj:666)
    at datomic.peer$connect_uri.invokeStatic(peer.clj:763)
    at datomic.peer$connect_uri.invoke(peer.clj:755)
        (...)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)

我已经尝试过更改一堆配置,但没有成功。有人可以帮我吗?

0 个答案:

没有答案