1
Some accounts are failing during conversion.
Problem reported by Max Marc - 11/2/2024 at 1:24 AM
Submitted
Hi,

I have Smartermail Domains from Windows copied to Linux, during conversion, SmarterMail is converting most of the accounts fine, but some are erroring with:
03:51:32.433 User Repo - Error loading user /var/lib/smartermail/Domains/d/j/amran232.net/Users/amran/
A read lock may not be acquired with the write lock held in this mode.
   at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
   at System.Threading.ReaderWriterLockSlim.TryEnterReadLock(Int32 millisecondsTimeout)
   at MailService.Repositories.DomainRepository.FaiMessagesByFolderIdReadonly(String accountName, Int64 folderId)
   at MailService.Repositories.UserRepository.GetCategoryListFromCalendar()
   at MailService.Repositories.UserRepository.UserSettingsLoadFile(Boolean createIfNonExistant)
   at MailService.Repositories.UserRepository.UserSettingsLoadFileReadOnly(Boolean createIfNonExistant)
   at MailService.Repositories.UserRepository.GetUserSettingsReadOnly()
Tried on SM 8979 and SM 9056

Why is it happening? Is there some way to resolve it?

2 Replies

Reply to Thread
0
Brian Bjerring-Jensen Replied
I am not a linux guy but it seems it doesnt release the lock on the files during migration.
0
Kyle Kerst Replied
Employee Post
It does appear to be a lock of some kind, have you tried restarting the server and testing it again? Perhaps migrate a new copy of the domain over, restart the server, then start SmarterMail to see if it successfully converts. Lastly; what are you using to migrate the data over? I've used rsync to move most migrated domains and haven't run into these issues. 
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com

Reply to Thread