Server 5.0.3 Profile Manager Migration failing
Hi,
I recently updated my server to OS X 10.10.5, so updated the Server.app to 5.0.3 (from 4.1.3) and the migration is failing at step 9, which is doing something with the knob_sets table.
I saw that 5.0.4 came out today but it has the same issue.
Any help would be greatly appreciated.
While searched for similar problems I saw that knob_sets was supposed to migrate from YAML to JSON at some point, so wondered whether my database has missed a migration somewhere along the way.
Here is the point of failure in the log:
0:: [77770] [2015/09/21 10:48:24.586] SQL Module failed at statement:
------------------------------------------------------------------------------- -------
ALTER TABLE knob_sets ALTER COLUMN dynamic_attributes SET DATA TYPE json USING (dynamic_attributes::json);
------------------------------------------------------------------------------- -------
-[PGConnection executeCSQL:] (/SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-888.70/Compiled/Fra mework-Models/Postgres/PGConnection.m:365): "Postgres error 22P02 (ERROR: invalid input syntax for type json
DETAIL: Token "-" is invalid.
CONTEXT: JSON data, line 1: -...
)"
0:: [77770] [2015/09/21 10:48:24.587] Caught unhandled exception -[PGConnection executeCSQL:] (/SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-888.70/Compiled/Fra mework-Models/Postgres/PGConnection.m:365): "Postgres error 22P02 (ERROR: invalid input syntax for type json
DETAIL: Token "-" is invalid.
CONTEXT: JSON data, line 1: -...
)"
0:: [77770] [2015/09/21 10:48:24.588] Migration failed at MIGRATE_00887.009 (final step is MIGRATE_00888.070)
0:: [77770] [2015/09/21 10:48:24.789] ShutdownMigrator: 2015-09-21 00:48:24 +0000
0:: [77770] [2015/09/21 10:48:24.790] BYE
Xserve, OS X Yosemite (10.10.5)