2
A domain suddenly no longer works - Error: Object reference not set to an instance of an object
Question asked by Matthias Maass - 5/25/2021 at 2:54 AM
Answered
Hi

A domain suddenly no longer works on our server. Editing of the domain is no longer possible. Error message: Object reference not set to an instance of an object
I tried to reload the domain and also to dettach and attach but with the same error. I can't find a solution how to fix the problem. Does anyone know the problem and has a solution how to fix it?

Regards
Matthias Maass

6 Replies

Reply to Thread
0
Sébastien Riccio Replied
Hello Matthias,

Which version of SmarterMail are you running. If it is a recent build you might want to check in this particular domain folder if settings.json exists and if the content looks like a valid json file.

It could be corrupted if the server was shutdown abruptly or if the service crashed while it was writing to the file.

If the file doesn't seem right, you should be able to recover the settings.json file from the Archive subfolder of the domain, which contains some backups of the domain settings file.

I hope this will help.

Kind regards
Sébastien Riccio
System & Network Admin

3
Matthias Maass Replied
Hello Sebastien

Thank you for your help. I'm using the latest version of Smartermail.
Replacing the setting.json file from Archive does not fix the problem. I checked the other json-files and the accounts.json file was corrupted. I restored the file from the Archive and now the problem are fixed.

Kind regards
Matthias Maass
0
Sébastien Riccio Replied
Oh okay, cool you were able to recover the domain. Thanks you for letting me know.
Sébastien Riccio
System & Network Admin

0
Kyle Kerst Replied
Employee Post
Good morning everyone! Out of curiosity, how do you proceed with upgrades? Do you stop the SmarterMail IIS site, application pool, or system service before uninstalling? Do you uninstall or simply install the new version? One thing I like to do on busier environments is to stop all of these in series so the connected clients have time to terminate connectivity: 

1. Stop the SmarterMail IIS site and then it's application pool.
2. Stop the SmarterMail system service and wait ~30 seconds for the service to drop out of memory. 
3. Uninstall, then install the new version.
4. While the installer is copying new files; start the SmarterMail application pool and IIS site. 


Kyle Kerst
System/Network Administrator
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
J. LaDow Replied
We stop IIS, then manually go in and shutdown the application pools. We have two - one runs our iOS/macOS .mobileconfig generator and the other runs SmarterMail.  Both are set to be "always on" instead of "demand-start" - so shutting down IIS doesn't stop the Application Pools from staying in memory.

Then we shutdown the SmarterMail MailService.

We wait until everything is cleared from "active tasks" plus about 30 seconds - then we run the installer.

The Installer usually starts SmarterMail service on it's own.  After installer clears from memory, we restart IIS and turn the application pools back on.

The whole process takes less than 3 minutes usually. We currently service about 400 mailboxes across 90 domains on that server (for reference).

We've not had an upgrade issue - only the random bug that appears from whatever SM version we are on that almost always is triaged in the next update.  


MailEnable survivor / convert --
0
Andrea Free Replied
Employee Post Marked As Answer
Hi Matthias, 

I wanted to reach out and let you know that this issue has been resolved in Build 8644. Thank you for your assistance in getting this resolved. 

Andrea Free
SmarterTools Inc.
877-357-6278

www.smartertools.com

Reply to Thread