You are not logged in.

Announcement

[2017.09.08] DeployStudio build v1.7.8 (checksum, release note).
[2016.08.26] DeployStudio build v1.6.19 (release note).
[2013.02.23] DeployStudio last universal build v1.5.17 (release note).

#1 2013-01-31 04:09:04

swy
Member
Registered: 2012-03-02

Workflows not executing upon reboot

Hi all,

I'm seeing a situation where workflows, which have been tested and verified to work, are not being executed upon reboot.  It's behaving as if the LaunchDaemon isn't being installed, or that the script that it calls is absent.

One log line that catches my attention is "Finalize resources already installed, skipping..."

How does DS determine that the finalize resources are already installed, and is there a trick to persuade it they're not, so that they get installed, and (hopefully) the finalize steps take place on next reboot?

(cross-posted from Usage- topic belongs here.)

Offline

#2 2013-01-31 08:23:25

admin
Administrator
Registered: 2007-03-29
Website

Re: Workflows not executing upon reboot

It checks if /etc/deploystudio/ exists.

Offline

#3 2013-01-31 13:35:08

swy
Member
Registered: 2012-03-02

Re: Workflows not executing upon reboot

OK, and upon reboot, I am finding a system with /etc/deploystudio/ and seemingly appropriate subfolders and scripts. Therefore the assets to install are there, but it's an issue with the LaunchDaemon not starting up the expected script, or the script it calls having an issue.

Offline

#4 2013-01-31 15:56:13

admin
Administrator
Registered: 2007-03-29
Website

Re: Workflows not executing upon reboot

The launch daemons should be located in /Library/LaunchDaemons/.
Check if everything is there before rebooting.

Offline

#5 2013-01-31 17:01:54

swy
Member
Registered: 2012-03-02

Re: Workflows not executing upon reboot

What should the value of "everything" be?

To walk through an upgrade from 10.6 to 10.8, I just did the following:

-Used Restore a master to restore a test machine to a 10.6 starting place.
--Rebooted to that restored volume.  Finalize.app *DID* start up, spent a moment finalizing dyld caches, rebooted, all behavior as expected.

NetBooted to DS again.
-Ran my 10.8 installer workflow, which installs 1 package of a 10.8 installer, created via https://managingosx.wordpress.com/2012/07/25/son-of-installlion-pkg/
--After the workflow is run, in /Library/LaunchDaemons I have com.deploystudio.finalizeCleanup.plist, which has disabled=true, RunAtLoad=true, LaunchOnlyOnce=true, and a ProgramArguments to load /etc/deploystudio/sbin/ds_finalize_cleanup.sh
--This is the only deploystudio addition to /Library/LaunchDaemons
-I checked on /etc/deploystudio, I do see scripts and the installer package in (AFAIK) appropriate places.
-restarted
-machine boots to Finalize.app.  About 5 lines logged, including "Finalize script completed"
-automatic reboot
-returns to 10.6 login window.

There is no /etc/deploystudio/ folder any longer.

Checking on /var/log/ds_finalize.log, I see the following error:
installer: invalid option -allowUntrusted

It starts running the ds_install_packages_0001.sh, but fails because the command is not properly formatted for the version of /usr/sbin/installer being called. This is why nothing happens.

Offline

#6 2013-01-31 17:31:20

admin
Administrator
Registered: 2007-03-29
Website

Re: Workflows not executing upon reboot

Ok, it should be fine if you download and install yesterday's build of v1.5.16.

Offline

#7 2013-01-31 17:43:46

swy
Member
Registered: 2012-03-02

Re: Workflows not executing upon reboot

I can confirm this is working: after installing 130129, my 10.8 install package is installing as expected.  I appreciate the quick response.

Offline

#8 2013-01-31 18:48:18

cadbrowne
Member
Registered: 2012-08-23

Re: Workflows not executing upon reboot

I'm confused.  Is yesterday's 1.5.16 different from 1.5.16 from last week?

Offline

#9 2013-01-31 18:55:26

swy
Member
Registered: 2012-03-02

Re: Workflows not executing upon reboot

It is.  I think they should be upping the build number, but they're not.  Go get it fresh from the main page, and you can expect different behavior from the one you have, at least as for as this issue.

Offline

#10 2013-02-21 18:23:50

swy
Member
Registered: 2012-03-02

Re: Workflows not executing upon reboot

Well, this is somewhat odd.  With no changes to my DS server, this event is back.  Doing an install of ML on a 10.7.3 machine, and upon reboot, the install fails with the same

installer: invalid option -allowUntrusted

error as before. Something's failing in the logic that builds the installer scripts, putting in an -allowUntrusted command to a machine that won't understand it, therefore causing it to fail.

Offline

#11 2013-02-21 19:16:54

rtrouton
Member
Registered: 2011-03-10

Re: Workflows not executing upon reboot

The "-allowUntrusted" flag was added to the installer command line tool in 10.7.4:

http://derflounder.wordpress.com/2012/05/17/10-7-4-command-line-installer-tool-can-now-install-installer-packages-with-expired-certificates/

It'd be helpful if there could be a check to disallow "-allowUntrusted" on Macs running 10.7.3 and earlier.

A workaround for now may be to put a Software Update task in the workflow ahead of any postponed package installations. That would allow the Mac to update to 10.7.5 before ds_install_packages.sh runs.

Last edited by rtrouton (2013-02-21 19:17:41)

Offline

Board footer

Powered by FluxBB