Fork me on GitHub
#datomic
<
2019-10-08
>
igrishaev06:10:25

Does anyone know what caused such an error when trying to create a new database in Datomic?

Unhandled clojure.lang.ExceptionInfo
   Error communicating with HOST 127.0.0.1 on PORT 4334
Caused by org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException
The transactor has been started with no errors using local Postgres. The PG’s database and user exist.

marshall13:10:33

The most common cause for this is misconfigured host and alt-host in your transactor properties file

MegaMatt19:10:27

okay, so i got past my issue with not being able to download from by changing it to https:. Now it downloads everything but get stuck on com.datomic:java-io:jar:0.1.11. here’s my deps. all other datomic artifacts downloaded

Joe Lane19:10:52

@matthewdaniel What AWS Region are you in? Are you trying to perform this action locally or in an aws codebuild (Or something like it)?

MegaMatt19:10:04

locally. my deploy is going to be going to us-east-2 but even when i try aws s3 cp . i’m unable to get the file.

MegaMatt19:10:23

and the above worked for all other jar/pom files

Joe Lane19:10:41

Ah, dang I was thinking it was a different issue I know the answer to. What does "get stuck on..." mean? Do you have a stacktrace?

MegaMatt19:10:45

pretty sure it is stuck from the file not existing like the rest.

Alex Miller (Clojure team)20:10:04

I don't think there is a com.datomic/java-io 0.1.11

Alex Miller (Clojure team)20:10:10

I would be interested to know what your original exception was

Alex Miller (Clojure team)20:10:23

any chance you could roll back and do clj -Sdeps '{:aliases {:v {:verbose true}}}' -A:v:dev -Stree and attach the output as a file here?

MegaMatt20:10:13

@alexmiller what do you mean by roll back

MegaMatt20:10:17

here are the deps but i didn’t rollback

Alex Miller (Clojure team)20:10:30

how are you getting the tree if you're failing to get the deps?

Alex Miller (Clojure team)20:10:31

that tree is showing com.datomic/java-io 0.1.14 - why were you trying to get 0.1.10?

MegaMatt20:10:11

i’m not sure. i ran your command to get the tree and i ran clojure -Adev -m datomic.ion.dev '{:op :push :creds-profile "default" :region "us-east-2" :uname "test1"}' and got the other message. i haven’t changed anything

MegaMatt20:10:48

would a rollback fix things? I’m new to this so not sure why i’d get different dep warnings based on what i typed into the terminal

Alex Miller (Clojure team)20:10:15

different aliases will affect what classpath you're building

Alex Miller (Clojure team)20:10:32

I'm trying to get to the point where you are having an error to figure out why you are having it

MegaMatt20:10:55

sorry i’m not being more helpful but i’m not following well. All i’ve done basically is add a deps.edn file and ion-config.edn file and tried to push. it starts downloading a bunch of deps and tips over on the java-io one. would it help to rm my maven repository and push again?

Alex Miller (Clojure team)20:10:44

what you posted above doesn't seem to hit that, so not sure what the problem is

MegaMatt20:10:44

when i ran the above it output something like “downloading … ion-dev” and many other files. Those were created in .m2/repository path.

MegaMatt20:10:28

rm -rf ~/.m2/repository caused a widescale download. it did download java-io 1.14 but failed later on java-io 1.11

MegaMatt20:10:03

i really appreciate the effort to help

Alex Miller (Clojure team)20:10:38

I mean originally you were using s3 url and something didn't work that sent you down this path. what error were you getting at the beginning?

MegaMatt20:10:47

in the very beginning i was getting a problem downloading com.datomic/ion from the deps.

cjsauer20:10:25

Running into this while trying to deploy via CodeDeploy. UnknownError just shows Access Denied when expanded. What would cause this?

cjsauer20:10:34

Oh…I somehow deleted the S3 bucket containing the revision picard-facepalm

cjsauer20:10:11

Well, the IAM policy for that bucket, not the bucket itself. Hence the Access Denied.

dmarjenburgh20:10:17

@matthewdaniel Do you have valid AWS credentials in the environment where you retrieve the deps? I think I encountered something like it in the past and this was the issue (even though the s3 maven repo is public, you need some credentials)

MegaMatt21:10:00

i entered my credentials into the .m2/settings.xml and it did not help. I am however able to download all packages if i use the https endpoints for the files. It just seems that i now have a deps issue where it is downloading a version of java-io from datomic that doesn’t exist. Even if i try to aws s3 cp for the file i’m unable to get it.

MegaMatt21:10:44

when i do clj -Adev -m datomic.ion.dev '{:op :push :creds-profile "default" :region "us-east-2" :uname "test1"}' it downloads maybe a hundred files and one of them is java-io 1.14 but then much later in the process i get the following error

MegaMatt21:10:53

{:command-failed
 "{:op :push :creds-profile \"default\" :region \"us-east-2\" :uname \"test1\"}",
 :causes
 ({:message
   "Failed to read artifact descriptor for com.datomic:java-io:jar:0.1.11",
   :class ArtifactDescriptorException}
  {:message
   "Could not transfer artifact com.datomic:java-io:pom:0.1.11 from/to datomic-cloud (): Forbidden (403)",
   :class ArtifactResolutionException}
  {:message
   "Could not transfer artifact com.datomic:java-io:pom:0.1.11 from/to datomic-cloud (): Forbidden (403)",
   :class ArtifactTransferException}
  {:message "Forbidden (403)", :class HttpResponseException})}

MegaMatt21:10:44

@dmarjenburgh @alexmiller well, i cheated and renamed and copied .m2/repository 1.14 into 1.11 and it carried on its downloads pass the break and successfully pushed. 😳:man-shrugging: thank you for your help. since i’m only at the initial stage for starting a side project i’ll just see if i can carry on without doing it the right way for now.