This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-18
Channels
- # beginners (15)
- # boot (23)
- # cider (8)
- # clara (29)
- # cljs-dev (86)
- # cljsrn (36)
- # clojars (9)
- # clojure (211)
- # clojure-dusseldorf (5)
- # clojure-italy (21)
- # clojure-sg (2)
- # clojure-spec (4)
- # clojure-uk (12)
- # clojurescript (204)
- # cursive (5)
- # data-science (12)
- # datomic (15)
- # dirac (99)
- # emacs (1)
- # events (2)
- # figwheel (1)
- # fulcro (9)
- # graphql (27)
- # hoplon (50)
- # instaparse (9)
- # juxt (61)
- # keechma (6)
- # leiningen (1)
- # luminus (4)
- # lumo (24)
- # off-topic (24)
- # om (16)
- # onyx (17)
- # parinfer (35)
- # pedestal (3)
- # planck (12)
- # protorepl (8)
- # re-frame (15)
- # reagent (22)
- # ring (1)
- # rum (1)
- # spacemacs (3)
- # uncomplicate (4)
- # vim (5)
- # yada (1)
Hi team, I’ve started testing Roll with Jons help and have reached a blocker (I think). Can someone point me in the right direction?
to sanity check mach/roll I first ran “mach info” and that was fine. Then I ran “mach roll-info” based on seeing that in the machfile, and then I see…
➜ edge git:(master) ✗ mach roll-info $ git describe --dirty --long --tags --match [0-9]* 0.0.1-66-g054ed48-dirty Error whilst performing shell command.
am I on the right track or is this something that needs debugging. BTW I’m in no hurry on this but grateful for any help
@dominicm I installed yesterday using “sudo npm install -g @juxt/mach” so I presume yes
d/w, you're probably up to date. I thought edge was more experimental than it is. So all is good there.
~/src/github.com/juxt/edge master*
❯ mach roll-info
$ git describe --dirty --long --tags --match [0-9]*
0.0.1-66-g054ed48
evalmachine.<anonymous>:98
throw ex;
^
Error: Error whilst performing shell command.
at roll$core$sh (evalmachine.<anonymous>:171:8)
at roll$core$resolve_region (evalmachine.<anonymous>:235:122)
at evalmachine.<anonymous>:526:42
at cljs.core.PersistentVector.cljs$core$IReduce$_reduce$arity$3 (<embedded>:1106:284)
at Function.cljs.core.reduce.cljs$core$IFn$_invoke$arity$3 (<embedded>:577:181)
at cljs.core.reduce (<embedded>:574:174)
at Function.roll.core.preprocess.cljs$core$IFn$_invoke$arity$variadic (evalmachine.<anonymous>:524:35)
at roll$core$preprocess (evalmachine.<anonymous>:500:29)
at evalmachine.<anonymous>:47:36
at evalmachine.<anonymous>:70:43
Is this your full error? ^^➜ edge git:(master) ✗ mach roll-info $ git describe --dirty --long --tags --match [0-9]* 0.0.1-66-g054ed48-dirty Error whilst performing shell command. ➜ edge git:(master) ✗
Odd that you don't get a stack, but it's the same error I think 🙂. I wondered if you were cutting it off.
@steveb8n https://github.com/SevereOverfl0w/roll/tree/sherrormsg can you try this branch/fork? Just:
git clone
cd roll
git checkout sherrormsg
lein install
then try run mach roll-info
from edge again➜ edge git:(master) ✗ mach roll-info $ git describe --dirty --long --tags --match [0-9]* 0.0.1-66-g054ed48-dirty Error whilst performing shell command: [“aws” “configure” “get” “region”] ➜ edge git:(master) ✗
https://github.com/juxt/edge/blob/054ed4879ba113ca3e52a732cb648e24ddc66921/resources/config.edn#L36 you can change this line to be your expected AWS profile for people if you don't want to use environment variable.
You can cat ~/.aws/credentials
to figure out which profiles you have.
@jonpither https://github.com/SevereOverfl0w/roll/commit/ddd5471d1581f7afa11952a825d3aeb4a3f9663b here's my patch, it's a bit crap because it just prints out the vector. You might want to do something a bit fancier similar to mach.
now getting Error whilst performing shell command: [“aws” “s3api” “head-object” “--bucket” “roll-deployment-artifacts” “--key” “”]
either way, might be worth handling empty region in roll mach script for future noobs
https://github.com/juxt/edge/blob/054ed4879ba113ca3e52a732cb648e24ddc66921/resources/config.edn#L57 I think this is the key, or supposed to be. Haven't followed the code fully yet, but you might know what's wrong already based on that line
https://github.com/juxt/edge/blob/054ed4879ba113ca3e52a732cb648e24ddc66921/resources/config.edn#L36 roll needs this key set, you can change it to #or [#env AWS_PROFILE "default"]
. Uncertain whether making default
the default is a good idea rn, but under consideration.
(it probably is a good idea, I just have no idea how people use awscli in practice, I use it by not using it and just having the config file saying it's there.)
Error whilst performing shell command: [“aws” “s3api” “head-object” “--bucket” “roll-deployment-artifacts” “--key” “” “--profile” “default”]