Skip to content

Instantly share code, notes, and snippets.

@rstradling
Last active December 14, 2015 06:19
Show Gist options
  • Save rstradling/5041728 to your computer and use it in GitHub Desktop.
Save rstradling/5041728 to your computer and use it in GitHub Desktop.
16:08:30.818 [operate-159] ERROR p.core.operations - Phase Error in :bootstrap
clojure.lang.ExceptionInfo: SSH connect : server 107.20.32.231, port 22, user ec2-user
at clojure.core$ex_info.invoke(core.clj:4227) ~[clojure-1.4.0.jar:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:88) ~[na:na]
at pallet.ssh.transport$attempt_connect.invoke(transport.clj:118) ~[na:na]
at pallet.ssh.transport$connect$fn__48056.invoke(transport.clj:134) ~[na:na]
at pallet.ssh.transport$connect.invoke(transport.clj:133) ~[na:na]
at pallet.transport.ssh$lookup_or_create_state.invoke(ssh.clj:56) ~[na:na]
at pallet.transport.ssh$open.invoke(ssh.clj:63) ~[na:na]
at pallet.transport.ssh.SshTransport.open(ssh.clj:70) ~[na:na]
at pallet.ssh.execute$get_connection.invoke(execute.clj:63) ~[na:na]
at pallet.ssh.execute$ssh_script_on_target.invoke(execute.clj:81) ~[na:na]
at pallet.executors$default_executor.invoke(executors.clj:62) ~[na:na]
at pallet.action_plan$execute_action_map.invoke(action_plan.clj:584) ~[na:na]
at pallet.action_plan$execute$exec_action__43067$execute_with_error_check__43068.invoke(action_plan.clj:648) ~[na:na]
at clojure.algo.monads$fn__41545$m_bind_state__41550$fn__41551.invoke(monads.clj:340) ~[na:na]
at pallet.action_plan$execute.invoke(action_plan.clj:652) ~[na:na]
at pallet.core.api$execute_action_plan_STAR_.invoke(api.clj:157) ~[na:na]
at pallet.core.api$eval48377$fn__48379.invoke(api.clj:179) ~[na:na]
at clojure.lang.MultiFn.invoke(MultiFn.java:205) ~[clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyToHelper(AFn.java:193) [clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.4.0.jar:na]
at clojure.core$apply.invoke(core.clj:607) ~[clojure-1.4.0.jar:na]
at clojure.core$partial$fn__4076.doInvoke(core.clj:2349) ~[clojure-1.4.0.jar:na]
at clojure.lang.RestFn.invoke(RestFn.java:397) ~[clojure-1.4.0.jar:na]
at pallet.core.primitives$async_fsm$run_async__48489$f_runner__48490.invoke(primitives.clj:38) ~[na:na]
at pallet.algo.fsmop$report_exceptions$report_exceptions__46069.invoke(fsmop.clj:63) [na:na]
at clojure.lang.AFn.call(AFn.java:18) [clojure-1.4.0.jar:na]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_37]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [na:1.6.0_37]
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:491) ~[jsch-0.1.49.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:162) ~[jsch-0.1.49.jar:na]
at clj_ssh.ssh$connect.invoke(ssh.clj:301) ~[na:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:76) ~[na:na]
... 29 common frames omitted
15:18:32.622 [operate-33] WARN jclouds.compute - to avoid creating temporary keys in aws-ec2, use templateOption overrideLoginCredentialWith(id_rsa)
15:19:41.778 [user thread 4] INFO n.s.s.c.SecurityUtils - BouncyCastle registration succeeded
15:19:41.840 [user thread 4] INFO n.s.s.t.TransportImpl - Client identity string: SSH-2.0-SSHJ_0_8_1_SNAPSHOT
15:19:42.341 [user thread 4] INFO n.s.s.t.TransportImpl - Server identity string: SSH-2.0-OpenSSH_5.3
15:19:42.792 [user thread 4] INFO n.s.s.c.c.d.SessionChannel - Will request `sftp` subsystem
15:19:43.826 [user thread 4] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `chmod 755 /tmp/init-bootstrap`
15:19:44.024 [user thread 4] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `ln -fs /tmp/init-bootstrap bootstrap`
15:19:44.249 [user thread 4] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `/tmp/init-bootstrap init`
15:19:44.468 [user thread 4] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `sudo /tmp/init-bootstrap start`
15:19:45.870 [user thread 1] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `/tmp/init-bootstrap status`
15:19:46.090 [user thread 1] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `/tmp/init-bootstrap stdout`
15:19:46.283 [user thread 1] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `/tmp/init-bootstrap stderr`
15:19:46.484 [user thread 1] INFO n.s.s.c.c.d.SessionChannel - Will request to exec `/tmp/init-bootstrap exitstatus`
15:19:46.554 [user thread 4] INFO n.s.s.t.TransportImpl - Disconnected - BY_APPLICATION
15:19:48.127 [operate-62] WARN clj-ssh.ssh - Permanently added '23.23.39.71' (RSA) to the list of known hosts.
15:19:54.928 [operate-62] ERROR pallet.action-plan - Exception in execute-action-map
clojure.lang.ExceptionInfo: SSH connect : server 23.23.39.71, port 22, user ec2-user
at clojure.core$ex_info.invoke(core.clj:4227) ~[clojure-1.4.0.jar:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:88) ~[na:na]
at pallet.ssh.transport$attempt_connect.invoke(transport.clj:118) ~[na:na]
at pallet.ssh.transport$connect$fn__10415.invoke(transport.clj:134) ~[na:na]
at pallet.ssh.transport$connect.invoke(transport.clj:133) ~[na:na]
at pallet.transport.ssh$lookup_or_create_state.invoke(ssh.clj:56) ~[na:na]
at pallet.transport.ssh$open.invoke(ssh.clj:63) ~[na:na]
at pallet.transport.ssh.SshTransport.open(ssh.clj:70) ~[na:na]
at pallet.ssh.execute$get_connection.invoke(execute.clj:63) ~[na:na]
at pallet.ssh.execute$ssh_script_on_target.invoke(execute.clj:81) ~[na:na]
at pallet.executors$default_executor.invoke(executors.clj:62) ~[na:na]
at pallet.action_plan$execute_action_map.JSchException Auth fail com.jcraft.jsch.Session.connect (Session.java:491)
user=> invoke(action_plan.clj:584) ~[na:na]
at pallet.action_plan$execute$exec_action__5426$execute_with_error_check__5427.invoke(action_plan.clj:648) [na:na]
at clojure.algo.monads$fn__3904$m_bind_state__3909$fn__3910.invoke(monads.clj:340) [na:na]
at pallet.action_plan$execute.invoke(action_plan.clj:652) [na:na]
at pallet.core.api$execute_action_plan_STAR_.invoke(api.clj:157) [na:na]
at pallet.core.api$eval10736$fn__10738.invoke(api.clj:179) [na:na]
at clojure.lang.MultiFn.invoke(MultiFn.java:205) [clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyToHelper(AFn.java:193) [clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.4.0.jar:na]
at clojure.core$apply.invoke(core.clj:607) [clojure-1.4.0.jar:na]
at clojure.core$partial$fn__4076.doInvoke(core.clj:2349) [clojure-1.4.0.jar:na]
at clojure.lang.RestFn.invoke(RestFn.java:397) [clojure-1.4.0.jar:na]
at pallet.core.primitives$async_fsm$run_async__10848$f_runner__10849.invoke(primitives.clj:38) [na:na]
at pallet.algo.fsmop$report_exceptions$report_exceptions__8428.invoke(fsmop.clj:63) [na:na]
at clojure.lang.AFn.call(AFn.java:18) [clojure-1.4.0.jar:na]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_37]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [na:1.6.0_37]
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:491) ~[jsch-0.1.49.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:162) ~[jsch-0.1.49.jar:na]
at clj_ssh.ssh$connect.invoke(ssh.clj:301) ~[na:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:76) ~[na:na]
... 29 common frames omitted
15:19:54.984 [operate-62] ERROR p.core.operations - Phase Error in :bootstrap
clojure.lang.ExceptionInfo: SSH connect : server 23.23.39.71, port 22, user ec2-user
at clojure.core$ex_info.invoke(core.clj:4227) ~[clojure-1.4.0.jar:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:88) ~[na:na]
at pallet.ssh.transport$attempt_connect.invoke(transport.clj:118) ~[na:na]
at pallet.ssh.transport$connect$fn__10415.invoke(transport.clj:134) ~[na:na]
at pallet.ssh.transport$connect.invoke(transport.clj:133) ~[na:na]
at pallet.transport.ssh$lookup_or_create_state.invoke(ssh.clj:56) ~[na:na]
at pallet.transport.ssh$open.invoke(ssh.clj:63) ~[na:na]
at pallet.transport.ssh.SshTransport.open(ssh.clj:70) ~[na:na]
at pallet.ssh.execute$get_connection.invoke(execute.clj:63) ~[na:na]
at pallet.ssh.execute$ssh_script_on_target.invoke(execute.clj:81) ~[na:na]
at pallet.executors$default_executor.invoke(executors.clj:62) ~[na:na]
at pallet.action_plan$execute_action_map.invoke(action_plan.clj:584) ~[na:na]
at pallet.action_plan$execute$exec_action__5426$execute_with_error_check__5427.invoke(action_plan.clj:648) ~[na:na]
at clojure.algo.monads$fn__3904$m_bind_state__3909$fn__3910.invoke(monads.clj:340) ~[na:na]
at pallet.action_plan$execute.invoke(action_plan.clj:652) ~[na:na]
at pallet.core.api$execute_action_plan_STAR_.invoke(api.clj:157) ~[na:na]
at pallet.core.api$eval10736$fn__10738.invoke(api.clj:179) ~[na:na]
at clojure.lang.MultiFn.invoke(MultiFn.java:205) ~[clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyToHelper(AFn.java:193) [clojure-1.4.0.jar:na]
at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.4.0.jar:na]
at clojure.core$apply.invoke(core.clj:607) ~[clojure-1.4.0.jar:na]
at clojure.core$partial$fn__4076.doInvoke(core.clj:2349) ~[clojure-1.4.0.jar:na]
at clojure.lang.RestFn.invoke(RestFn.java:397) ~[clojure-1.4.0.jar:na]
at pallet.core.primitives$async_fsm$run_async__10848$f_runner__10849.invoke(primitives.clj:38) ~[na:na]
at pallet.algo.fsmop$report_exceptions$report_exceptions__8428.invoke(fsmop.clj:63) [na:na]
at clojure.lang.AFn.call(AFn.java:18) [clojure-1.4.0.jar:na]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_37]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [na:1.6.0_37]
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:491) ~[jsch-0.1.49.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:162) ~[jsch-0.1.49.jar:na]
at clj_ssh.ssh$connect.invoke(ssh.clj:301) ~[na:na]
at pallet.ssh.transport$connect_ssh_session.invoke(transport.clj:76) ~[na:na]
... 29 common frames omitted
(ns provisioning.core
(:require [pallet.crate.automated-admin-user :as auto-user]
[pallet.api :as api]
[pallet.compute :as compute]
[pallet.configure :as config]
[pallet.crate.git :as git]
[pallet.crate.java :as java]))
(comment (def my-user
(pallet.utils/make-user "testuser" :password "testuser"
:public-key-path "/Users/ryanstradling/.ssh/testuser.pub"
:private-key-path "/Users/ryanstradling/.ssh/testuser")))
(def micro-nodes
(api/node-spec
:image {:image-id "us-east-1/ami-1624987f"
}
:hardware {:smallest true}
:network {:inbound-ports [22]}))
(def with-automated
(api/server-spec :phases {:bootstrap
(api/plan-fn (auto-user/automated-admin-user))
}))
(def with-java
(api/server-spec :phases {:configure (api/plan-fn (java/java {}))}))
(def with-git
(api/server-spec :phases {:bootstrap git/git}))
(def micro-web-servers
(api/group-spec "dev-web-servers"
:phases {:bootstrap (api/plan-fn (auto-user/automated-admin-user ))
:configure (api/plan-fn (git/git))}
:node-spec micro-nodes))
(def my-compute-service (config/compute-service :aws))
(defn create-micro-web-servers [n]
@(api/converge
{micro-web-servers n}
:compute my-compute-service))
logs/pallet.log:2013-02-26 15:38:09,125 DEBUG [operate-67] p.executors default-executor script [{:language :bash} "echo '[automated-admin-user: install]: Packages...';\n{\n# package.clj:153\nyum install -q -y sudo && \\\n# package.clj:161\n # lib.clj:601\nyum list installed\n } || { echo '#> [automated-admin-user: install]: Packages : FAIL'; exit 1;} >&2 \necho '#> [automated-admin-user: install]: Packages : SUCCESS'\n"]
logs/pallet.log:2013-02-26 15:58:09,345 DEBUG [operate-66] p.executors default-executor script [{:language :bash} "echo '[automated-admin-user: install]: Packages...';\n{\n# package.clj:153\nyum install -q -y sudo && \\\n# package.clj:161\n # lib.clj:601\nyum list installed\n } || { echo '#> [automated-admin-user: install]: Packages : FAIL'; exit 1;} >&2 \necho '#> [automated-admin-user: install]: Packages : SUCCESS'\n"]
logs/pallet.log:2013-02-26 16:08:23,787 DEBUG [operate-159] p.executors default-executor script [{:language :bash} "echo '[automated-admin-user: install]: Packages...';\n{\n# package.clj:153\nyum install -q -y sudo && \\\n# package.clj:161\n # lib.clj:601\nyum list installed\n } || { echo '#> [automated-admin-user: install]: Packages : FAIL'; exit 1;} >&2 \necho '#> [automated-admin-user: install]: Packages : SUCCESS'\n"]
logs/target-107.20.32.231.log:default-executor script [{:language :bash} "echo '[automated-admin-user: install]: Packages...';\n{\n# package.clj:153\nyum install -q -y sudo && \\\n# package.clj:161\n # lib.clj:601\nyum list installed\n } || { echo '#> [automated-admin-user: install]: Packages : FAIL'; exit 1;} >&2 \necho '#> [automated-admin-user: install]: Packages : SUCCESS'\n"]
logs/target-23.20.207.44.log:default-executor script [{:language :bash} "echo '[automated-admin-user: install]: Packages...';\n{\n# package.clj:153\nyum install -q -y sudo && \\\n# package.clj:161\n # lib.clj:601\nyum list installed\n } || { echo '#> [automated-admin-user: install]: Packages : FAIL'; exit 1;} >&2 \necho '#> [automated-admin-user: install]: Packages : SUCCESS'\n"]
logs/target-54.242.134.66.log:default-executor script [{:language :bash} "echo '[automated-admin-user: install]: Packages...';\n{\n# package.clj:153\nyum install -q -y sudo && \\\n# package.clj:161\n # lib.clj:601\nyum list installed\n } || { echo '#> [automated-admin-user: install]: Packages : FAIL'; exit 1;} >&2 \necho '#> [automated-admin-user: install]: Packages : SUCCESS'\n"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment