Super User Account Utilized by the Cache is Not Configured…

If you have the Publishing Feature enabled on your SharePoint Server Farm, you may see this error somewhat frequently in your event viewer:

Event ID 7362. Object Cache: The super user account utilized by the cache is not configured.  This can increase the number of cache misses, which causes the page requests to consume unnecessary system resources.

Event ID 7362

Basically, you are having a lot of cache misses which slows down the end-user experience and consumes system resources.  If you want to read more about object cache user accounts, refer to this TechNet article.

There is an easy solution that will make everyone, including SharePoint, happy.

  1. Create two new accounts.  Call one SuperUser and the other SuperReader.
  2. In the web application’s user policy (Central Administration > Application Management > Manage Web Application > User Policy), grant SuperUser Full Control and SuperReader Full Read.
  3. Run the following PowerShell script:

$wa = Get-SPWebApplication “http://<server>/”
$wa.Properties["portalsuperuseraccount"] = “domain\superuser”
$wa.Properties["portalsuperreaderaccount"] = “domain\superreader”
$wa.Update()

The above works fine when using classic mode authentication.  If you are using claims based authentication, you have to inlcude the i:0#.w| stuff in front of the domain (i.e. $wa.Properties["portalsuperuseraccount"] = “i:0#.w|domain\superuser”).

 

June 2011 Cumulative Update Refresh – better referred to as v2

Apparently, there were some issues with the original June 2011 Cumulative Update so they “refreshed” it and added additional fixes.  Among one of the issues with the original update package was that the “Install fails on environment with .NET 4.0 installed.”

Really?  This wasn’t tested?  I’m not sure if this means it always fails or sometimes fails.  If it always fails, then MS needs to take another look at its QA process.

Anyways, read the quick blog entry from the MS SharePoint Team here.

And, as before, go to the SharePoint Update Center to ensure you are downloading the latest June 2011 Cumulative Update.

SharePoint Search and PDF Files

This issue still comes up on occasion.  Microsoft has released excellent documentation on how to retrieve PDF files using SharePoint Search.

Follow the links supplied on my brother’s blog: http://andrewmilsark.com/2011/04/06/configure-pdf-indexing-in-sharepoint-2010/.

The only correction I have is that if you are using SharePoint Foundation, follow the steps to step 3, not step 4.  Step 4 is where you add PDF to the Search Service Application.  Obviously, Foundation doesn’t have a search service application.

Deleting and Restoring a Site

One of the welcomed features of SP1, at least from a hosting company’s perspective, is the ability to restore sites and site collections accidentally deleted.  We have in the past spent hours restoring a site a client deleted.

After installing SP1, this was the first feature I wanted to try.

  • I created a test site called /testMatt.
  • I navigated to the site and in Site Settings I chose Delete this Site.  One of the first things I noticed was the warning that if continuing it would be sent to the recycle bin.  This looks promising.

Example 1

  • The site was deleted.
  • I then navigated to the top level site > Site Actions > Site Settings.
  • Click Recycle bin.

Example 2

  • Click Deleted from end user Recycle Bin.
  • I chose the site that was deleted and clicked Restore Selection.
Restore a Deleted Site

Example 3

And I navigated to where the site was… and wow, it was there.

Extremely nice!!!

Some questions I need to find the answers to:

  1. When a site collection is deleted, from what recycle bin do you restore it?
  2. I’m assuming it works fine, but I’m curious if you have custom solutions on the site if it mucks anything up.
  3. What happens if you delete a site, create a new one in the same location, and try to restore the deleted one?

I’ll answer these questions myself in the near future (when I have some more testing time).

June Cumulative 2011 Update Experience

Hmmm… not sure if this went better or not than the SP1 install.  However, it is finished and everything appears to be working, so I’m assuming it went well enough.

Anyway, here is what happened for me.  Environment: same as before, 1 WFE, 1 SQL Server with SSRS.

On WFE:

  1. Installed June 2011 Cumulative Update for Foundation.  All good.
  2. Attempted install of June 2011 Cumulative Update for SharePoint.  It told me: “There are no products affected by this package installed on this system.”

On SQL:

  1. Installed June 2011 Cumulative Update for Foundation.  All good.
  2. Installed June 2011 Cumulative Update for Server.  All good.

On WFE:

  1. Ran config wizard (psconfig -cmd upgrade -inplace b2b -wait -force)
  2. Failed because, surprise, WFE needs June 2011 Cumulative Updates (why when I run the installer it tells me there’s nothing to do, I have no idea).

Hmmmm… here we go again.

After some consternation and some digging around to no avail, I said to myself the “hell with it” and

  1. Reboot the WFE.
  2. I ran the June 2011 Cumulative Update for Server and it took.
  3. I ran the config wizard (using same aforementioned command).  It started the upgrade process.
  4. Failed on step 9 of 10 with same message as when I installed Service Pack.
  5. Hmmm… alright.  Charging ahead (again, I had a snapshot ready just in case) I ran the config wizard on the SQL Server.  Installed fine.

Performed a battery of tests and everything looks okay.  I did have to perform an IISRESET, however, in order for search to work.  Without the reset, I kept getting that damned “The Search request was unable to connect to the search service.”

The content db is at the correct version, and no server is reporting needing an upgrade.

Now, truth be told, this probably isn’t the best environment for me to test upgrading to SP1 and June Cumulative updates.  I don’t have control over this farm and do not know what was attempted, what it’s being used for, or what has occurred in the past.  So certainly my experience with upgrading isn’t gospel and probably won’t occur in this same fashion in all environments.  After a few more updates, I should have more information.

SP1 Installed???

As promised, here is my experience with installing SP1.  The farm is setup as such: 1 WFE, 1 SQL Server with SSRS.  The update has to be installed on both servers.

On WFE:

  • Installed SP1 Foundation.  All good.
  • Installed SP1 Server.  All good.

On SQL.

  • Installed SP1 Foundation.  All good.
  • Installed SP1 Server.  Error: “The update failed.”  Not good.

So just to see what happened (I took a snapshot so I wasn’t too worried), I ran the config wizard on the WFE.  Sure enough, it said the SQL box needed SP1 installed before it could proceed with upgrading SharePoint.

So…. ran SP1 Server on the SQL box.  Error: “The update failed.”  This appeared in a message box.  However, while this was displayed, there was another message box with a progress bar.  It apparently continued installing the update.  I let the progress bar finish and I received the update complete (or whatever message box of success is displayed).

Back on WFE: ran config wizard.  Started updating SharePoint so I guess the second run of SP1 Server on SQL box took.  All looked good until step 9 of 10.

That was when I received the dreaded Upgrade failed message.  Looked at the suggested log file and discovered:

The exclusive inplace upgrader timer job failed.

Hmmm… I found this blog and it mentions UAC and running the config wizard as admin.

I did neither.  Like I said, snapshot.  Instead, I navigated to Central Administration > Manage Servers in Farm.  The WFE had No Action Required.  SQL Server required an update.  Furthermore, the Configuration Database Version was updated to 14.0.6029.1000, which is what it should be after installing SP1.  OKAY… so…

I ran the config wizard on the SQL box.  It completed successfully without error.  Navigated back to Central Administration > Manage Servers in Farm.  All servers report “No Action Required.”

I ran the config wizard again on WFE.  It did not want to upgrade SharePoint.  Instead, it ran in the repair mode and finished without issue.

I ran stsadm -o localupgradestatus and nothing is being reported as needing to be upgrade.

Restarted the Timer Server on both servers.

I am currently testing the farm and all is looking well.

Next up… June 2011 Cumulative.  I will run these updates as soon as the files copy to the server.

Hopefully it goes a little smoother than this.  My conclusion in all this: I’m not really sure.  Everything seemed to have installed correctly, in spite of the errors I encountered.  However, just to be cautious, I’m going to make backups of these VMs, revert to the snapshot pre-SP1 and hammer through the process again… and probably again… until I can reproduce and determine what occurred during this initial run.  For now, though, everything is looking like the upgrade took.

I even created a test site, deleted it, and restored it.  Nice…

Still Confusion with SharePoint Editions

Building environments for clients at fpweb.net, I see a lot of clients’ plans for their SharePoint farm before deploying their servers.  When looking at these plans, I have to review them for any errors or potential problems.

Oddly enough (or not so odd when you consider Microsoft’s documentation on the subject) there is still some issue as to the difference between SharePoint 2010 Foundation and SharePoint 2010 Enterprise.

Here is Microsoft’s Documentation on comparing SharePoint editions.

Here is the site I use and refer customer’s to (SharePointForum.com).  It details the service applications, site template, site collection features, and site features available in the different SharePoint editions.

If anyone knows where better Microsoft documentation is, let me know.

SharePoint Service Pack 1

Yes, SP1 is out.  No I haven’t installed it… yet.  I plan to install it tomorrow in a farm.  And then probably early next week in an eight-server farm.  I am anxious to install this because according to Mr. Joel Oleson there has been some Reliability Enhancements regarding the User Profile Synchronization.  This is welcome news, as the stability and reliability of the user profile sync has always been questionable.

Refer to this SharePoint team blog post for the proper installation method.  Please read this thoroughly, as I have seen many horrors an improper upgrade does to a SharePoint farm.  Note: it is recommended to install June 2011 cumulative updates immediately after installation.  So with that being said, the recommended order to update a SharePoint Server farm is:

  1. Install SP1 for SharePoint Foundation 2010
  2. Install SP1 for SharePoint Server 2010
  3. Install June 2011 Cumulative Updates for SharePoint Foundation 2010
  4. Install June 2011 Cumulative Updates for SharePoint Server 2010

If you need to update the language packs, install them immediately after installing the corresponding SP1.  For example, the SP1 for SharePoint Foundation 2010 language pack should be installed immediately after installing SP1 for SharePoint Foundation 2010.  The SP1 for the Server language pack should be installed immediately after SP1 for SharePoint Server 2010.

The other real welcome addition is the site-level recycle bin.  Users, it seems, tend to delete sites and site collections without knowing they are doing so.  We have spent many many hours restoring sites accidentally deleted.

Anyway, I will let you know my experience after I install SP1.

Sites worth mentioning:

Downloads:

Wish me luck… I will let you know how it goes!

Search Sometimes Works… (Configuring search in a one-way trust)

Okay, so has this ever happened to you?  You install and configure a beautiful, fresh, and pristine SharePoint environment.  Of course, you test search by performing a full crawl.  Results are returned.  All is good.  Right?

Well you log in as a different user and run the same exact search.  Instead of results, however, you get that aggravating and dreaded no search results screen!  Ugh…

What’s going on?

This scenario occurs if you have a one-way trust established and are performing a search with a user from the trusted domain.  In order to rectify this situation, you’ll have to configure your Search Service Application to store ACLs in Claims format.  To do this, you’ll have to use PowerShell (credit goes to Sladecross for this).

$SearchApp = Get-SPServiceApplication %searchGUID%
$SearchApp.setproperty(“ForceClaimACLs”, 1)

Replace %searchGUID% with the GUID of the Search Service Application.  Run

Get-SPServiceApplication

if you do not know the GUID.

After you perform a full crawl you should now see search results, regardless from which domain you are logged in.

I have also witnessed situations where the search crawling account was a domain account from the trusted domain.  This does allow users from the trusted domain to perform search.  However, the problem with this is twofold: configuring a managed account with an account from the trusted domain causes all sorts of wacky things.  One of which is the inability to access the Configure Managed Accounts screen from the UI.  Secondly, when logged-in from the other domain (the non-trusted one) you won’t see search results.  It becomes an either/or situation.

Using the PowerShell script allows any user, regardless of domain, to see the search results.

Oh, and you don’t have to force your web application to Claims based authentication.

So go ahead: run the script, run a full crawl, and allow both domain accounts the ability to accurately perform searches in SharePoint 2010.