We use the Call Recordings and this morning Asterisk was failing to write the call recording files, checking Asterisk we got the message:
[2020-01-02 09:05:00] WARNING[C-000266c8] file.c: Unable to open file /var/spool/asterisk/monitor/2020/01/02/q-500-6036777863-20200102-090459-1577973899.8005911.WAV: No such file or directory
[2020-01-02 09:05:00] ERROR[C-000266c8] app_mixmonitor.c: Cannot open /var/spool/asterisk/monitor/2020/01/02/q-500-6036777863-20200102-090459-1577973899.8005911.WAV
Looking further into it we realized that there was no 2020 directory within /var/spool/asterisk/monitoring/ hence the title. After manually creating a 2020 directory and performing a “chown” to make sure it had the same permissions/owner/group Asterisk was able to auto-generate the month and day directories (e.g. /var/spool/asterisk/monitoring/2020/01/02) and everything is working as intended now. Looking in the logs I can’t seem to find anything specifically relating to attempting to create the directory or anything like that. Has anyone come across this before? Thanks!