我们最近将Sitecore从6.5升级到7.1。 在新版本中,上传和选择图像的界面已更改。 上传图像并尝试搜索以选择它时。它说“找不到任何物品” 有没有人遇到过同样的问题?你是怎么修理的?
我安装了Sitecore 7.1的新版本,我没有这个问题。
我觉得它应该是媒体库项目的索引配置或构建索引。当您检查对Sitecore的请求时,请使用以下URL
/-/item/v1/sitecore/shell?facetsRootItemId=%7B7F43D3D0-CAC6-45D8-96FE-B76F4A117F9B%7D&search=%7B%22statusCode%22%3A500%2C%22error%22%3A%7B%22message%22%3A%22Index%20sitecore_master_index%20was%20not%20found%22%7D%7D&root=%7B3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1%7D&searchConfig=%7BB0DF45DF-EA31-4C11-9E34-98B41DF549C5%7D&sc_content=master&language=en&format=%24convert_date_to_friendly_format&fields=__Created%7CDimensions&pageIndex=0&pageSize=20
返回
{ “的StatusCode”:200, “结果”:{ “TOTALCOUNT”:0 “RESULTCOUNT”:0, “项目”:[], “小面”:[{ “名称”: “尺寸”,“值“:[]},{”Name“:”Media Type“,”Values“:[]},{”Name“:”Updated“,”Values“:[{”Count“:0,”DisplayText“:”今天“,”优先级“:1,”文字“:”今天“,”价值“:”__ smallupdateddate:[20140114 TO 20140114]“},{”计数“:0,”DisplayText“:”昨天“,”优先级“ :2,“Text”:“Yesterday”,“Value”:“__ smallupdateddate:[20140113 TO 20140113]”},{“Count”:0,“DisplayText”:“几天前”,“优先级”:3,“文字“:”几天前“,”价值“:”_ _ smallupdateddate:[20140110 TO 20140112]“},{”Count“:0,”DisplayText“:”上个月“,”优先级“:4,”文字“: “上个月”,“价值”:“__ smallupdateddate:[20131214 TO 20140109]”},{“Count”:0,“DisplayText”:“几个月前”,“优先级”:5,“文字”:“几个月ago“,”Value“:”__ smallupdateddate:[20130914 TO 20131213]“},{”Count“:0,”DisplayText“:”较旧“,”优先级“:6,”文字“:”较旧“,”价值“ :“__ smallupdateddate:[00010101 TO 20130913]”}]}]}}
我检查了日志并注意到Sitecore尝试索引它在异常后抛出的媒体项
8328 16:37:58 ERROR Could not run the 'getMediaStream' pipeline for '/sitecore/media library/Files/Investors/Reports and Presentations/Prospectus/2009/MAp 2009 Entitlement Offer Booklet 20091014'. Original media data will be used.
Exception: System.Data.SqlClient.SqlException
Message: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.)
Source: .Net SqlClient Data Provider
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Sitecore.Data.SqlServer.SqlServerDataProvider.GetBlobSize(Guid blobId)
at Sitecore.Data.SqlServer.SqlServerDataProvider.GetBlobStream(Guid blobId, CallContext context)
at Sitecore.Data.DataProviders.DataProvider.GetBlobStream(Guid blobId, CallContext context, DataProviderCollection providers)
at Sitecore.Data.DataSource.GetBlobStream(Guid blobId)
at Sitecore.Nexus.Data.DataCommands.GetBlobStreamCommand.Execute(Guid ?, Database )
at Sitecore.Nexus.Data.NexusDataApi.GetBlobStream(Guid blobId, Database database)
at Sitecore.Data.Engines.DataCommands.GetBlobStreamCommand.DoExecute()
at Sitecore.Data.Engines.EngineCommand`2.Execute()
at Sitecore.Data.Engines.DataEngine.GetBlobStream(Guid blobId)
at Sitecore.Data.Managers.ItemProvider.GetBlobStream(Guid blobId, Database database)
at Sitecore.Data.Managers.ItemManager.GetBlobStream(Guid blobId, Database database)
at Sitecore.Data.Managers.ItemManager.GetBlobStream(Field field)
at Sitecore.Resources.Media.MediaData.GetBlobStream()
at Sitecore.Resources.Media.GetMediaStreamPipelineArgs.get_OutputStream()
at Sitecore.Resources.Media.ResizeProcessor.Process(GetMediaStreamPipelineArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Resources.Media.Media.GetStreamFromPipeline(MediaOptions options, Boolean& canBeCached)
Nested Exception
Exception: System.ComponentModel.Win32Exception
Sitecore通过以下回复回复了我们。如果您遇到同样的问题,我会告诉您以防万一。
getMediaStream从数据库中检索媒体数据(文件本身)。您似乎遇到了内容搜索未关闭导致数据库连接泄漏的媒体流的错误。此错误已在Sitecore 7.0 update 3中修复,但尚未合并到sitecore 7.1中。
答案 0 :(得分:3)
听起来您的内容搜索索引尚未重建或未正确配置。尝试打开内容编辑器。右键单击顶部功能区,然后检查是否已启用开发人员功能区。转到开发人员功能区并选择“rebuild all”。这将重建索引。
还要确保在配置中定义了索引。转到App_Config / include并确保您拥有Sitecore.ContentSearch.config,Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config,Sitecore.ContentSearch.Lucene.Index.Core.config,Sitecore.ContentSearch.Lucene.Index文件。 Master.config和Sitecore.ContentSearch.Lucene.Index.Web.config。