This topic contains 2 replies, has 2 voices, and was last updated by mkh 5 years, 10 months ago.
- Topic
I first found that “Sync Emails” button only syncs small number of emails headers and stops after about 1 minute. Then I tried to run oro:cron:imap-sync manually and here’s how it works:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667root@orocrm:/# time php /var/www/html/orocrm/app/console oro:cron:imap-sync --env=prodResetting hanged email origins ...Updated 0 row(s).Finding an email origin ...Found "redacted@example.com (secure.emailsrvr.com)" email origin. Id: 4.Get folders enabled for sync...Got 3 folder(s).The folder "Sent" is selected.Previous max email UID "0"Found 444 email(s).Batch save time: "3" seconds.Batch save time: "3" seconds.Batch save time: "2" seconds.Batch save time: "2" seconds.The folder "Sent Items" is selected.Previous max email UID "0"Found 12372 email(s).Batch save time: "5" seconds.Batch save time: "3" seconds.Batch save time: "3" seconds.Batch save time: "3" seconds.Processed 500 of 12372 emails.Batch save time: "3" seconds.Batch save time: "2" seconds.Batch save time: "3" seconds.Batch save time: "3" seconds.Batch save time: "3" seconds.Processed 1000 of 12372 emails.Batch save time: "4" seconds.Batch save time: "3" seconds.Batch save time: "4" seconds.Batch save time: "3" seconds.Batch save time: "3" seconds.Finding an email origin ...Found "redacted2@example.com (secure.emailsrvr.com)" email origin. Id: 6.Get folders enabled for sync...Got 1 folder(s).The folder "INBOX" is selected.Previous max email UID "6333"Found 2401 email(s).Batch save time: "4" seconds.Batch save time: "2" seconds.Batch save time: "4" seconds.Processed 500 of 2401 emails.Batch save time: "3" seconds.Batch save time: "3" seconds.Batch save time: "2" seconds.Batch save time: "2" seconds.Batch save time: "2" seconds.Processed 1000 of 2401 emails.Batch save time: "3" seconds.Batch save time: "3" seconds.Batch save time: "3" seconds.Batch save time: "5" seconds.Batch save time: "3" seconds.Processed 1500 of 2401 emails.Batch save time: "5" seconds.Batch save time: "3" seconds.Batch save time: "4" seconds.Batch save time: "3" seconds.Finding an email origin ...Found "redacted@example.com (secure.emailsrvr.com)" email origin. Id: 4.Exit because all origins have been synchronised.real 2m10.271suser 0m33.632ssys 0m5.148sI tried to specify large –max-exec-time manually, but it doesn’t change anything. What am I doing wrong?
Temporarily I resorted to putting the following in the system crontab:
1*/10 * * * * flock --nonblock /run/oro:cron:imap-sync php /var/www/html/orocrm/app/console oro:cron:imap-sync --env=prod > /dev/null
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.