platanus / our-boxen

MIT License
6 stars 1 forks source link

Failed for agustin #403

Open agustinf opened 8 years ago

agustinf commented 8 years ago

Running on Agustins-MBP (OS X 10.11.6) under /bin/zsh, version 8642dedaefbb37d20639301fafaf4446b0c688b7 (compare to master).

Changes

M Puppetfile
 M Puppetfile.lock
 D vendor/puppet/cache/boxen-puppet-postgresql-4.1.0.tar.gz
?? vendor/puppet/cache/boxen-puppet-postgresql-5.0.0.tar.gz

Puppet Command

/opt/boxen/repo/bin/puppet apply --group admin --confdir /tmp/boxen/puppet/conf --vardir /tmp/boxen/puppet/var --libdir /opt/boxen/repo/lib --libdir /opt/boxen/repo/.bundle/ruby/2.0.0/gems/boxen-2.8.0/lib --modulepath /opt/boxen/repo/modules:/opt/boxen/repo/shared --hiera_config /opt/boxen/repo/config/hiera.yaml --logdest /opt/boxen/repo/log/boxen.log --logdest console --no-report --detailed-exitcodes --show_diff /opt/boxen/repo/manifests

Output (from /opt/boxen/repo/log/boxen.log)

2016-08-16 14:38:02 -0300 Puppet (err): Unable to set ownership of log file
2016-08-16 14:38:10 -0300 Puppet (notice): Compiled catalog for agustins-mbp in environment production in 4.43 seconds
2016-08-16 14:38:12 -0300 /Stage[main]/Pow/File[/Users/agustin/.powconfig] (warning): Ensure set to :present but file type is link so no content will be synced
2016-08-16 14:38:13 -0300 /Stage[main]/Postgresql::Config/File[/opt/boxen/log/postgresql-9.5]/ensure (notice): created
2016-08-16 14:38:13 -0300 /Stage[main]/Postgresql::Config/File[/Library/LaunchDaemons/dev.postgresql.plist]/content (notice): 
--- /Library/LaunchDaemons/dev.postgresql.plist 2016-05-19 20:10:01.000000000 -0400
+++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20160816-23990-115ochl  2016-08-16 14:38:13.000000000 -0300
@@ -23,9 +23,9 @@
       <string>-p</string>
       <string>15432</string>
       <string>-D</string>
-      <string>/opt/boxen/data/postgresql-9.4</string>
+      <string>/opt/boxen/data/postgresql-9.5</string>
       <string>-r</string>
-      <string>/opt/boxen/log/postgresql-9.4/server.log</string>
+      <string>/opt/boxen/log/postgresql-9.5/server.log</string>
     </array>

     <key>RunAtLoad</key>
@@ -38,12 +38,12 @@
     <string>agustin</string>

     <key>WorkingDirectory</key>
-    <string>/opt/boxen/data/postgresql-9.4</string>
+    <string>/opt/boxen/data/postgresql-9.5</string>

     <key>StandardErrorPath</key>
-    <string>/opt/boxen/log/postgresql-9.4/console.log</string>
+    <string>/opt/boxen/log/postgresql-9.5/console.log</string>

     <key>StandardOutPath</key>
-    <string>/opt/boxen/log/postgresql-9.4/console.log</string>
+    <string>/opt/boxen/log/postgresql-9.5/console.log</string>
   </dict>
 </plist>
2016-08-16 14:38:13 -0300 /Stage[main]/Postgresql::Config/File[/Library/LaunchDaemons/dev.postgresql.plist]/content (notice): content changed '{md5}f725d534782f2842a30b2ca5198bcd29' to '{md5}606a8505d6b8ec033e02758ecaf26f8d'
2016-08-16 14:38:14 -0300 /Stage[main]/Osx::Dock::Clear_dock/Boxen::Osx_defaults[Remove all the pinned icons]/Exec[osx_defaults write  com.apple.dock:persistent-apps=>()]/returns (notice): executed successfully
2016-08-16 14:38:14 -0300 /Stage[main]/Postgresql::Config/File[/opt/boxen/data/postgresql-9.5]/ensure (notice): created
2016-08-16 14:38:15 -0300 /Stage[main]/Osx::Dock/Exec[killall Dock] (notice): Triggered 'refresh' from 1 events
2016-08-16 14:38:20 -0300 /Stage[main]/People::Agustinf/File[/Users/agustin/.gitconfig]/target (notice): target changed '/Users/agustin/Dropbox/Mackup/.gitconfig' to '/Users/agustin/src/dotfiles/.gitconfig'
2016-08-16 14:38:24 -0300 /Stage[main]/People::Agustinf/File[/Users/agustin/.profile]/target (notice): target changed '/Users/agustin/Dropbox/Mackup/.profile' to '/Users/agustin/src/dotfiles/.profile'
2016-08-16 14:38:26 -0300 /Stage[main]/Postgresql::Package/Homebrew::Formula[postgresql]/File[/usr/local/Library/Taps/boxen/homebrew-brews/postgresql.rb]/content (notice): 
--- /usr/local/Library/Taps/boxen/homebrew-brews/postgresql.rb  2016-05-19 20:10:58.000000000 -0400
+++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/puppet-file20160816-23990-zux3yf   2016-08-16 14:38:26.000000000 -0300
@@ -1,23 +1,14 @@
 class Postgresql < Formula
   desc "Object-relational database system"
   homepage "https://www.postgresql.org/"
-  revision 2
-
-  stable do
-    url "https://ftp.postgresql.org/pub/source/v9.4.5/postgresql-9.4.5.tar.bz2"
-    sha256 "b87c50c66b6ea42a9712b5f6284794fabad0616e6ae420cf0f10523be6d94a39"
-  end
+  url "https://ftp.postgresql.org/pub/source/v9.5.2/postgresql-9.5.2.tar.bz2"
+  sha256 "f8d132e464506b551ef498719f18cfe9d777709c7a1589dc360afc0b20e47c41"

   bottle do
-    sha256 "b57a3b65cd90917273d754f2625a83e69eac78aeff5b79573f8ac9811bdf643c" => :el_capitan
-    sha256 "6b26ad24a228620e16d7f81b4f3bd183a80e1c2f02b8505a1a6b71356eec53a4" => :yosemite
-    sha256 "a6a49e234543bb7c4fb33b64dd14b48da5b8373fb2110d62e82d7129997f4926" => :mavericks
-  end
-
-  devel do
-    url "https://ftp.postgresql.org/pub/source/v9.5beta1/postgresql-9.5beta1.tar.bz2"
-    sha256 "b53199e2667982de2039ad7e30467f67c5d7af678e69d6211de8ba1cac75c9f0"
-    version "9.5beta1"
+    revision 1
+    sha256 "12bc2c22b06aaa82f577c14a667805a6e8aed9065a3a376e324393afdf6b62f0" => :el_capitan
+    sha256 "5e7ee10a23edb6ee985f49a969894133939a20eaeee2f2841cb8be82c2f79c74" => :yosemite
+    sha256 "e6673530167899750d5f2eaaebe53e7ff8b10caada449aef39d66a1af39cfe49" => :mavericks
   end

   option "32-bit"
@@ -46,7 +37,7 @@
     ENV.libxml2 if MacOS.version >= :snow_leopard

     ENV.prepend "LDFLAGS", "-L#{Formula["openssl"].opt_lib} -L#{Formula["readline"].opt_lib}"
-    ENV.prepend "CPPLAGS", "-I#{Formula["openssl"].opt_include} -I#{Formula["readline"].opt_include}"
+    ENV.prepend "CPPFLAGS", "-I#{Formula["openssl"].opt_include} -I#{Formula["readline"].opt_include}"

     args = %W[
       --disable-debug
@@ -93,7 +84,8 @@
   end

   def post_install
-    unless File.exist? "#{var}/postgres"
+    (var/"postgres").mkpath
+    unless File.exist? "#{var}/postgres/PG_VERSION"
       system "#{bin}/initdb", "#{var}/postgres"
     end
   end
@@ -103,8 +95,14 @@
     you may need to remove the previous version first. See:
       https://github.com/Homebrew/homebrew/issues/2510

-    To migrate existing data from a previous major version (pre-9.4) of PostgreSQL, see:
-      https://www.postgresql.org/docs/9.4/static/upgrading.html
+    To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see:
+      https://www.postgresql.org/docs/9.5/static/upgrading.html
+
+    To migrate existing data from a previous minor version (9.0-9.4) of PosgresSQL, see:
+      https://www.postgresql.org/docs/9.5/static/pgupgrade.html
+
+      You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`.
+      Do not run `brew cleanup postgresql` until you have performed the migration.
     EOS
   end

2016-08-16 14:38:26 -0300 /Stage[main]/Postgresql::Package/Homebrew::Formula[postgresql]/File[/usr/local/Library/Taps/boxen/homebrew-brews/postgresql.rb]/content (notice): content changed '{md5}a6687584d58c039162de3f6a21e45d8d' to '{md5}12e9e6952164408f277a86907f747ad3'
2016-08-16 14:38:29 -0300 Puppet (err): Execution of 'brew cask install prey --appdir=/Applications --binarydir=/usr/local/bin' returned 1: ==> Caveats
Prey requires your API key, found in the bottom-left corner of
the Prey web account Settings page, to complete installation.
The API key may be set as an environment variable as follows:

  API_KEY="abcdef123456" brew cask install prey

==> Downloading https://prey-releases.s3.amazonaws.com/node-client/1.5.1/prey-mac-1.5.1-x86.pkg
Already downloaded: /Library/Caches/Homebrew/prey-1.5.1.pkg
==> Verifying checksum for Cask prey
==> Running installer for prey; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Error: Command failed to execute!

==> Failed command:
["/usr/bin/sudo", "-E", "--", "/usr/sbin/installer", "-pkg", "#<Pathname:/opt/homebrew-cask/Caskroom/prey/1.5.1/prey-mac-1.5.1-x86.pkg>", "-target", "/"]

==> Output of failed command:

==> Exit status of failed command:
#<Process::Status: pid 24550 exit 1>
==> sudo: no tty present and no askpass program specified
2016-08-16 14:38:29 -0300 /Stage[main]/Boxen::Personal/Package[prey]/ensure (err): change from absent to present failed: Execution of 'brew cask install prey --appdir=/Applications --binarydir=/usr/local/bin' returned 1: ==> Caveats
Prey requires your API key, found in the bottom-left corner of
the Prey web account Settings page, to complete installation.
The API key may be set as an environment variable as follows:

  API_KEY="abcdef123456" brew cask install prey

==> Downloading https://prey-releases.s3.amazonaws.com/node-client/1.5.1/prey-mac-1.5.1-x86.pkg
Already downloaded: /Library/Caches/Homebrew/prey-1.5.1.pkg
==> Verifying checksum for Cask prey
==> Running installer for prey; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Error: Command failed to execute!

==> Failed command:
["/usr/bin/sudo", "-E", "--", "/usr/sbin/installer", "-pkg", "#<Pathname:/opt/homebrew-cask/Caskroom/prey/1.5.1/prey-mac-1.5.1-x86.pkg>", "-target", "/"]

==> Output of failed command:

==> Exit status of failed command:
#<Process::Status: pid 24550 exit 1>
==> sudo: no tty present and no askpass program specified
2016-08-16 14:38:30 -0300 /Stage[main]/Pow/Service[dev.pow.powd]/ensure (notice): ensure changed 'stopped' to 'running'
2016-08-16 14:43:17 -0300 /Stage[main]/Postgresql::Package/Package[boxen/brews/postgresql]/ensure (notice): ensure changed '9.4.5_2' to '9.5.2'
2016-08-16 14:43:19 -0300 /Stage[main]/Postgresql::Service/Exec[init-postgresql-db]/returns (notice): executed successfully
2016-08-16 14:43:19 -0300 /Stage[main]/Postgresql::Service/Exec[init-postgresql-db] (notice): Triggered 'refresh' from 1 events
2016-08-16 14:43:19 -0300 /Stage[main]/Postgresql::Service/Service[com.boxen.postgresql] (notice): Triggered 'refresh' from 1 events
2016-08-16 14:43:19 -0300 /Stage[main]/Postgresql::Service/Exec[kill-stale-postgres-pidfile]/returns (notice): executed successfully
2016-08-16 14:43:19 -0300 /Stage[main]/Postgresql::Service/Exec[kill-stale-postgres-pidfile] (notice): Triggered 'refresh' from 1 events
2016-08-16 14:43:20 -0300 /Stage[main]/Postgresql::Service/Service[dev.postgresql] (notice): Triggered 'refresh' from 2 events
2016-08-16 14:43:20 -0300 /Stage[main]/Postgresql::Service/Exec[wait-for-postgresql]/returns (notice): executed successfully
2016-08-16 14:43:20 -0300 /Stage[main]/Postgresql::Service/Exec[wait-for-postgresql] (notice): Triggered 'refresh' from 1 events
2016-08-16 14:43:46 -0300 /Stage[main]/Stacks::Node/Npm_module[karma-cli for all nodes]/ensure (notice): created
2016-08-16 14:44:55 -0300 /Stage[main]/Stacks::Node/Npm_module[npm for all nodes]/ensure (notice): created
2016-08-16 14:50:01 -0300 /Stage[main]/Stacks::Node/Npm_module[generator-platanus-ionic for all nodes]/ensure (notice): created
2016-08-16 14:54:37 -0300 /Stage[main]/Stacks::Node/Npm_module[ionic for all nodes]/ensure (notice): created
2016-08-16 14:57:23 -0300 /Stage[main]/Stacks::Node/Npm_module[yo for all nodes]/ensure (notice): created
2016-08-16 14:57:32 -0300 /Stage[main]/Stacks::Node/Npm_module[grunt-cli for all nodes]/ensure (notice): created
2016-08-16 15:00:35 -0300 /Stage[main]/Stacks::Node/Npm_module[gulp for all nodes]/ensure (notice): created
2016-08-16 15:00:37 -0300 Puppet (err): Execution of 'brew cask install spectacle --appdir=/Applications --binarydir=/usr/local/bin' returned 1: ==> Downloading https://s3.amazonaws.com/spectacle/downloads/Spectacle+1.0.6.zip
Already downloaded: /Library/Caches/Homebrew/spectacle-1.0.6.zip
==> Verifying checksum for Cask spectacle
==> It seems there is already an App at '/Applications/Spectacle.app'; not moving.
==> Enabling accessibility access
Error: Command failed to execute!

==> Failed command:
["/usr/bin/sudo", "-E", "--", "/usr/bin/sqlite3", "#<Pathname:/Library/Application Support/com.apple.TCC/TCC.db>", "INSERT OR REPLACE INTO access VALUES('kTCCServiceAccessibility','com.divisiblebyzero.Spectacle',0,1,1,NULL,NULL);"]

==> Output of failed command:

==> Exit status of failed command:
#<Process::Status: pid 73359 exit 1>
==> sudo: no tty present and no askpass program specified
2016-08-16 15:00:37 -0300 /Stage[main]/Boxen::Personal/Package[spectacle]/ensure (err): change from absent to present failed: Execution of 'brew cask install spectacle --appdir=/Applications --binarydir=/usr/local/bin' returned 1: ==> Downloading https://s3.amazonaws.com/spectacle/downloads/Spectacle+1.0.6.zip
Already downloaded: /Library/Caches/Homebrew/spectacle-1.0.6.zip
==> Verifying checksum for Cask spectacle
==> It seems there is already an App at '/Applications/Spectacle.app'; not moving.
==> Enabling accessibility access
Error: Command failed to execute!

==> Failed command:
["/usr/bin/sudo", "-E", "--", "/usr/bin/sqlite3", "#<Pathname:/Library/Application Support/com.apple.TCC/TCC.db>", "INSERT OR REPLACE INTO access VALUES('kTCCServiceAccessibility','com.divisiblebyzero.Spectacle',0,1,1,NULL,NULL);"]

==> Output of failed command:

==> Exit status of failed command:
#<Process::Status: pid 73359 exit 1>
==> sudo: no tty present and no askpass program specified