Bug #316
Failure in cron job to remove tts files
| Status: | Closed | Start: | 08/08/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | tshif | % Done: | 100% |
|
| Category: | - | |||
| Target version: | Weather by ZIP Code - v 1.1.7 |
Description
Am getting this via email from the freepbx cronjob manager:
/usr/bin/find: rm/var/lib/asterisk/sounds/tts/tts-a5692519d07187c2472d0baf9962c4ab.wav: No such file or directory
/usr/bin/find: rm/var/lib/asterisk/sounds/tts/tts-a13efb08012218c5dcd8545983673f17.wav: No such file or directory
/usr/bin/find: rm/var/lib/asterisk/sounds/tts/tts-3edbd953ade2aa7777f9323f15ff23a0.wav: No such file or directory
/usr/bin/find: rm/var/lib/asterisk/sounds/tts/tts-b4f67c8aa75dcd497e4caf0b4c494548.wav: No such file or directory
The cron entry is:
/usr/bin/find /var/lib/asterisk/sounds/tts -name "*.wav" -mtime +1 -exec rm{} \;
I think we need a space after the rm and before the {}:
/usr/bin/find /var/lib/asterisk/sounds/tts -name "*.wav" -mtime +1 -exec rm {} \;
I am correct?
Related issues
| duplicates Weather by ZIP Code - Bug #216: TTS Folder not being cleared by cron task. | Closed | 10/26/2009 | 12/31/2009 |
History
Updated by mykroft almost 2 years ago
mykroft wrote:
I think we need a space after the rm and before the {}:
/usr/bin/find /var/lib/asterisk/sounds/tts -name "*.wav" -mtime +1 -exec rm {} \;
I was correct the space after rm and before {}
Updated by tshif almost 2 years ago
Updated by tshif almost 2 years ago
- Status changed from New to Reviewed
- Assigned to set to tshif
- % Done changed from 0 to 10
Updated by mykroft almost 2 years ago
Updated by mykroft almost 2 years ago
mykroft wrote:
tshif wrote:
Are you sure your running 1.1.6? This was corrected in r19 (line 59) , as per Bug ticket #216. Can you compare r19 to what you are running right now?
my modules screen says 1.1.6, but my install.php does not have the required space in line 59
i just downloaded the module file again, and took at look at the install.php, and the space is missing - so somehow the file got reverted to its old state
Updated by tshif almost 2 years ago
- Status changed from Reviewed to Assigned
- Target version changed from Weather by ZIP Code - v 1.1.6 to Weather by ZIP Code - Future Releases
- % Done changed from 10 to 30
Updated by tshif almost 2 years ago
I just triple checked every thing in the svn, the module, and everywhere else I could think - and this error is not present in whats being distributed with the current version.
Please - try UNINSTALLING the module - going even to the point of removing the WEATHERZIP module directory, and then reinstall the current version. Then examine the code and see if the space is missing. Somethings not right - and Id like to understand it better. I honestly cant find this error anywhere alive in the current codebase.
Updated by mykroft almost 2 years ago
tshif wrote:
I just triple checked every thing in the svn, the module, and everywhere else I could think - and this error is not present in whats being distributed with the current version.
Please - try UNINSTALLING the module - going even to the point of removing the WEATHERZIP module directory, and then reinstall the current version. Then examine the code and see if the space is missing. Somethings not right - and Id like to understand it better. I honestly cant find this error anywhere alive in the current codebase.
I just downloaded 1.1.6 from the site, and even before installing it - examined install.php and it has the following sql line for the cronjob:
$sql = "INSERT INTO cronmanager (module,id,time,freq,command) VALUES ('weatherzip','every_day',23,24,'/usr/bin/find /var/lib/asterisk/sounds/tts -name \"*.wav\" -mtime +1 -exec rm{} \\\;')";
as you can see, there is no space between the rm and {}, this is what is getting installed on a new install, is the 1.1.6.tgz build not updated by chance?
Updated by mykroft almost 2 years ago
ok, further testing as you requested:
uninstalled module
removed /var/www/html/admin/modules/weatherbyzip
checked sql cronmanager database - cron line is gone
manually uploaded 1.1.6 i just downloaded
installed module
check sql cronmanager database - cron line is there, but space is missing between rm{}
so it must have gotten to the svn, but not made it into the latest release avail for download......?
Updated by tshif almost 2 years ago
- Status changed from Assigned to Closed
- Target version changed from Weather by ZIP Code - Future Releases to Weather by ZIP Code - v 1.1.7
- % Done changed from 30 to 100
You are sadly correct. Its been corrected for the next build. 1.1.7