【问题标题】:Sitecore Ship returning 404 when trying to install update packageSitecore Ship 在尝试安装更新包时返回 404
【发布时间】:2018-01-27 14:37:33
【问题描述】:

尝试安装更新包时返回 404。 这是我正在尝试的脚本。

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

而且我遇到了错误。 `

    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`

我正在使用 .net framework 4.6.2 和 Sitecore 8.2 初始版本。还仔细检查了所有配置,一切看起来都很好,

感谢您的支持。

更新:附上截图:

【问题讨论】:

  • 在服务器 (link to documentation) 上浏览到 /services/about 时是否出现错误。它适用于 8.1u3,但我听说 8.2 存在问题。如果您有一个自定义 404 处理程序,它也可能过于激进,您需要忽略这些路由。
  • 当我浏览 /services/about 时,我看到了 Sitecore.Ship - 版本 0.4.0.0
  • 似乎工作正常......你从哪里打电话给 Ship?您是否使用 Octopus deploy 或其他东西,以便在服务器本身上调用 Powershell 脚本?否则,您是否启用了远程packageInstallation 并将您的服务器列入白名单?
  • 我先在章鱼里试过了,没用。然后我尝试在powershell的本地机器上执行相同的命令。没用。附上截图。
  • @jammykam 启用远程包安装和白名单服务器。

标签: sitecore sitecore8 sitecore-mvc sitecore8.2


【解决方案1】:

调试问题需要一些时间,因为它返回 404。最初我认为,资源本身不可用。后来调试 Sitecore.Ship 框架我发现,404 throwing bcz the path没有找到。请参阅下面的屏幕截图。

当我更改更新文件的位置时,它起作用了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-03-04
    • 2020-08-20
    • 1970-01-01
    • 2015-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多