sitecoresitecore8sitecore-mvcsitecore8.2

Sitecore Ship returning 404 when trying to install update package


Ship returning 404 when trying to install update package. Here is the script i'm trying for.

Invoke-WebRequest -Uri "http://mydomain/services/package/install" -Method Post -ContentType "application/x-www-form-urlencoded" -Body @{"path"="@D:\Users\Parsh\Desktop\test.update";"DisableIndexing"=$true} -UseBasicParsing -TimeoutSec 5000

And i'm getting below error. `

    404 - NotFound
    The resource you have requested cannot be found.
    We're sorry :-(




  Graphics courtesy of the awesome Matthew Inman
At line:1 char:1

Invoke-WebRequest -Uri "http://mydomain/services/package/inst ...
  + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
 eption
  + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand`

I'm using .net framework 4.6.2 and Sitecore 8.2 initial release. also doubled checked all the configuration, everything looks fine,

Appreciate your support.

Update : Attached screenshot:

enter image description here


Solution

  • It took some time to debug the issue as it was returning 404. Initially i thought that, resource itself not available.Later debugging the Sitecore.Ship framework i found that, 404 throwing bcz the path was not found. See screenshot below.

    enter image description here

    When i changed the location of the update file it worked.