2

am facing the issues while installing Sitecore 9, and getting below errors

I have a valid licence and solr is up and running and version is 6.2.2

[---------------------------------------------------------- StartServices [1] : ManageService --------------------------------------------------------------]
[StartServices [1]]:[Updating] xp0.xconnect-IndexWorker
Install-SitecoreConfiguration : Service 'Sitecore XConnect Search Indexer - xp0.xconnect-IndexWorker (xp0.xconnect-IndexWorker)' **cannot be started due to 
the following error: Cannot start service xp0.xconnect-IndexWorker on computer '.'.**
At C:\Users\sitecoretr\Downloads\OneDrive_2018-07-02\sitecore 9\SIFLess\SIFless-EZ-1530793277.ps1:42 char:1
+ Install-SitecoreConfiguration @xconnectParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 00:03:35
Transcript stopped, output file is C:\Windows\system32\xconnect-xp0.180705 (20).log
Start-Service : Service 'Sitecore XConnect Search Indexer - xp0.xconnect-IndexWorker (xp0.xconnect-IndexWorker)' cannot be started due to the following 
error: Cannot start service xp0.xconnect-IndexWorker on computer '.'.
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\1.2.1\Public\Tasks\Invoke-ManageServiceTask.ps1:40 char:33
+                     $instance | Start-Service
+                                 ~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

The below error in the event viewer

The Sitecore XConnect Search Indexer - xp0.xconnect-IndexWorker service failed to start due to the following error: 
Access is denied
3
  • What's the user account that the service is running as?
    – grg
    Commented Jul 5, 2018 at 14:10
  • You have the xconnect index worked in Windows Services. Can you find it (it's name start with Sitecore) right click and run Commented Jul 5, 2018 at 15:24
  • the user account is NT AUTHORITY\\LocalService Commented Jul 6, 2018 at 7:23

2 Answers 2

0

Try to add "Everyone" role and give full rights in WWW (rootfolder) XConnect Site.enter image description here

2
  • It should be sufficient to grant permissions to \xconnect\App_data\jobs\continuous\IndexWorker\ folder.
    – grg
    Commented Jul 6, 2018 at 13:56
  • 2
    And only the user running the service.. not everyone.
    – Gatogordo
    Commented Jul 8, 2018 at 8:29
0

I found one fix here

https://www.sitecorespark.com/blog/2019/8/sitecore-9-installation-xconnect-services-wont-start

Below line must be placed before the InstallServices task

 "SetIndexWorkerServicePermissionsFolder": {
        "Description": "Set permissions for the Index Worker service folder.",
        "Type": "FilePermissions",
        "Params": {
            "Path": "[joinpath(variable('Services.IndexWorker.InstallPath'))]",
            "Rights": [
                {
                    "User": "NT AUTHORITY\\LocalService",
                    "FileSystemRights": [ "FullControl" ],
                    "InheritanceFlags": [ "ContainerInherit", "ObjectInherit" ]
                }
            ]
        }
    },
    "SetMarketingAutomationServicePermissionsFolder": {
        "Description": "Set permissions for the Marketing Automation service folder.",
        "Type": "FilePermissions",
        "Params": {
            "Path": "[joinpath(variable('Services.MarketingAutomationEngine.InstallPath'))]",
            "Rights": [
                {
                    "User": "NT AUTHORITY\\LocalService",
                    "FileSystemRights": [ "FullControl" ],
                    "InheritanceFlags": [ "ContainerInherit", "ObjectInherit" ]
                }
            ]
        }
    },
    "SetProcessingEngineServicePermissionsFolder": {
        "Description": "Set permissions for the Processing Engine service folder.",
        "Type": "FilePermissions",
        "Params": {
            "Path": "[joinpath(variable('Services.ProcessingEngine.InstallPath'))]",
            "Rights": [
                {
                    "User": "NT AUTHORITY\\LocalService",
                    "FileSystemRights": [ "FullControl" ],
                    "InheritanceFlags": [ "ContainerInherit", "ObjectInherit" ]
                }
            ]
        }
    },

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.