Wav errors?

What is this?


[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vqplus-confirmed.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vmnotify-instructions.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vmnotify-goodbye.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/areminder-confirm.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vqplus-accept.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/areminder-for.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vqplus-enter-name.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vmnotify-followed-by-pound.wav
[2016-08-16 14:42:17] ERROR[12581] sounds_index.c: Failed to stat /var/lib/asterisk/sounds/vmnotify-instructions2.wav

Broken symlinks. Rm those files and all will be well.

Seems like there are many more files in the log than there are in the sounds directory. Above was just a few as an example.

Many of them are just duplicate ERRORs.

Had the same problem after an upgrade - Here is a simple BASH command to get rid of them all:

Specifically:

find -L . -name . -o -type d -prune -o -type l -exec rm {} +