Server 4.1 Profile Manager Migration Failed
It looks like in upgrading to the recently released 4.1 went okay, except my Profile Manger migration failed. I tried to re-run migration using the KB here: OS X Server: Resolving issues with Profile Manager - Apple Support however this doesn't exist at all: sudo /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup/CommonE xtras/80-devicemgrcommon.sh
I see this in my logs:
[17213] [2015/04/09 08:20:31.489] -[SULogFileCollection setGlobalLogLevelPrefix:]: YES
0:: [17213] [2015/04/09 08:20:31.491]
############################################################################### ####
migration_tool-886.204 (PID:17213, OS:14D131, SERVER:14S1092, ARCH:x86_64) starting
LA: migration_tool
############################################################################### ####
0:: [17213] [2015/04/09 08:20:31.556] Waiting for postgres to startup....
0:: [17213] [2015/04/09 08:20:31.961] +[PGConnection reloadPreferences]: DBDebug = NO, DBLogNotices = NO, DBLogSQL = NO, DBMonitor = NO
0:: [17213] [2015/04/09 08:20:32.921] +[PGConnection reloadPreferences]: DBDebug = NO, DBLogNotices = NO, DBLogSQL = NO, DBMonitor = NO
0:: [17213] [2015/04/09 08:20:34.223] Dropping views...
0:: [17213] [2015/04/09 08:20:34.926] Dropping trigger functions...
0:: [17213] [2015/04/09 08:20:35.636] Dropping remaining non-dependent functions...
0:: [17213] [2015/04/09 08:20:37.251] MIGRATE_00885.001 completed successfully
0:: [17213] [2015/04/09 08:20:37.356] MIGRATE_00885.003 completed successfully
0:: [17213] [2015/04/09 08:20:37.749] EXCEPTION: Postgres <-[PGConnection executeCSQL:] (/SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-886.204/Compiled/Fr amework-Models/Postgres/PGConnection.m:339): "Postgres error 2BP01 (ERROR: cannot drop function dm_current_timestamp() because other objects depend on it
DETAIL: default for table devices column last_update_info_time depends on function dm_current_timestamp()
HINT: Use DROP ... CASCADE to drop the dependent objects too.
)">
USERINFO: {
SQLSTATE = 2BP01;
errorMessage = "ERROR: cannot drop function dm_current_timestamp() because other objects depend on it\\nDETAIL: default for table devices column last_update_info_time depends on function dm_current_timestamp()\\nHINT: Use DROP ... CASCADE to drop the dependent objects too.\\n";
}
0:: [17213] [2015/04/09 08:20:37.749] SQL Module failed at statement:
------------------------------------------------------------------------------- -------
DROP FUNCTION dm_current_timestamp();
------------------------------------------------------------------------------- -------
-[PGConnection executeCSQL:] (/SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-886.204/Compiled/Fr amework-Models/Postgres/PGConnection.m:339): "Postgres error 2BP01 (ERROR: cannot drop function dm_current_timestamp() because other objects depend on it
DETAIL: default for table devices column last_update_info_time depends on function dm_current_timestamp()
HINT: Use DROP ... CASCADE to drop the dependent objects too.
)"
0:: [17213] [2015/04/09 08:20:37.749] Caught unhandled exception -[PGConnection executeCSQL:] (/SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-886.204/Compiled/Fr amework-Models/Postgres/PGConnection.m:339): "Postgres error 2BP01 (ERROR: cannot drop function dm_current_timestamp() because other objects depend on it
DETAIL: default for table devices column last_update_info_time depends on function dm_current_timestamp()
HINT: Use DROP ... CASCADE to drop the dependent objects too.
)"
0:: [17213] [2015/04/09 08:20:37.749] Migration failed at MIGRATE_00885.004 (final step is MIGRATE_00886.204)
0:: [17213] [2015/04/09 08:20:38.018] +[PGConnection reloadPreferences]: DBDebug = NO, DBLogNotices = NO, DBLogSQL = NO, DBMonitor = NO
0:: [17213] [2015/04/09 08:20:38.023] ShutdownMigrator: 2015-04-09 12:20:38 +0000
0:: [17213] [2015/04/09 08:20:38.023] BYE
Any ideas anyone?