Problem solved!
Here's what I found out. The suggestion Chris made in his reply to my initial post all checked out okay.
The problem occurs because we run two instances of SugarCRM, a production server and a backup (slower CPU). Due to a problem with PHP (error cited below), we were running the cron script on the backup. Apparently, this configuration allowed us to receive emails fine, but it was saving the attachments to the file system of the back up machine. I found this out when I compared directory listings (the backup had the file IDs I couldn't find on our production unit). I have moved the files in cache/upload to the production machine from the backup.
When I turned off the cron script on the backup and manually checked emails (from the production site) I sent myself with attachments from another account, the files are being stored correctly on the production server's file system.
The error we're getting with php when running the crontab script from the command line is as follows:
Code:
[sugardir]# /usr/bin/php5 -f cron.php
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /srv/www/SugarCRM/modules/Schedulers/Scheduler.php on line 181
On the production machine, this error was fixed by increasing the value of memory_limit to 64M from the default of 8M.
Bookmarks