This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-12
Channels
- # adventofcode (135)
- # announcements (1)
- # beginners (192)
- # boot (5)
- # calva (130)
- # cider (42)
- # cljdoc (4)
- # cljs-dev (6)
- # cljsrn (3)
- # clojure (222)
- # clojure-europe (2)
- # clojure-greece (5)
- # clojure-italy (24)
- # clojure-nl (23)
- # clojure-russia (1)
- # clojure-spec (6)
- # clojure-uk (67)
- # clojurescript (35)
- # cursive (39)
- # datomic (61)
- # emacs (17)
- # figwheel (3)
- # figwheel-main (2)
- # fulcro (12)
- # hyperfiddle (10)
- # juxt (3)
- # leiningen (10)
- # nrepl (35)
- # off-topic (34)
- # onyx (3)
- # pathom (6)
- # quil (5)
- # re-frame (29)
- # reitit (6)
- # ring (1)
- # ring-swagger (8)
- # shadow-cljs (37)
- # spacemacs (9)
- # sql (9)
- # tools-deps (24)
- # unrepl (1)
- # vim (1)
@marshall @jaret Just thought you guys should know, I tried switching to the new CloudFormation console view when Amazon prompted, and when I tried to upgrade to 454 via https://s3.amazonaws.com/datomic-cloud-1/cft/454-8573/datomic-storage-454-8573.json (it's my first upgrade), I couldn't find the Reuse Existing Storage
option. Once I switched back to the old console UI, it was there again.
Actually, I think what happened is they changed the way they compose the UI from your configuration, because now it looks like this:
Other parameters
Restart
Set to 'false' only when initially creating a system, must be set to 'true' every time thereafter
Much less descriptive than before. I'm trying to complete the process using the new UI and I'll report back...I ran into the same problem. I had to go back and read everything carefully to find it. Other than that, the new UI is quite nice.
Actually, I think what happened is they changed the way they compose the UI from your configuration, because now it looks like this:
Other parameters
Restart
Set to 'false' only when initially creating a system, must be set to 'true' every time thereafter
Much less descriptive than before. I'm trying to complete the process using the new UI and I'll report back...i have a single ion function that routes my API, and quite often i get back a response: java.io.IOException: Connection reset by peer
. a second or third try sometimes solves the problem. not knowing much about CloudWatch logs, how can i debug this?
Can I receive the last time an attribute was updated in datomic? Something like this, but this doesn't work:
(d/q '[:find (max ?tx-time)
:in $ ?user
:where
[?user]
[?user :user/password ?password]
[?password _ _ ?tx _]
[?tx :db/txInstant ?tx-time]]
(d/db conn) 123))
i think you can just do
(d/q '{:find [(max ?tx)]
:in [$]
:where [[?p :user/email "" ?tx]]}
(client/db))
I've found:
(d/q
'[:find (max ?tx-time)
:in $ ?e
:where
[?e ?a _ ?tx _]
[?tx :db/txInstant ?tx-time]
[?a :db/ident :user/password]]
(d/history (d/db conn)) 123)
Does anyone know what configuration is required (or recommended) when creating a Datomic Client instance while running on an Ion in the cloud?
- https://docs.datomic.com/cloud/ions/ions-reference.html#server-type-ion looks relevant for creating a local client to connect to a cloud system - https://docs.datomic.com/client-api/datomic.client.api.html#var-client covers the cloud and peer cases
I'm suddenly failing to start my development environment, it seems the Datomic-Cloud private Maven repo is refusing access:
My deps.edn
is:
{:paths ["src"
"resources"]
:deps {org.clojure/clojure {:mvn/version "1.9.0"}
com.datomic/ion {:mvn/version "0.9.28"}
}
:mvn/repos {"datomic-cloud" {:url ""}}
:aliases
{:dev
{:extra-paths ["dev" "dev-resources"]
:extra-deps {com.datomic/ion-dev {:mvn/version "0.9.186"}
com.datomic/client-cloud {:mvn/version "0.8.71"}
}}}}
Strangely this happens only when I start my REPL from an EC2 instance - it's fine on my laptop.
@marshall eu-central-1
the deps resolution will access the s3 repos required with AWS java API calls, not just HTTP, so running on an ec2 instance will require that instance to have IAM permissions to use S3
It's got permissions to use s3 indeed, although not that repository
But it's surprising that this issue would arise just now
Is this the same error? https://dev.clojure.org/jira/browse/TDEPS-20 Symptoms seem similar.
@U06GS6P1N I saw a related issue yesterday when my instance role didnt have read * for s3; not sure if that’s a viable option for you, maybe at least add read permissions for the datomic-releases-1fc2183a bucket
I did and it worked, although I can't tell if adding the permissions solved it or if it was a transient error - not easy to tell as there must be caching involved
How do people usually evaluate the performance differences of Datomic queries? (without being impacted by the caching)
I'm getting "Assert failed: cfg" when trying to create a client instance in the Ion Cloud. I'm passing the config map:
{:server-type :ion
:system "my-system-name"
:region "us-west-2"
:endpoint ""}
@robert.mather.rmm https://docs.datomic.com/cloud/troubleshooting.html#assert-failed
@jaret If I'm reading that correctly, it means I can't run migrations and check things worked before the instances are exposed to the world, which is what I've been hoping to do all along.
@robert.mather.rmm I am sorry for not catching you on this earlier, I thought we had figured that out on the previous ticket by removing “defstate.” I didn’t get a chance to look at your new ticket until just now. But Marshall is right, connections as side effects of loading a namespace are not supported.
No worries. I knew that removing the defstates worked, but never got to the root of why I guess.
Yeah I think we left that hanging once removing it worked and never found root cause for you, but looking back it makes sense now.
Is the team thinking about a way to support sanity checks during the deploy phase? That would be very nice.
@lwhorton I missed your reply a while back - the client API source is in the jar file
Hi, i’m having a weird problem (on 441-8505). Trying to transact a bigint of any form 1N (bigint 1) (biginteger 1)
causes a “ExceptionInfo Cannot write 1 as tag null” error
is :db/index not a valid schema attribute in datomic cloud?
If I try to transact this:
(d/transact conn {:tx-data [{:db/ident :foo/bar
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/index true}]})
I get "Unable to resolve entity: :db/index".everything is indexed in the cloud?
I can't wait to try this out.
is that true for in-mem?
right, so can I put the attribute in avet?
ok, so for on-prem avet is configurable, but cloud is always on?
ok, that makes sense
super cool
yep, got the unique part