Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Commented Unassigned: Creating site Collection - Access denied [22004]

$
0
0
Hello,
I am installing SP 2013 remotely and I am having trouble during script while its try to create site collection.

```
--------------------------------------------------------------
--------------------------------------------------------------
- Creating web applications...
- Web app "Portal" already provisioned.
- Setting up managed paths for "http://portal.asd.local:80"
- Setting up explicit managed path "help" at "http://portal.asd.local:80" and HNSCs...
- Done setting up managed paths at "http://portal.asd.local:80"
--------------------------------------------------------------
- Applying object cache accounts to "http://portal.asd.local:80"...
- Done applying object cache accounts to "http://portal.asd.local:80"
- Checking for Site Collection "http://portal.asd.local"...
- Creating Site Collection "http://portal.asd.local"...
--------------------------------------------------------------
- Script halted!


Exception : System.UnauthorizedAccessException:
<nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.
at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessExceptio
n ex)
v Microsoft.SharePoint.Library.SPRequest.CreateSite(Guid gApplicationId, String bstrUrl, Int
32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, S
tring bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescripti
on, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String
bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bs
trSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHost
HeaderIsSiteName, Int32 iDatabaseVersionMajor, Int32 iDatabaseVersionMinor, Int32 iDatabaseVers
ionBuild, Int32 iDatabaseVersionRevision, String bstrSiteSchemaVersion)
v Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSit
eSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID,
Int32 compatibilityLevel, String webTemplate, String ownerLogin, String ownerName, String owne
rEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail
, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName, Boolean override
CompatibilityRestriction)
v Microsoft.SharePoint.PowerShell.SPCmdletNewSite.CreateDataObject()
v Microsoft.SharePoint.PowerShell.SPNewCmdletBase`1.InternalProcessRecord()
v Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
TargetObject : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletNewSite:SPCmdletNewSite) [New-SPSite], UnauthorizedAcce
ssException
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at CreateWebApp, C:\Install\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line
2790
at CreateWebApplications, C:\Install\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerFunctions.p
s1: line 2575
at Setup-Farm, C:\Install\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerMain.ps1: line 209
at <ScriptBlock>, C:\Install\AutoSPInstaller\AutoSPInstaller\AutoSPInstallerMain.ps1: line 408
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :



-----------------------------------
| Automated SP2013 install script |
| Started on: 11. 9. 2015 17:49:13 |
| Aborted: 11. 9. 2015 17:50:48 |
-----------------------------------
```

I have tried a lot of things
1) Try to running SharePoint Product Configuration Wizard manually to see if it stabilizes my farm, then try run the script again
2) Manually set user policy to SuperUser and SuperReader in SP Central Adminsitration to my site collection (as said link on line 2790 in AutoSPInstallerFunctions.ps1 - see Error msg)
3) checked (System cryptography: FIPS)
4) Added all avaible DB users all permission (just for control) not working
5) Set the pool identity from SP_AppPool to Network Service + add SP_Farm into "Log on as a service" and "Log on as a batch" in Local Secuirty Policy
6) Delete all database, users, web aplications, disconnect the farm via SP Product config wizard and try to run it all over again
None of these working

Is is possible that this problem is due to remote install? because i am getting out of relevant google page to search.


Thank you in advance
Comments: ** Comment from web user: dayzed365 **

I am having the same exact issue. Does anyone have a solution?

```
--------------------------------------------------------------
- Applying object cache accounts to "http://portal.xxxxxx:80"...
- Granting i:0#.w|xxx\SPCachUser Full Control to http://portal.xxxxxx/...
- Granting i:0#.w|xxx\SPCachRead Full Read to http://portal.xxxxxx/...
- Done applying object cache accounts to "http://portal.xxxxxx:80"
- Checking for Site Collection "http://portal.xxxxxx"...
- Creating Site Collection "http://portal.xxxxxx"...
--------------------------------------------------------------
- Script halted!


Exception : System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.
```


Viewing all articles
Browse latest Browse all 2279

Trending Articles