After migrating to a new system when running the ddm_load command we see the following error.
Unable to create $SPECROOT/SS/DDM/ddmdb_<date>.tmpdir
The ddm_load doesn't complete and returns to the command line.
The ddm_load is being run as the Spectrum install owner. It is being run with the SpectroSERVER running, ProcessD running and Archive Manager down.
The spectrum install owner user is able to create, modify and delete files and directories in the $SPECROOT/SS/DDM directory.
All supported DX NetOps Spectrum releases
The $SPECROOT/SS/DDM/ddmdb_<date>.tmpdir is already created from a previous failed ddm_load run.
Ensure the SS, ProcessD and MySql are running and Archive Manager is down.
Delete the existing $SPECROOT/SS/DDM/ddmdb_<date>.tmpdir directory.
Run the ddm_load and it should complete successfully.
Alternatively if the disk runs out of space when loading the DDM save file, you may need to manually delete the DDM temp files after they are being loaded. Start the ddm_load -f <filename> and monitor the mysql output. When it informs you that it has loaded an event file, you can manually delete the corresponding event file in the DDM temp directory.