Fork me on GitHub
#datomic
<
2021-07-21
>
Tatiana12:07:28

Hey everyone! We're creating a new storage + compute stack using 884-9095 version for both of them. After creation was completed, I've configured push via github actions, which works as intended and everything gets to CodeDeploy. While processing it in CodeDeploy gets to ValidateService event and then fails with ScriptTimedOut(Script at specified location: scripts/deploy-validate failed to complete in 300 seconds). I've checked datomic system's logs and I noticed this error ":datomic.cloud.cluster-node/-main failed: Syntax error macroexpanding at (core.clj:152:3)." which apparently has been there since system's creation. In addition, I've received a TargetTracking-table Alarm in Cloudwatch directly after creating the stack. Would be grateful for any hints on this

Jarrod Taylor (Clojure team)12:07:18

Have you run the application locally?

Tatiana13:07:08

@U0508JRJC Yes. But I used dev-local structure when run application locally.

Jarrod Taylor (Clojure team)13:07:11

That should be fine. I just know I’ve burned myself before by assuming a change was correct and not actually running it before deploying and then wondering why I was trying to debug a timed out deploy. So wanted to start there. My next question is were there any dependency overrides reported with pushing? If so did you update you deps files to use those and again try to run locally?

Tatiana14:07:00

Yes, there were conflicts in dependency overrides. Updated clojure version and added all other dependencies to my deps.edn file/ Works locally but github actions still fail. This recently added dependency is causing troubles com.fasterxml.jackson.core/jackson-core {:mvn/version "2.10.1"}. The error is Execution error (ClassNotFoundException) at jdk.internal.loader.BuiltinClassLoader/loadClass (BuiltinClassLoader.java:581). com.fasterxml.jackson.core.util.JacksonFeature

Jarrod Taylor (Clojure team)14:07:02

Where is that error reported?

Tatiana14:07:17

@U0508JRJC on step running: clojure -A:ion-dev '{:op :push}' in github action.

Jarrod Taylor (Clojure team)14:07:42

We are working to keep dependencies up to date but your feedback is helpful here. Would you open a https://support.cognitect.com/hc/en-us/requests/new and include cloud versions and your deps? If you have a minimal application that exercises those deps as well that would be excellent.

Tatiana14:07:03

I fixed my github action deploy. I added com.fasterxml.jackson.core/jackson-annotations {:mvn/version "2.10.1"} and com.fasterxml.jackson.core/jackson-databind {:mvn/version "2.10.1"} in addition to com.fasterxml.jackson.core/jackson-core {:mvn/version "2.10.1"} In this moment I don't see another conficts and push going right. But I still get error in CodeDeploy which I explained earlier(ScriptTimedOut in ValidateService). Do you have any idea how I can fix this?

Jarrod Taylor (Clojure team)15:07:31

I am not clear on the specifics of what troubles you have had with github actions. Can we remove that from the equation here? Interested in helping to resolve the deps issues and opening a ticket would be a good way to help us enumerate version issues users are running into and to track progress towards resolving this specific problem.

kenny15:07:17

@U028H6X0KRS post the full stacktrace

jaret16:07:43

@U028H6X0KRS what version of ion/ion-dev are you using?

Tatiana19:07:44

@U0508JRJC I send ticket how you recommended. I remove github actions from equation. And try use push and deploy command from my terminal. Unfortunately, Code Deploy still fails. @U083D6HK9 I mentioned the content of the error earlier: ValidateService event and then fails with ScriptTimedOut(Script at specified location: scripts/deploy-validate failed to complete in 300 seconds). If you tell me where I can find something more detailed, I will gladly provide it to you. @U1QJACBUM we use {com.datomic/ion-dev {:mvn/version "0.9.290"}

jaret19:07:25

@U028H6X0KRS and what version of ion?

Tatiana19:07:55

@U1QJACBUM I assume you mean this com.datomic/ion {: mvn/version "0.9.50"}?

wcf12:07:23

Hey guys, Is there an easy way or tool to migrate data from Datomic to MongoDB? Datomic is running on AWS and wanted to migrate the data to DocumentDB (AWS's MongoDB implementation)

hadils15:07:35

Hi! Is there a startup hook in datomic cloud? I need to run a mount start somewhere. I can put it in the http direct middleware but it would be cleaner to use a startup hook.