Speech export utility fails during data export
You might see a Failed to copy error message when you back up and restore Watson Speech services data with the export utility.
Symptoms
You might see the following error message in the console or the logs when you use the export
command to export a MinIO
database.
Failed to copy `https://localhost:8000/stt-customization-icp/customizations/51aac798-aea8-4d51-869f-7ec8213228f7/patch_acoustic.en-US_BroadbandModel.v2020-01-16.trainSnapshotDir/features.txt`. You did not provide the number of bytes specified by the Content-Length HTTP header.
Causes
This issue occurs when the files are corrupted. You cannot run the cp
or
cat
command on these files.
Resolving the problem
To resolve this issue, follow these steps:
- Verify that the associated custom model is not being used and that the model is not in an error state. To apply this workaround, the model must be available.
- Find the corrupted file.
- Run the
mc rm
command to delete the corrupted file. - Rerun the export or
backup.
./import_export.sh export -c speech-cr -o <export-directory> -v <cp4d-major-version> --no-quiesce --s3