Granting rights to Portal Home Error

Dec 18, 2011 at 9:12 PM

The script gets to this point, then aborts.  Any suggestions?

--------------------------------------------------------------
 - Creating web applications...
 - Web app "Portal Home" already provisioned.
 - Granting  rights to "Portal Home"...--------------------------------------------------------------
 - Script aborted!


Exception             : System.Management.Automation.MethodInvocationException:
                         Exception calling "GrantAccessToProcessIdentity" with "1" argument(s): "String cannot be of zero length.
                        Parameter name: name" ---> System.ArgumentException: String cannot be of zero length.
                        Parameter name: name at System.Security.Principal.NTAccount..ctor(String name)
                           at Microsoft.SharePoint.Administration.SPWebApplicat
                        ion.GrantAccessToProcessIdentity(String username, SPPol
                        icyRoleType policyRole)
                           at GrantAccessToProcessIdentity(Object , Object[] )
                           at System.Management.Automation.DotNetAdapter.Auxili
                        aryMethodInvoke(Object target, Object[] arguments, Meth
                        odInformation methodInformation, Object[] originalArgum
                        ents)
                           --- End of inner exception stack trace ---
                           at System.Management.Automation.DotNetAdapter.Auxili
                        aryMethodInvoke(Object target, Object[] arguments, Meth
                        odInformation methodInformation, Object[] originalArgum
                        ents)
                           at System.Management.Automation.DotNetAdapter.Method
                        InvokeDotNet(String methodName, Object target, MethodIn
                        formation[] methodInformation, Object[] arguments)
                           at System.Management.Automation.Adapter.BaseMethodIn
                        voke(PSMethod method, Object[] arguments)
                           at System.Management.Automation.ParserOps.CallMethod
                        (Token token, Object target, String methodName, Object[
                        ] paramArray, Boolean callStatic, Object valueToSet)
                           at System.Management.Automation.MethodCallNode.Invok
                        eMethod(Object target, Object[] arguments, Object value
                        )
                           at System.Management.Automation.MethodCallNode.Execu
                        te(Array input, Pipe outputPipe, ExecutionContext conte
                        xt)
                           at System.Management.Automation.ParseTreeNode.Execut
                        e(Array input, Pipe outputPipe, ArrayList& resultList,
                        ExecutionContext context)
                           at System.Management.Automation.StatementListNode.Ex
                        ecuteStatement(ParseTreeNode statement, Array input, Pi
                        pe outputPipe, ArrayList& resultList, ExecutionContext
                        context)
TargetObject          :
CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : DotNetMethodException
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {}
PSMessageDetails      :

Coordinator
Dec 20, 2011 at 12:36 AM

It's bumping into a null or zero-length string, meaning something is likely missing/incorrect in the input XML. Can you attach it?

Thx
Brian

Dec 20, 2011 at 12:44 AM
Edited Feb 7, 2012 at 4:59 PM

Fixed it somehow, thanks for the reply.

 

From: brianlala [email removed]
Sent: Monday, December 19, 2011 5:36 PM
To: Bill Fry
Subject: Re: Granting rights to Portal Home Error [autospinstaller:283390]

 

From: brianlala

It's bumping into a null or zero-length string, meaning something is likely missing/incorrect in the input XML. Can you attach it?

Thx
Brian

Feb 7, 2012 at 4:42 PM
Edited Feb 7, 2012 at 4:45 PM

Bfry, im having exactly the same issue. I checked all configuration values but they all seem correct.

Download my XML here: http://www.uploadmb.com/dw.php?id=1328636681

Feb 7, 2012 at 4:59 PM

Mine somehow worked after re-running it.

Looking at your xml file, I don't know if this makes a difference but on:

Line 48, you do not have a Passphrase entered.

Bill

Feb 7, 2012 at 5:04 PM
Edited Feb 7, 2012 at 5:05 PM
Thank you for checking. The version i uploaded was apparently a bit older than the actual one: http://www.uploadmb.com/dw.php?id=1328637662 . The passphrase is there.
Feb 8, 2012 at 10:30 AM

Finally got it working. In my case the AutoSPInstaller error was caused because i had changed the CommonNames of the default managed accounts:

<!-- The CommonName values should remain unchanged; you can add additional managed accounts, but script expects certain static values for these 4 managed accounts.  If you are creating additional web applications, use a new account for each web application with a new common name, unless you are creating a large number  of web applications, in which case the additional memory consumption this requires outweighs the security benefits. -->

It seems that only the first one is required in the script. I adjusted the code to reference my custom common named managed account and now the script completed successfully.

Feb 13, 2012 at 3:53 PM

Running into the same issue now. 

In response to what others have posted- All values are set in the doc correctly, the XML passes validation, the service accounts have correct permission, and I am using the latest xml from autospinstaller.

Any ideas on what is causing this issue?

Feb 13, 2012 at 3:55 PM
Edited Feb 13, 2012 at 3:56 PM

 

bfry24 wrote:

Fixed it somehow, thanks for the reply.

 

Was something wrong with your xml?  Can you post what you did to fix your issue?

Feb 13, 2012 at 4:52 PM

I was able to find it.  There was a section in the config file that was missing.