Skip to content

Instantly share code, notes, and snippets.

@davidsantiago
Created October 19, 2010 04:02
Show Gist options
  • Save davidsantiago/633580 to your computer and use it in GitHub Desktop.
Save davidsantiago/633580 to your computer and use it in GitHub Desktop.
David-Santiagos-Computer:servlet David$ cake pallet lift com.davidsantiago.deploy.nodes/the-server
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: retrieving nodes
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: apply-phase :pre-configure for :the-server with 1 nodes
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: apply-phase :configure for :the-server with 1 nodes
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Connecting to 10.0.1.14 port 22
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Connection established
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Remote version string: SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu4
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Local version string: SSH-2.0-JSCH-0.1.42
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_KEXINIT sent
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_KEXINIT received
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: kex: server->client aes128-ctr hmac-md5 none
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: kex: client->server aes128-ctr hmac-md5 none
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_KEXDH_INIT sent
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: expecting SSH_MSG_KEXDH_REPLY
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: ssh_rsa_verify: signature true
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Host '10.0.1.14' is known and mathces the RSA host key
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_NEWKEYS sent
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_NEWKEYS received
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_SERVICE_REQUEST sent
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: SSH_MSG_SERVICE_ACCEPT received
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Authentications that can continue: publickey,keyboard-interactive,password
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Next authentication method: publickey
Oct 18, 2010 10:59:55 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Authentication succeeded (publickey).
Oct 18, 2010 10:59:57 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Cmd echo "Package source..."
{ echo "remote-file /etc/apt/sources.list.d/Partner.list..."
{ { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet
deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) main
EOFpallet
} && md5diff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then
md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5
md5diff=$?
fi
contentdiff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then
diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new
contentdiff=$?
fi
if [ \( "${md5diff}" == "1" \) ]; then
echo Existing content did not match md5:
exit 1
fi
if [ \( "${contentdiff}" != "0" \) ]; then
mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi
if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then
mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ | tail -n +6 | xargs rm -f; } || { echo remote-file /etc/apt/sources.list.d/Partner.list failed ; exit 1 ; } >&2
echo "...done"; } || { echo Package source failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-bin shared/present-sun-dlj-v1-1 note
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-jdk shared/present-sun-dlj-v1-1 note
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-bin..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-bin && aptitude show sun-java6-bin; } || { echo Package sun-java6-bin failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-jdk..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-jdk && aptitude show sun-java6-jdk; } || { echo Package sun-java6-jdk failed ; exit 1 ; } >&2
echo "...done"
Oct 18, 2010 10:59:57 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Transfering commands {:exit nil, :out nil}
Oct 18, 2010 10:59:59 PM clojure.contrib.logging$impl_write_BANG_ invoke
SEVERE: Exit status : 1
Oct 18, 2010 10:59:59 PM clojure.contrib.logging$impl_write_BANG_ invoke
SEVERE: Output : Last login: Mon Oct 18 22:59:21 2010 from 10.0.1.8
/usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
david@virtualbox:~$ /usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
Package source...
remote-file /etc/apt/sources.list.d/Partner.list...
MD5 sum is beb2a5e939c28d8d73e5033d313f12cc /etc/apt/sources.list.d/Partner.list
...done
...done
package-manager...
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/main Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://archive.canonical.com lucid Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists...
package-manager failed
logout
Oct 18, 2010 10:59:59 PM clojure.contrib.logging$impl_write_BANG_ invoke
SEVERE: Error output :
Oct 18, 2010 10:59:59 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Disconnecting from 10.0.1.14 port 22
evaluating form: (clojure.core/binding [cake/*current-task* (quote pallet)] (let [options (quote ["lift" "com.davidsantiago.deploy.nodes/the-server"])] (do (try (require (quote pallet.main)) (apply pallet.main/-main options) (catch java.io.FileNotFoundException e (println "Error loading pallet: " (.getMessage e)) (println "You need to have pallet as a project dependency") (println "or installed in ~/.cake/project.clj"))))))
Oct 18, 2010 10:59:59 PM clojure.contrib.logging$impl_write_BANG_ invoke
INFO: Caught an exception, leaving main loop due to Socket closed
java.lang.RuntimeException: clojure.contrib.condition.Condition: Error executing script :
:cmd echo "Package source..."
{ echo "remote-file /etc/apt/sources.list.d/Partner.list..."
{ { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet
deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) main
EOFpallet
} && md5diff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then
md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5
md5diff=$?
fi
contentdiff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then
diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new
contentdiff=$?
fi
if [ \( "${md5diff}" == "1" \) ]; then
echo Existing content did not match md5:
exit 1
fi
if [ \( "${contentdiff}" != "0" \) ]; then
mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi
if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then
mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ | tail -n +6 | xargs rm -f; } || { echo remote-file /etc/apt/sources.list.d/Partner.list failed ; exit 1 ; } >&2
echo "...done"; } || { echo Package source failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-bin shared/present-sun-dlj-v1-1 note
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-jdk shared/present-sun-dlj-v1-1 note
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-bin..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-bin && aptitude show sun-java6-bin; } || { echo Package sun-java6-bin failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-jdk..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-jdk && aptitude show sun-java6-jdk; } || { echo Package sun-java6-jdk failed ; exit 1 ; } >&2
echo "...done"
:out Last login: Mon Oct 18 22:59:21 2010 from 10.0.1.8
/usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
david@virtualbox:~$ /usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
Package source...
remote-file /etc/apt/sources.list.d/Partner.list...
MD5 sum is beb2a5e939c28d8d73e5033d313f12cc /etc/apt/sources.list.d/Partner.list
...done
...done
package-manager...
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/main Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://archive.canonical.com lucid Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists...
package-manager failed
logout
:err (NO_SOURCE_FILE:0)
at clojure.lang.LazySeq.sval (LazySeq.java:47)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.LazySeq.next (LazySeq.java:85)
clojure.lang.RT.next (RT.java:560)
clojure.core$next.invoke (core.clj:61)
clojure.core$last.invoke (core.clj:228)
cake.server$eval_multi.invoke (server.clj:85)
bake.core$project_eval.invoke (core.clj:30)
cake.server$create$fn__884$fn__891.invoke (server.clj:137)
cake.server$create$fn__884.invoke (server.clj:118)
cake.utils.server_socket$accept_fn$fn__453$fn__456.invoke (server_socket.clj:39)
cake.utils.server_socket$accept_fn$fn__453.invoke (server_socket.clj:38)
clojure.lang.AFn.run (AFn.java:24)
java.lang.Thread.run (Thread.java:637)
Caused by: clojure.lang.Compiler$CompilerException: clojure.contrib.condition.Condition: Error executing script :
:cmd echo "Package source..."
{ echo "remote-file /etc/apt/sources.list.d/Partner.list..."
{ { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet
deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) main
EOFpallet
} && md5diff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then
md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5
md5diff=$?
fi
contentdiff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then
diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new
contentdiff=$?
fi
if [ \( "${md5diff}" == "1" \) ]; then
echo Existing content did not match md5:
exit 1
fi
if [ \( "${contentdiff}" != "0" \) ]; then
mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi
if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then
mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ | tail -n +6 | xargs rm -f; } || { echo remote-file /etc/apt/sources.list.d/Partner.list failed ; exit 1 ; } >&2
echo "...done"; } || { echo Package source failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-bin shared/present-sun-dlj-v1-1 note
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-jdk shared/present-sun-dlj-v1-1 note
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-bin..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-bin && aptitude show sun-java6-bin; } || { echo Package sun-java6-bin failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-jdk..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-jdk && aptitude show sun-java6-jdk; } || { echo Package sun-java6-jdk failed ; exit 1 ; } >&2
echo "...done"
:out Last login: Mon Oct 18 22:59:21 2010 from 10.0.1.8
/usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
david@virtualbox:~$ /usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
Package source...
remote-file /etc/apt/sources.list.d/Partner.list...
MD5 sum is beb2a5e939c28d8d73e5033d313f12cc /etc/apt/sources.list.d/Partner.list
...done
...done
package-manager...
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/main Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://archive.canonical.com lucid Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists...
package-manager failed
logout
:err (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval (Compiler.java:5440)
clojure.lang.Compiler.eval (Compiler.java:5391)
clojure.core$eval.invoke (core.clj:2382)
cake.server$eval_verbose.invoke (server.clj:75)
cake.server$eval_multi$iter__847__851$fn__852$fn__853.invoke (server.clj:86)
cake.server$eval_multi$iter__847__851$fn__852.invoke (server.clj:85)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.LazySeq.next (LazySeq.java:85)
clojure.lang.RT.next (RT.java:560)
clojure.core$next.invoke (core.clj:61)
clojure.core$last.invoke (core.clj:228)
cake.server$eval_multi.invoke (server.clj:85)
bake.core$project_eval.invoke (core.clj:30)
cake.server$create$fn__884$fn__891.invoke (server.clj:137)
cake.server$create$fn__884.invoke (server.clj:118)
cake.utils.server_socket$accept_fn$fn__453$fn__456.invoke (server_socket.clj:39)
cake.utils.server_socket$accept_fn$fn__453.invoke (server_socket.clj:38)
clojure.lang.AFn.run (AFn.java:24)
java.lang.Thread.run (Thread.java:637)
Caused by: clojure.contrib.condition.Condition: Error executing script :
:cmd echo "Package source..."
{ echo "remote-file /etc/apt/sources.list.d/Partner.list..."
{ { cat > /etc/apt/sources.list.d/Partner.list.new <<EOFpallet
deb http://archive.canonical.com/ubuntu $(lsb_release -c -s) main
EOFpallet
} && md5diff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.md5 \) ]; then
md5sum --quiet --check /etc/apt/sources.list.d/Partner.list.md5
md5diff=$?
fi
contentdiff=
if [ \( -e /etc/apt/sources.list.d/Partner.list -a -e /etc/apt/sources.list.d/Partner.list.new \) ]; then
diff -u /etc/apt/sources.list.d/Partner.list /etc/apt/sources.list.d/Partner.list.new
contentdiff=$?
fi
if [ \( "${md5diff}" == "1" \) ]; then
echo Existing content did not match md5:
exit 1
fi
if [ \( "${contentdiff}" != "0" \) ]; then
mv -f --backup=numbered /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi
if [ ! -e /etc/apt/sources.list.d/Partner.list ]; then
mv /etc/apt/sources.list.d/Partner.list.new /etc/apt/sources.list.d/Partner.list
fi && md5sum /etc/apt/sources.list.d/Partner.list > /etc/apt/sources.list.d/Partner.list.md5 && echo MD5 sum is $(cat /etc/apt/sources.list.d/Partner.list.md5) && ls -t /etc/apt/sources.list.d/Partner.list.~[0-9]*~ | tail -n +6 | xargs rm -f; } || { echo remote-file /etc/apt/sources.list.d/Partner.list failed ; exit 1 ; } >&2
echo "...done"; } || { echo Package source failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /universe/ ) print $0 " " " universe " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ tmpfile=$(mktemp -t addscopeXXXX)
cp -p /etc/apt/sources.list ${tmpfile}
awk '{if ($1 ~ /^deb.*/ && ! /multiverse/ ) print $0 " " " multiverse " ; else print; }' /etc/apt/sources.list > ${tmpfile} && mv -f ${tmpfile} /etc/apt/sources.list; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ aptitude update -q; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-bin shared/present-sun-dlj-v1-1 note
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "package-manager..."
{ { debconf-set-selections <<EOF
sun-java6-jdk shared/present-sun-dlj-v1-1 note
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true
EOF
}; } || { echo package-manager failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-bin..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-bin && aptitude show sun-java6-bin; } || { echo Package sun-java6-bin failed ; exit 1 ; } >&2
echo "...done"
echo "Package sun-java6-jdk..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y sun-java6-jdk && aptitude show sun-java6-jdk; } || { echo Package sun-java6-jdk failed ; exit 1 ; } >&2
echo "...done"
:out Last login: Mon Oct 18 22:59:21 2010 from 10.0.1.8
/usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
david@virtualbox:~$ /usr/bin/sudo -n ~david/sudocmdpDbvp;exit $?;
Package source...
remote-file /etc/apt/sources.list.d/Partner.list...
MD5 sum is beb2a5e939c28d8d73e5033d313f12cc /etc/apt/sources.list.d/Partner.list
...done
...done
package-manager...
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ubuntu/ lucid/main Translation-en_US
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Hit http://archive.canonical.com lucid Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists...
package-manager failed
logout
:err
at clojure.contrib.condition.Condition.fillInStackTrace (:-1)
java.lang.Throwable.<init> (Throwable.java:218)
clojure.contrib.condition.Condition.<init> (:-1)
pallet.execute$remote_sudo_cmd.invoke (execute.clj:126)
pallet.execute$execute_ssh_cmds$execute__6103.invoke (execute.clj:157)
pallet.resource$eval5999$fn__6000.invoke (resource.clj:325)
clojure.lang.MultiFn.invoke (MultiFn.java:175)
pallet.resource$execute_commands.invoke (resource.clj:356)
pallet.execute$execute_ssh_cmds.invoke (execute.clj:191)
pallet.execute$ssh_cmds.invoke (execute.clj:203)
pallet.core$execute_with_ssh.invoke (core.clj:260)
pallet.core$wrap_with_user_credentials$fn__6767.invoke (core.clj:342)
pallet.core$build_commands$fn__6735.invoke (core.clj:292)
pallet.core$add_target_keys$fn__6650.invoke (core.clj:139)
pallet.core$apply_phase_to_node.invoke (core.clj:302)
pallet.core$apply_phase$iter__6786__6790$fn__6791.invoke (core.clj:376)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.RT.seq (RT.java:450)
clojure.core$seq.invoke (core.clj:122)
clojure.core$r.invoke (core.clj:793)
pallet.core$apply_phase.invoke (core.clj:374)
pallet.core$lift_nodes$iter__6879__6885$fn__6886$iter__6881__6887$fn__6888.invoke (core.clj:503)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.RT.seq (RT.java:450)
clojure.core$seq.invoke (core.clj:122)
pallet.core$lift_nodes$iter__6879__6885$fn__6886.invoke (core.clj:499)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:63)
clojure.lang.Cons.next (Cons.java:39)
clojure.lang.RT.next (RT.java:560)
clojure.core$next.invoke (core.clj:61)
clojure.core$r.invoke (core.clj:799)
pallet.core$lift_nodes.invoke (core.clj:499)
pallet.core$lift_STAR_.invoke (core.clj:521)
pallet.core$lift.doInvoke (core.clj:639)
clojure.lang.RestFn.applyTo (RestFn.java:140)
clojure.core$apply.invoke (core.clj:540)
pallet.task.lift$lift.doInvoke (lift.clj:33)
clojure.lang.RestFn.invoke (RestFn.java:424)
clojure.lang.Var.invoke (Var.java:369)
clojure.lang.AFn.applyToHelper (AFn.java:165)
clojure.lang.Var.applyTo (Var.java:482)
clojure.core$apply.invoke (core.clj:542)
pallet.main_invoker$invoke.invoke (main_invoker.clj:52)
clojure.lang.Var.invoke (Var.java:381)
pallet.main$_main.doInvoke (main.clj:78)
clojure.lang.RestFn.applyTo (RestFn.java:138)
clojure.core$apply.invoke (core.clj:540)
bake.task.pallet$eval8856.invoke (NO_SOURCE_FILE:1)
clojure.lang.Compiler.eval (Compiler.java:5424)
clojure.lang.Compiler.eval (Compiler.java:5391)
clojure.core$eval.invoke (core.clj:2382)
cake.server$eval_verbose.invoke (server.clj:75)
cake.server$eval_multi$iter__847__851$fn__852$fn__853.invoke (server.clj:86)
cake.server$eval_multi$iter__847__851$fn__852.invoke (server.clj:85)
clojure.lang.LazySeq.sval (LazySeq.java:42)
clojure.lang.LazySeq.seq (LazySeq.java:56)
clojure.lang.LazySeq.next (LazySeq.java:85)
clojure.lang.RT.next (RT.java:560)
clojure.core$next.invoke (core.clj:61)
clojure.core$last.invoke (core.clj:228)
cake.server$eval_multi.invoke (server.clj:85)
bake.core$project_eval.invoke (core.clj:30)
cake.server$create$fn__884$fn__891.invoke (server.clj:137)
cake.server$create$fn__884.invoke (server.clj:118)
cake.utils.server_socket$accept_fn$fn__453$fn__456.invoke (server_socket.clj:39)
cake.utils.server_socket$accept_fn$fn__453.invoke (server_socket.clj:38)
clojure.lang.AFn.run (AFn.java:24)
java.lang.Thread.run (Thread.java:637)
David-Santiagos-Computer:servlet David$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment