IMAP issues with 1 account but mult simultaneous connections

Discussions on webmail and the Professional version.
Post Reply
bigreddastud
Posts: 40
Joined: Tue Apr 19, 2005 7:30 pm

IMAP issues with 1 account but mult simultaneous connections

Post by bigreddastud » Tue Mar 19, 2013 8:28 pm

I've noticed issues when I have the same user account being simultaneously accessed using multiple IMAP clients (Desktop, Laptop, and Mobile Phone). Saving drafts/templates/etc seems to take 30-120 seconds, and often times fails all together. I enabled IMAP debugging and it seems that the "_activity.tab" file is being locked and maybe that's preventing the other session threads from refreshing & or taking actions.

Something is clearly wrong since it often results in "Unable to save in drafts" error while composing emails, and also a complete failure to copy outgoing emails to the "Sent Items" folder (which means I'm loosing emails for records keeping).

The setup:
Win2008 server x64
Mailenable 7.02

Clients simultaneously accessing same email account:
3 using Thunderbird 17.0.4
1 using K-9 Mail (v4.200) on Android (JellyBean 4.2.2)


Here's what the IMAP debug file shows:

Code: Select all

03/19/13 14:52:19	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab at this time (but will keep retrying). Error: 183
03/19/13 14:52:21	[Thread:4604] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:22	[Thread:4620] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:23	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab at this time (but will keep retrying). Error: 183
03/19/13 14:52:24	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab at this time (but will keep retrying). Error: 183
03/19/13 14:52:24	[Thread:4672] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:25	[Thread:4564] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:25	[Thread:4684] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:25	[Thread:4680] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:26	[Thread:4676] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.blk (80)
03/19/13 14:52:28	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab at this time (but will keep retrying). Error: 183
03/19/13 14:52:29	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab at this time (but will keep retrying). Error: 183
03/19/13 14:52:29	ME-WXXXX: Warning: A Timeout occured when attempting to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab. Error: 183
03/19/13 14:52:29	ME-WXXXX: Warning: Unblocking activity file (D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk) succeeded with non-fatal errors... trying to get block again.
03/19/13 14:52:29	ME-IXXXX: Information: Purging item from activity file (D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab). Server=MYSERVERNAME, NotifyProtocol=IMAP, ServerSession=74E256DB6A714009AB0F35726DB83DF0.
03/19/13 14:52:29	ME-IXXXX: Information: Purging item from activity file (D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab). Server=MYSERVERNAME, NotifyProtocol=IMAP, ServerSession=74E256DB6A714009AB0F35726DB83DF0.
03/19/13 14:52:29	ME-IXXXX: Information: Adding connection to existing activity file. Protocol=IMAP-SSL, IPAddress=192.168.1.1, PortNumber=4188,Folder=Drafts.
03/19/13 14:52:29	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab. Error: 5
03/19/13 14:52:30	ME-WXXXX: Warning: A Timeout occured when attempting to move D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab. Error: 183
03/19/13 14:52:30	ME-IXXXX: Information: Purging item from activity file (D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab). Server=MYSERVERNAME, NotifyProtocol=IMAP, ServerSession=53DF35ACEC7A454086BE2A971948E1BA.
03/19/13 14:52:30	ME-IXXXX: Information: Purging item from activity file (D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab). Server=MYSERVERNAME, NotifyProtocol=IMAP, ServerSession=53DF35ACEC7A454086BE2A971948E1BA.
03/19/13 14:52:30	ME-IXXXX: Information: Adding connection to existing activity file. Protocol=IMAP-SSL, IPAddress=192.168.1.1, PortNumber=3300,Folder=INBOX.
03/19/13 14:52:30	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab. Error: 5
03/19/13 14:52:30	[Thread:4656] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.blk (80)
03/19/13 14:52:31	[Thread:4604] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:32	[Thread:4620] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:34	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.tab. Error: 5
03/19/13 14:52:34	[Thread:4672] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:35	[Thread:4564] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:35	[Thread:4684] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:35	[Thread:4680] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MAILROOT\user1\_activity.blk (80)
03/19/13 14:52:35	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MAILROOT\someOtherUser\_activity.tab. Error: 5


bigreddastud
Posts: 40
Joined: Tue Apr 19, 2005 7:30 pm

Re: IMAP issues with 1 account but mult simultaneous connect

Post by bigreddastud » Tue Mar 26, 2013 2:56 pm

Bueller...Bueller...Anyone?

MailEnable-Ian
Site Admin
Posts: 9253
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: IMAP issues with 1 account but mult simultaneous connect

Post by MailEnable-Ian » Wed Apr 03, 2013 4:36 am

Hi,

Please download the latest version 7.05 from our downloads page as there were fixed to address similar problems when running IMAP as a 64bit service.
Regards,

Ian Margarone
MailEnable Support

bigreddastud
Posts: 40
Joined: Tue Apr 19, 2005 7:30 pm

Re: IMAP issues with 1 account but mult simultaneous connect

Post by bigreddastud » Mon Apr 08, 2013 3:12 pm

I did an upgrade over the weekend to v7.05, and from looking at the debug log, that didn't appear to really do much. I'm still getting locking issues on the _activity.blk files.

BTW, @MailEnable-Ian: the IMAP service appears to be a 32bit process on win2k8 x64. Is there a native x64 IMAP process available?


I'm still getting the same locking from the looks of it:

Code: Select all

04/08/13 09:43:59	ME-WXXXX: [2740] Destroying client context.
04/08/13 09:43:59	ME-WXXXX: Warning: Unblocking activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk) succeeded with non-fatal errors... trying to get block again.
04/08/13 09:43:59	ME-IXXXX: Information: Purging item from activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab). Server=ServerName, NotifyProtocol=IMAP, ServerSession=53DF35ACEC7A454086BE2A971948E1BA.
04/08/13 09:43:59	ME-IXXXX: Information: Purging item from activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab). Server=ServerName, NotifyProtocol=IMAP, ServerSession=53DF35ACEC7A454086BE2A971948E1BA.
04/08/13 09:43:59	ME-IXXXX: Information: Adding connection to existing activity file. Protocol=IMAP-SSL, IPAddress=192.xxx.xxx.xx2, PortNumber=2688,Folder=INBOX.
04/08/13 09:43:59	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab. Error: 5
04/08/13 09:44:02	[Thread:9348] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:04	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab. Error: 5
04/08/13 09:44:06	[Thread:11112] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:06	[Thread:8860] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:07	ME-WXXXX: Error: Activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk) access could not be obtained within timeout threshold. Threshold=100 seconds.
04/08/13 09:44:08	[Thread:11756] WaitForAccessToFile: Blocking timed out on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk
04/08/13 09:44:09	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab. Error: 5
04/08/13 09:44:13	[Thread:9348] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:14	ME-WXXXX: DeleteWithRetry Warning: An error occurred when attempting to delete file D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab. Error: 5
04/08/13 09:44:15	ME-WXXXX: DeleteWithRetry Error:  Abandoning attempts to delete file D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab. Error: 5
04/08/13 09:44:15	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab at this time (but will keep retrying). Error: 183
04/08/13 09:44:16	[Thread:11112] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:16	[Thread:8860] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:18	ME-WXXXX: Error: Activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk) access could not be obtained within timeout threshold. Threshold=100 seconds.
04/08/13 09:44:19	[Thread:11360] WaitForAccessToFile: Blocking timed out on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk
04/08/13 09:44:19	ME-WXXXX: Error: Activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk) access could not be obtained within timeout threshold. Threshold=100 seconds.
04/08/13 09:44:20	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab at this time (but will keep retrying). Error: 183
04/08/13 09:44:20	[Thread:10952] WaitForAccessToFile: Blocking timed out on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk
04/08/13 09:44:23	[Thread:9348] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:23	ME-WXXXX: Error: Activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk) access could not be obtained within timeout threshold. Threshold=100 seconds.
04/08/13 09:44:24	ME-WXXXX: Error: Activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk) access could not be obtained within timeout threshold. Threshold=100 seconds.
04/08/13 09:44:24	[Thread:12024] WaitForAccessToFile: Blocking timed out on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk
04/08/13 09:44:25	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab at this time (but will keep retrying). Error: 183
04/08/13 09:44:25	[Thread:11484] WaitForAccessToFile: Blocking timed out on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk
04/08/13 09:44:26	[Thread:11112] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:26	[Thread:8860] WaitForAccessToFile: Blocking on activity file: D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.blk (80)
04/08/13 09:44:30	ME-WXXXX: Warning: Unable to move D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab at this time (but will keep retrying). Error: 183
04/08/13 09:44:31	ME-WXXXX: Warning: A Timeout occured when attempting to move D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp Activity File to D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tab. Error: 183
04/08/13 09:44:31	[2688] Send failed (error 10053). Size 265
04/08/13 09:44:31	ME-IXXXX: Information: Removed expired entry from activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp). Protocol=IMAP-SSL, IP=192.xxx.xxx.xxx,Port=3904.
04/08/13 09:44:31	ME-IXXXX: Information: Removed expired entry from activity file (D:\MailRt\POSTOFFICES\x.com\MailRt\user2\_activity.tmp). Protocol=IMAP-SSL, IP=192.xxx.xxx.xx2,Port=2836.

bigreddastud
Posts: 40
Joined: Tue Apr 19, 2005 7:30 pm

Re: IMAP issues with 1 account but mult simultaneous connect

Post by bigreddastud » Wed Apr 24, 2013 9:10 pm

Any comment on the fact that I still seem to have this issue?

BTW, updated to v7.06 21st Apr 2013 with seemingly no effect.

MailEnable-Ian
Site Admin
Posts: 9253
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: IMAP issues with 1 account but mult simultaneous connect

Post by MailEnable-Ian » Thu May 09, 2013 4:40 am

Hi,

Upgrade to version 7.07 as there were more changes and try to run the services a 64bit. Information on how to do this can be found within the following article:

http://www.mailenable.com/kb/Content/Ar ... D=me020595
Regards,

Ian Margarone
MailEnable Support

Maur0V
Posts: 49
Joined: Thu May 09, 2013 10:26 am

Re: IMAP issues with 1 account but mult simultaneous connect

Post by Maur0V » Fri May 10, 2013 4:17 pm

I've a little problem.
I've upgraded my prodution server to the new 7.07 release (started from version 5.xx on this server).
i've tryed to apply the above descripted procedure to enable 64 bit version of the program but i can't find in the bin64 folder any of the requested program.
On a testing installation i've some of the 64 bit version in the bin64 forlder but, in this case, the meimaps.exe is not present.
On the production server i've installed the programs in a personalized folder under D: drive (not in c:\program files (x86) ). Can this be the problem?
how can i check which version of the component is running (32 or 64 bit)? I think could be nice if system overview or in the diagnostic Report just say if it's running in 32 or 64 bit
it's fine to copy the bin64 forlder from a test installation made on a cleen system? in this case can i be sure that any further upgrade will work fine?
thank.

MailEnable
Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Re: IMAP issues with 1 account but mult simultaneous connect

Post by MailEnable » Mon May 13, 2013 12:35 am

Are you experiencing the same problems as the original thread?
Since the original thread shows that Access Denied Errors are occurring - which typically would mean that the permissions to the message store are not correct (possibly because it has been moved from another server or restored from a backup).

In any case, to determine where your actual Application files are, you should run the MEDIAG (diagnostic utility) and take note of the Application Directory: (since perhaps the files you are looking at relate to an earlier installation).
The 64 bit version should be Bin64 rather than just BIN and IMAP should be in there.
Regards, Andrew

Maur0V
Posts: 49
Joined: Thu May 09, 2013 10:26 am

Re: IMAP issues with 1 account but mult simultaneous connect

Post by Maur0V » Mon May 13, 2013 8:25 am

i've some little problem whith imap. sometime, when connecting via IMAP via Outlook 2007 i recieve an error connecting (it's a mailbox whith more than 1gb of mails and a lot of folder).
the problem of activating the 64 bit version is that the bin64 folder don't have any 64 bit version (no meimaps.exe or other program)

MailEnable
Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Re: IMAP issues with 1 account but mult simultaneous connect

Post by MailEnable » Mon May 13, 2013 12:43 pm

I am not sure why the files do not appear there. I can only assume that your server is being detected as a 32 bit server only (are you sure it is 64 bit).
Version 7 will install 64 bit services. Also, I can tell you that the error of connection problem when loading IMAP will not be related to the bitness of the server.
To diagnose further will require access to log files and a review of the diagnostic report of the server. It may be best to raise this issue as a support request under the installation category so an engineer can review the configuration. Please see: http://www.mailenable.com/support
Regards, Andrew

dtkk
Posts: 9
Joined: Tue May 08, 2012 12:42 pm
Location: Ohio, USA

Re: IMAP issues with 1 account but mult simultaneous connect

Post by dtkk » Thu Jul 25, 2013 4:22 pm

@bigred - Did this solve your problem? We have the same problem with users getting the unable to copy to sent or drafts folders and I can't for the life of me figure out why this started happening.

We've been running me for about 2 years and this problem seems to have cropped up within the last 30-45 days.

bigreddastud
Posts: 40
Joined: Tue Apr 19, 2005 7:30 pm

Re: IMAP issues with 1 account but mult simultaneous connect

Post by bigreddastud » Thu Jul 25, 2013 7:23 pm

@dtkk - I don't have the issue any more. I was eventually able to get x64 working on my system so I can't tell you if it was due to running the new x64 services, or if it was simply because I re-installed the newer version that fixed it. At any rate, it's not giving me any more headaches. IMAP polling takes only seconds now (whereas it used to take minutes) and draft saving works flawlessly w/no timeouts.

FYI - here is the thread for how I got x64 working, since I had some issues with that. Hopefully you don't run into the same problems, but you can reference that thread in case you do.

dtkk
Posts: 9
Joined: Tue May 08, 2012 12:42 pm
Location: Ohio, USA

Re: IMAP issues with 1 account but mult simultaneous connect

Post by dtkk » Thu Jul 25, 2013 7:42 pm

I followed the directions in the link that me-Ian posted and got no errors. I guess I just assumed that this meant that the 64-bit executables were now in play. Hate to sound like a newb here but I'm a *nix admin normally. How can I be sure that I'm running the 64s?

Post Reply