Putting my Mac to sleep wedged my Installer package scripts

Michael Crawford mdcrawford at gmail.com
Wed May 22 00:47:36 PDT 2013


I ran the MacPorts installer again, this time without allowing my Mac to
sleep.  The install completed just fine.

However, I found this in my install.log:

    ./postinstall: Synchronizing local ports tree from rsync://
rsync.macports.org/release/tarballs/ports.tar

I expect that my previous install attempt failed because I put my Mac to
sleep so I could catch a bus, then woke it up in a different place.  That
second place had WiFi, but perhaps rsync can't tolerate its net connection
dropping.

I think it's a really, really bad idea to hit the network from the
installer.  I do understand why you want an up-to-date ports.tar.  If
you're going to do this, you should warn the user that they need to run the
installer on a network-connected Mac, as well as not allow that Mac to
sleep during the install.

I've been using MacPorts for eons, it's a great piece of work.  I'd like to
contribute code somehow, but as a consultant I'm just about always up to my
ass in alligators.

Keep Up The Good Work,

Mike Crawford
mdcrawford at gmail.com


On Sun, May 19, 2013 at 7:40 PM, Michael Crawford <mdcrawford at gmail.com>wrote:

> Here is the relevant part of install.log.  The full log follows below:
>
> ./postinstall: --->  Updating the ports tree
>  ./postinstall: Synchronizing local ports tree from rsync://
> rsync.macports.org/release/tarballs/ports.tar
>  ./postinstall: receiving file list ... done
>  ./postinstall: ports.tar
>  System is going to sleep.
>  System awoke from sleep.
>  System is going to sleep.
>  System awoke from sleep.
>  installd: Client lost for token 92F4CEDD-646A-43D2-81A6-B1F3D4743D56
>
> --------------
>
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]:
> @(#)PROGRAM:Install  PROJECT:Install-735
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]:
> @(#)PROGRAM:Installer  PROJECT:Installer-614
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Hardware:
> MacBookPro10,1 @ 2.40 GHz (x 8), 8192 MB RAM
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Running OS
> Build: Mac OS X 10.8.3 (12D78)
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> TMPDIR=/var/folders/gl/f_wvtlqn7j5920lpn3rbg8jm0000gn/T/
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> SHELL=/bin/bash
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> HOME=/Users/mike
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env: USER=mike
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> LOGNAME=mike
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> SSH_AUTH_SOCK=/tmp/launch-GdBydj/Listeners
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> Apple_Ubiquity_Message=/tmp/launch-FpKyjJ/Apple_Ubiquity_Message
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> Apple_PubSub_Socket_Render=/tmp/launch-PRdxET/Render
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> COMMAND_MODE=unix2003
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Env:
> __CF_USER_TEXT_ENCODING=0x1F5:0:0
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: MacPorts
> Installation Log
> May 19 16:55:02 Michaels-MacBook-Pro.local Installer[3886]: Opened from:
> /Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg
> May 19 16:55:03 Michaels-MacBook-Pro.local Installer[3886]: Product
> archive
> /Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg
> trustLevel=202
> May 19 16:55:27 Michaels-MacBook-Pro.local Installer[3886]:
> InstallerStatusNotifications plugin loaded
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:
> ================================================================================
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]: User picked
> Standard Install
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]: Choices
> selected for installation:
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:     Install:
> "MacPorts"
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:     Install:
> "(null)"
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:
> MacPorts-2.1.3-10.8-MountainLion.pkg#MacPorts-2.1.3-component.pkg :
> org.macports.MacPorts : 1.0
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:
> ================================================================================
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]: It took 0.00
> seconds to summarize the package selections.
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:
> -[IFDInstallController(Private) _buildInstallPlan]: location =
> file://localhost
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]:
> -[IFDInstallController(Private) _buildInstallPlan]:
> file://localhost/Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg#MacPorts-2.1.3-component.pkg
> May 19 16:55:30 Michaels-MacBook-Pro.local Installer[3886]: Set
> authorization level to root for session
> May 19 16:55:36 Michaels-MacBook-Pro.local runner[3893]: Administrator
> authorization granted.
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Will use PK
> session
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Starting
> installation:
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Configuring
> volume "Macintosh HD"
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Preparing disk
> for local booted install.
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Free space on
> "Macintosh HD": 419.54 GB (419537985536 bytes).
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Create
> temporary directory
> "/var/folders/gl/f_wvtlqn7j5920lpn3rbg8jm0000gn/T//Install.3886VZ0KnC"
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]:
> IFPKInstallElement (1 packages)
> May 19 16:55:36 Michaels-MacBook-Pro.local Installer[3886]: Using
> authorization level of root for IFPKInstallElement
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: installd:
> Starting
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: installd:
> uid=0, euid=0
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> ----- Begin install -----
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> request=PKInstallRequest <1 packages, destination=/>
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> packages=(
>         "PKLeopardPackage
> <file://localhost/Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg#MacPorts-2.1.3-component.pkg>"
>     )
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> Extracting
> file://localhost/Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg#MacPorts-2.1.3-component.pkg
> (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At
> Startup/PKInstallSandboxManager/1.sandbox/Root, uid=0)
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> prevent user idle system sleep
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> suspending backupd
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At
> Startup/PKInstallSandboxManager/1.sandbox/Root (1 items) to /
> May 19 16:55:36 Michaels-MacBook-Pro.local install_monitor[3902]:
> Temporarily excluding: /Applications, /Library, /System, /bin, /private,
> /sbin, /usr
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: PackageKit:
> Executing script "./postinstall" in
> /private/tmp/PKInstallSandbox.gL4EVl/Scripts/org.macports.MacPorts.bmyz29
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> The MacPorts Project, postflight script version 2.1.0: checking the shell
> environment for user "mike".
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Creating group "macports"
> May 19 16:55:36 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Creating user "macports"
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Copying archive_sites.conf.default to archive_sites.conf
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Copying macports.conf.default to macports.conf
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Copying pubkeys.conf.default to pubkeys.conf
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Copying sources.conf.default to sources.conf
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Copying variants.conf.default to variants.conf
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> /Library/Tcl/macports1.0 -> /opt/local/share/macports/Tcl/macports1.0
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Removing old man pages...
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Done.
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Detected the bash shell.
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> An appropriate PATH variable has been added to your shell environment by
> the MacPorts installer.
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Your shell already has the right MANPATH environment variable for use with
> MacPorts!
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Your shell already has the right DISPLAY environment variable for use with
> MacPorts!
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Adding [default] tag to sources.conf if needed...
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Updating port image format...
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> No ports installed to convert.
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Synchronizing the MacPorts installation with the project's rsync server...
> May 19 16:55:38 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> --->  Updating MacPorts base sources using rsync
> May 19 16:55:40 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> receiving file list ... done
> May 19 16:55:42 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> base.tar
> May 19 16:56:28 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> sent 58 bytes  received 955032 bytes  18912.67 bytes/sec
> May 19 16:56:28 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> total size is 3594240  speedup is 3.76
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> receiving file list ... done
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> base.tar.rmd160
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> sent 58 bytes  received 635 bytes  462.00 bytes/sec
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> total size is 512  speedup is 0.74
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> MacPorts base version 2.1.3 installed,
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> MacPorts base version 2.1.3 downloaded.
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> --->  Updating the ports tree
> May 19 16:56:29 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> Synchronizing local ports tree from rsync://
> rsync.macports.org/release/tarballs/ports.tar
> May 19 16:56:31 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> receiving file list ... done
> May 19 16:56:31 Michaels-MacBook-Pro.local installd[3897]: ./postinstall:
> ports.tar
> May 19 16:57:07 Michaels-MacBook-Pro.local Installer[3886]: System is
> going to sleep.
> May 19 17:41:24 Michaels-MacBook-Pro.local Installer[3886]: System awoke
> from sleep.
> May 19 17:49:11 Michaels-MacBook-Pro.local Installer[3886]: System is
> going to sleep.
> May 19 18:12:23 Michaels-MacBook-Pro.local Installer[3886]: System awoke
> from sleep.
> May 19 18:55:19 Michaels-MacBook-Pro.local installd[3897]: installd:
> Client lost for token 92F4CEDD-646A-43D2-81A6-B1F3D4743D56
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]:
> @(#)PROGRAM:Install  PROJECT:Install-735
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]:
> @(#)PROGRAM:Installer  PROJECT:Installer-614
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Hardware:
> MacBookPro10,1 @ 2.40 GHz (x 8), 8192 MB RAM
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Running OS
> Build: Mac OS X 10.8.3 (12D78)
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> PATH=/usr/bin:/bin:/usr/sbin:/sbin
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> TMPDIR=/var/folders/gl/f_wvtlqn7j5920lpn3rbg8jm0000gn/T/
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> SHELL=/bin/bash
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> HOME=/Users/mike
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env: USER=mike
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> LOGNAME=mike
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> SSH_AUTH_SOCK=/tmp/launch-GdBydj/Listeners
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> Apple_Ubiquity_Message=/tmp/launch-FpKyjJ/Apple_Ubiquity_Message
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> Apple_PubSub_Socket_Render=/tmp/launch-PRdxET/Render
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> COMMAND_MODE=unix2003
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Env:
> __CF_USER_TEXT_ENCODING=0x1F5:0:0
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: MacPorts
> Installation Log
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Opened from:
> /Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg
> May 19 18:55:37 Michaels-MacBook-Pro.local Installer[4129]: Product
> archive
> /Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg
> trustLevel=202
> May 19 18:58:00 Michaels-MacBook-Pro.local Installer[4129]:
> InstallerStatusNotifications plugin loaded
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:
> ================================================================================
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]: User picked
> Standard Install
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]: Choices
> selected for installation:
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:     Install:
> "MacPorts"
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:     Install:
> "(null)"
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:
> MacPorts-2.1.3-10.8-MountainLion.pkg#MacPorts-2.1.3-component.pkg :
> org.macports.MacPorts : 1.0
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:
> ================================================================================
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]: It took 0.00
> seconds to summarize the package selections.
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:
> -[IFDInstallController(Private) _buildInstallPlan]: location =
> file://localhost
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]:
> -[IFDInstallController(Private) _buildInstallPlan]:
> file://localhost/Users/mike/Documents/Installers_Mac_OS_X/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg#MacPorts-2.1.3-component.pkg
> May 19 18:58:03 Michaels-MacBook-Pro.local Installer[4129]: Set
> authorization level to root for session
> May 19 18:58:10 Michaels-MacBook-Pro.local runner[4140]: Administrator
> authorization granted.
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Will use PK
> session
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Starting
> installation:
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Configuring
> volume "Macintosh HD"
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Preparing disk
> for local booted install.
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Free space on
> "Macintosh HD": 419.47 GB (419467894784 bytes).
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Create
> temporary directory
> "/var/folders/gl/f_wvtlqn7j5920lpn3rbg8jm0000gn/T//Install.4129J0C3fl"
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]:
> IFPKInstallElement (1 packages)
> May 19 18:58:10 Michaels-MacBook-Pro.local Installer[4129]: Using
> authorization level of root for IFPKInstallElement
> May 19 18:58:43 Michaels-MacBook-Pro.local installd[3897]: installd:
> Client lost for token 30DFEE08-61AB-45AC-A88B-3F8C6540DCF7
>
>
> On Sun, May 19, 2013 at 7:08 PM, Michael Crawford <mdcrawford at gmail.com>wrote:
>
>> Hi,
>>
>> I'm trying to install MacPorts 2.1.3 on my Retina Display MacBook Pro,
>> Model Identifier MacBookPro10,1, running Mac OS X 10.8.3.
>>
>> When the Installer was running the package scripts, and reporting that it
>> had five minutes left, I had to catch a bus so I put the unit to sleep,
>> then closed the lid.
>>
>> When I opened it, the Installer reported that it had seven minutes left.
>> I let the installer run quite a lot longer than seven minutes, but the
>> estimated time left steadily grew to seventeen minutes without any
>> advancement of the progress bar.
>>
>> Finally I used Command-Option-Escape to kill the process, but when I try
>> to run the installer again, it tells me that it's waiting for a previous
>> installation to complete.  I killed the process again, then tried to
>> restart, but OS X won't let me.  Instead it displays a window that says I
>> have to wait until the installation completes.  It still says Running
>> Package Scripts, but does not display a time estimate.
>>
>> I can force a shutdown by holding down the power key, but am concerned
>> that I may have left my system in an unstable state.
>>
>> I'm happy to file a bug report if you like, but I seek your advice as to
>> how to get installed.
>>
>> Keep up the good work!
>>
>> Mike
>>
>> --
>> Michael David Crawford
>> mdcrawford at gmail dot com
>>
>>
>
>
> --
> Michael David Crawford
> mdcrawford at gmail dot com
>
>   Custom Software Development for the iPhone and Mac OS X
>   http://www.dulcineatech.com/custom-software-development/
>



-- 
Michael David Crawford
mdcrawford at gmail dot com

  Custom Software Development for the iPhone and Mac OS X
  http://www.dulcineatech.com/custom-software-development/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130522/87a03b0e/attachment-0001.html>


More information about the macports-dev mailing list