Fork me on GitHub
Lone Ranger20:03:41

no sure if this is a tool-deps specific question exactly, does anyone have any suggestions on how to troubleshoot this?

$ clj -R:nREPL figwheel.main -bo min
Cloning: :team/repo.git
Error building classpath. connector is not available:
com.jcraft.jsch.agentproxy.AgentProxyException: connector is not available:

Lone Ranger20:03:37

I am able to clone it directly with git

Lone Ranger20:03:12

$ cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID_LIKE="rhel fedora"
PRETTY_NAME="CentOS Linux 7 (Core)"


Alex Miller (Clojure team)20:03:15

it uses the ssh agent to obtain identities

Alex Miller (Clojure team)20:03:48

if so, does it have your identity ssh-add -l

Alex Miller (Clojure team)20:03:26

those cover 90% of these issues

Lone Ranger20:03:24

appreciated. I turned it on and got a new error. Trying to figure out how to add my key now.

Lone Ranger20:03:58

$ clj -R:nREPL figwheel.main -bo min 
Cloning: :team/repo.git
Error building classpath. /tmp/jna--1712433994/jna1023170488903582608.tmp: /tmp/jna--1712433994/jna1023170488903582608.tmp: failed to map segment from shared object: Operation not permitted
java.lang.UnsatisfiedLinkError: /tmp/jna--1712433994/jna1023170488903582608.tmp: /tmp/jna--1712433994/jna1023170488903582608.tmp: failed to map segment from shared object: Operation not permitted

Lone Ranger20:03:03

does that seem like a different error?

Lone Ranger20:03:24

(after following steps of turning on ssh-agent and adding key)

Alex Miller (Clojure team)20:03:32

might be in how you're running ssh-agent

Lone Ranger20:03:32

I believe you

Alex Miller (Clojure team)20:03:49

you've walked off my knowledge in this area :)

Lone Ranger20:03:13

alright! good start. much appreciated

Alex Miller (Clojure team)20:03:44

sudo mount /tmp -o remount,exec internet suggests maybe /tmp needs exec ?

Alex Miller (Clojure team)20:03:47

or set a different tmp dir

Alex Miller (Clojure team)20:03:32

clj -.tmpdir=/my/tmp -R:nREPL figwheel.main -bo min

Alex Miller (Clojure team)20:03:07

the git ssh stuff happens through jsch which talks to ssh-agent via jna. it appears jna will make and use stuff in the tmp dir

Alex Miller (Clojure team)20:03:27

I've never seen this before, so you get a cookie

😂 4
🍪 4
Lone Ranger20:03:21

almost done setting all this up jeeze

Lone Ranger20:03:46

now I'm getting UnknownHost key, but at least we're making progress in some direction

Lone Ranger20:03:12

of course I see there are 6 ssh-agents running now 😑

Lone Ranger20:03:45

that fixed it

Lone Ranger20:03:13

😮 holy snap

Lone Ranger20:03:46

that's goin on the fridge

Lone Ranger20:03:55

okay last problem, most of the things downloaded

Lone Ranger20:03:06

Error building classpath. Failed to read artifact descriptor for org.clojure:clojure:jar:1.10.1
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.clojure:clojure:jar:1.10.1

Lone Ranger20:03:42

@alexmiller is there a way to comment on that issue?

Lone Ranger20:03:05

or just... include that link in there I guess

Lone Ranger20:03:29

specifically this is what I did:

$ ssh-keyscan -H -t rsa  >> known_hosts

Lone Ranger20:03:24

last piece of the puzzle was a stale .m2 repo that had wrong perms

Lone Ranger20:03:19

do you know where the git stuff gets cloned to? I don't see it in .m2

Lone Ranger20:03:38

sometimes it helps if I just post the questions and then get embarrassed and try harder

duckie 24