This project is read-only.

Urgent: Multi-tenancy live sites crashed need advice

Topics: Announcements, General
May 20, 2012 at 4:48 PM
Edited May 20, 2012 at 5:30 PM

Hey all,

I've run into a pickle here and have about 50 websites down for the count and I'm at a loss to bring them back up.

I'm sporting Orchard 1.4 up with Multi-tenancy enabled. I added a new tenant this morning with a name that started with the number 4, "4wdcarsandtrucks". Well, after creating the new tenant, all my sites started throwing 404 errors. Looking into the logs, I found that I was getting the following entries for every one of my tentants:

2012-05-20 08:59:22,795 [6] Orchard.Environment.DefaultOrchardHost - A tenant could not be started: Default
System.Xml.XmlException: Name cannot begin with the '4' character, hexadecimal value 0x34. Line 16, position 4.
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at Orchard.Environment.Descriptor.ShellDescriptorCache.Fetch(String name) in C:\src\xxxxxx\main\dotnet\public\Orchard\v1.4.1.0\src\Orchard\Environment\Descriptor\ShellDescriptorCache.cs:line 53
   at Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings settings) in C:\src\xxxxx\main\dotnet\public\Orchard\v1.4.1.0\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:line 54
   at Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in C:\src\xxxxxx\main\dotnet\public\Orchard\v1.4.1.0\src\Orchard\Environment\DefaultOrchardHost.cs:line 135

As per instructions of removing tentants manually, I deleted the site folder in App_Data\Sites and the issue still persists.

I did a search under the orchard root folder for "4wdcarsandtrucks" and found another folder in Media. With that removed, the only remaining traces of the tenant name, the issues still persists. I've Recycled the app pool and restarted the site.

I've removed all tenants besides the default tenant and even removed the Orchard.MultiTenancy module folder. The error still persists even after a server re-boot. What gives?

Please help!

Issue Resolved

Phew! In case anyone else runs into this issue, there's a simple fix.

1. Stop the application pool.
2. Delete App_Data\cache.dat
3. Start the application pool.

There is some bizarre caching surround this issue I guess.

May 21, 2012 at 4:46 AM

Removing a tenant can be done by deleting its folder under app_data\sites. That's another way to get out of this kind of situation.

May 31, 2012 at 6:36 PM

Hey Bertrand Leroy, As I mentioned, I did delete that folder; that's the strange thing. I had to actually delete the App_Data\cache.dat for it to clear up.