AOP worked always just fine, but since the upgrade to 7.8.3 it’s not working at all. Tried a lot to fix it, but I can’t get it to work. The mailboxes are reachable, if I open the mailboxes directly in the mail application, the mailboxes show up. Cronjobs are working. However, AOP is not working. Why is this and how can I fix it for now our customer support isn’t able to read their mails.
Hi there. I can’t seem to find any errors. I checked the logs multiple times, but can’t find an AOP related error. It just seems like, the moment I updated to 7.8.3, the whole AOP just doesn’t work anymore. I even installed a new instance (with the old database and config) but that’s not working either…
It seems to not be running the task that’s scheduled. When I check the task log, the last time it actually ran the task was right before the upgrade. So for some reason it’s not running the task. However, when I check the cronlog, it gives me this.
Ok, so your problem is that you’re running your web server as user www-data, but you’re running the cron jobs as user nginx.
7.8.3 now has a check that only allowed users can run cron. You should have this explained in your suitecrm.log, maybe you missed it because you were only looking for AOP errors, but you should always look for any “fatal” and “error” messages when troubleshooting.
Also, the Release Notes of 7.8.3 warn about this change, you should always pay attention to Release notes before installing anything, especially in production).
The normal recommendation is to run the jobs with the same user as the web server, to avoid one process messing up permissions for the other. So you might want to change the crontabs appropriately (see my blog below for a post on scheduler jobs, it explains everything).
The other way around it would be to add an entry to cron_allowed_users array to allow nginx, but that seems a worse option.