1
The user failed to load after updating to SM Build 8657
Problem reported by Alexander Emmerson - 9/21/2023 at 6:58 AM
Resolved
After updating from Build 8451 to Build 8657 one of our user accounts is no more accessible. In the Users list an exclamation point (!) ist displayed beside the account. After klicking on that the following message is displayed:

"The user failed to load. As a result, mail will not function. Please refer to the SmarterMail Help for assistance resolving this issue, or click Remove to remove this user from the list. Note that the directory at d:\SmarterMail\Domains\medicum-mittelhessen.de\Users\... will not be deleted."

Is there any chance to recover the user account?


15 Replies

Reply to Thread
1
Kyle Kerst Replied
Employee Post
Hi Alexander, sorry to hear you're seeing issues with this! This user has likely has a bad JSON file inside of their account, and once you restore a good backup copy the user should come right back online. To confirm what's going on you can remove it from the account list (using the screen you referenced above) then use something like jsonlint.com to validate the contents of the user's JSON configuration files found in the root of their directory on the server's hard drive. When you find the broken one, you can look in the user's Archived Data directory to find a valid backup copy. If this file has been broken for some time you may need to pull a good copy from your own long term backups. Once you get it restored, you can use ...>Attach User (on the Manage page) to reattach that user account and get them back online. Please don't hesitate to reach out if you have any questions or get stuck!
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com
0
Employee Replied
Employee Post
Hi Alexander,

I created a support ticket so we can review this with you. 
0
Employee Replied
Employee Post
Hello,

The developers were able to resolve the issue that caused the Failed to Load users. This has been released in Build 8644, which was just released. You shouldn't see this behavior occur again. Please upgrade and it should resolve the errors. If not, please backup the user account on disk, click the Remove button from within the Failed to Load user. Then, go to the Domains grid, click on the Actions menu, and choose Attach User. 

I hope this helps! 

Kind regards,
0
Gabriele Maoret - SERSIS Replied
Hi Andrea! The new release is 8664, not 8644..
Gabriele Maoret - Head of SysAdmins at SERSIS Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)
4
kevind Replied
Gabriele wrote:
Hi Andrea! The new release is 8664, not 8644.
This is another good reason to just make it build date instead of build #. 🙂
2
Brian Bjerring-Jensen Replied
Exactly :)
1
Alexander Emmerson Replied

Hi all,

thank you for your excellent support regarding smartermail.

Today I wanted to carry out the steps described to restore the defective user account. I saw that the error disappeared and the mailbox worked again without us making any changes on the IT side. Yesterday the error was still there. Very strange...
For further analysis, I sent Andrea the config files of the user profile (before Update) by email.

In my opinion the ticket can be closed now.
0
ellisfr Replied
I have the same problem, yesterday night we upgraded SM from old build 8451 to latest build 9007.
This morning we saw several accounts in various domains with the error "The user failed to load" in the accounts list in webmail.


After checking all the json files of an account with this error, they are all marked as valid by  jsonlint.com

What else can I try ? (I just opened a ticket about this)
0
ellisfr Replied
OK, problem solved, by detaching the account from the alert window and then attaching the user again, without changing anything else, users were restored correctly.

Exception for the users who were admin of their domain (had an "You may not detach yourself" alert), I had to modify the accounts.json to remove their admin status.


0
David Bartholomew Replied
We upgraded last night to Build 9014 (Sep 5, 2024) and have many users with this same error message.  I have a few users with the admin and I'm wondering the steps to fix this as identified in the previous message.

I noticed that it seems to have moved some domains in to /domains/domains and when I reattach it doesn't find them. Do I copy the domain back into /domains ? 
1
ellisfr Replied
What I did was going to domains/mydomainname and edit the accounts.json file (make a copy first) to make sure it was set to : 
"primary_domain_admin":"root","domain_admins":["root"]
That means I removed the user name of other admins if there was any.
I think I had to do something after, like creating a user and removing it so SmarterMail reload the settings.
(you can also stop/start SmarterMail if this is an option for you).

These are all dirty hacks, it maybe better to open a ticket and get a clean solution.
0
Nico Smit Replied
Hi, should we first stop the service before editing accounts.json ? What's the best option?
2
ellisfr Replied
If you can, yes, I think it is better to stop the service first, so you are sure your new settings are loaded when you start the service again.

0
Nico Smit Replied
Did that exactly and seems to be working! Do you knowing a easier way to search for similar accounts with this issue? Thx!
1
ellisfr Replied
To identify accounts with problem, I did it manually, by parsing all domains accounts list to see those with the exclamation mark.
And if I wasn't able to detach/attach the account, I checked if it was an admin account and modified the accounts.json to remove them from "primary_domain_admin":"root","domain_admins":["root"]

Reply to Thread