Fork me on GitHub
#datomic
<
2024-01-09
>
itaied16:01:01

has anyone faced this error when trying to import-cloud?

; Execution error (IllegalArgumentException) at datomic.dev-local.impl/fn (impl.clj:493).
; This client does not support dev-local import.
I have followed the docs here https://docs.datomic.com/cloud/datomic-local.html#getting-started
(defn sync-local []
  (let [conf (->> (io/resource "dev/config.edn")
                  slurp
                  edn/read-string)]
    (dl/import-cloud
     {:source (merge conf {:db-name "dev-itai"})
      :dest {:system "production-rep"
             :server-type :datomic-local
             :db-name "db-name"
             :storage-dir :mem}})))
deps:
com.datomic/client-cloud {:mvn/version "1.0.124"}
com.datomic/local {:mvn/version "1.0.276"}

danieroux18:01:19

No, and my guess is that :storage-dir :mem is the issue. Try with an on-disk directory?

itaied08:01:27

the on disk worked! thank you. I wonder why it's no documented tho..