This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-11
Channels
- # announcements (21)
- # aws (2)
- # babashka (20)
- # beginners (47)
- # bristol-clojurians (2)
- # calva (63)
- # cider (24)
- # clj-kondo (22)
- # cljs-dev (3)
- # cljsrn (6)
- # clojars (3)
- # clojure (147)
- # clojure-europe (21)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (70)
- # clojurescript (37)
- # core-logic (6)
- # cursive (4)
- # data-science (2)
- # datomic (99)
- # events (1)
- # figwheel-main (20)
- # fulcro (26)
- # graalvm (6)
- # graphql (5)
- # kaocha (8)
- # leiningen (20)
- # meander (22)
- # nrepl (4)
- # off-topic (27)
- # pathom (5)
- # pedestal (3)
- # re-frame (20)
- # reagent (4)
- # shadow-cljs (43)
- # spacemacs (11)
- # tools-deps (55)
- # tree-sitter (6)
- # vim (8)
- # xtdb (18)
- # yada (14)
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:
I am able to clone it directly with git
red hat >.<
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL=" "
BUG_REPORT_URL=" "
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
it uses the ssh agent to obtain identities
so - is that running?
ssh-agent
if so, does it have your identity ssh-add -l
if not, add it
checking
those cover 90% of these issues
https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent is a good overview of those steps too
appreciated. I turned it on and got a new error. Trying to figure out how to add my key now.
ssh-add ~/.ssh/id_rsa
$ 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
does that seem like a different error?
yeah, that seems bad
(after following steps of turning on ssh-agent and adding key)
hahahaha
might be in how you're running ssh-agent
I believe you
you've walked off my knowledge in this area :)
alright! good start. much appreciated
sudo mount /tmp -o remount,exec
internet suggests maybe /tmp needs exec ?
or set a different tmp dir
clj -
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
different lib, same problem: https://support.cloudbees.com/hc/en-us/articles/215281717-Jenkins-fails-to-start-with-JNA-error and pretty good writeup of the alternatives
interesting
hahahahahaha
yesssss
almost done setting all this up jeeze
now I'm getting UnknownHost key, but at least we're making progress in some direction
of course I see there are 6 ssh-agents running now 😑
well you might end up running into https://clojure.atlassian.net/browse/TDEPS-104
https://stackoverflow.com/questions/2003419/com-jcraft-jsch-jschexception-unknownhostkey
that fixed it
😮 holy snap
that's goin on the fridge
okay last problem, most of the things downloaded
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
@alexmiller is there a way to comment on that issue?
or just... include that link in there I guess
specifically this is what I did:
$ ssh-keyscan -H -t rsa >> known_hosts
last piece of the puzzle was a stale .m2 repo that had wrong perms
do you know where the git stuff gets cloned to? I don't see it in .m2
.gitlibs
sometimes it helps if I just post the questions and then get embarrassed and try harder
some of these questions were answerable at https://clojure.org/reference/deps_and_cli btw