2012-09-07 23 views
0

我已经对我的蓝图结构进行了调整,以至于之前的可发布网络出版物现已变成父级别的不可发布网络出版物。一个新的儿童网络出版物已被创建,以取代它的位置。动态组件模板不再需要代理db

因此,这创建了一个新的发布ID。我已使用此新ID更新了所有配置,并能够成功将内容发布到文件系统上的演示服务器。动态组件演示也正在使用新ID发布到代理数据库中。

但是,最近我的一个动态组件模板已停止向代理发布。它发布到文件系统,但组件的记录不出现在代理的LINK_INFO表中。这意味着使用此模板的内容的动态链接在网站上失败。

任何人都可能告诉我,他们是否知道这是为什么发生?

更新2:发现一些有趣的事情.....动态链接实际上是工作,但只对一些组件模板。我通过使用ComponentLink.GetLink(string)方法发现了这一点,看看它是否会返回一个链接...对于它所做的一些内容类型,但对于以前有链接的其他内容类型,它现在不会,即使在重新发布这些模板之后:■

UPDATE:cd_storage.xml

<Configuration Version="6.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="schemas/cd_storage_conf.xsd"> 
<Global> 
    <ObjectCache Enabled="false"> 
    <Policy Type="LRU" Class="com.tridion.cache.LRUPolicy"> 
    <Param Name="MemSize" Value="16mb"/> 
    </Policy> 
    <Features> 
    <Feature Type="DependencyTracker" Class="com.tridion.cache.DependencyTracker"/> 
    </Features> 
    </ObjectCache> 
    <Storages> 
    <StorageBindings> 
    <Bundle src="AudienceManagerDAOBundle.xml" /> 
    </StorageBindings> 
    <Storage Type="persistence" Id="defaultdb" dialect="MSSQL" 
      Class="com.tridion.storage.persistence.JPADAOFactory"> 
    <Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" 
      CheckoutTimeout="120" /> 
    <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource"> 
     <Property Name="serverName" Value="lon1udb01.int.rroom.net" /> 
     <Property Name="portNumber" Value="1433" /> 
     <Property Name="databaseName" Value="uat_mal_Tridion_Broker_2" /> 
     <Property Name="user" Value="uat_mal" /> 
     <Property Name="password" Value="mj][zdvd=h" /> 
    </DataSource> 
    </Storage> 
    <Storage Type="persistence" Id="profiledb" dialect="MSSQL" 
      Class="com.tridion.storage.persistence.JPADAOFactory" 
      defaultStorage="false"> 
     <Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" 
      CheckoutTimeout="120" /> 
     <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource"> 
     <Property Name="serverName" Value="lon1udb01.int.rroom.net" /> 
     <Property Name="portNumber" Value="1433" /> 
     <Property Name="databaseName" Value="uat_mal_Tridion_submgmt" /> 
     <Property Name="user" Value="uat_mal" /> 
     <Property Name="password" Value="mj][zdvd=h" /> 
     </DataSource> 
    </Storage> 
    <Storage Type="persistence" Id="trackingdb" dialect="MSSQL" 
      Class="com.tridion.storage.persistence.JPADAOFactory" 
      defaultStorage="false"> 
    <Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" 
      CheckoutTimeout="120" /> 
     <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource"> 
     <Property Name="serverName" Value="lon1udb01.int.rroom.net" /> 
     <Property Name="portNumber" Value="1433" /> 
     <Property Name="databaseName" Value="uat_mal_Tridion_tracking" /> 
     <Property Name="user" Value="uat_mal" /> 
     <Property Name="password" Value="mj][zdvd=h" /> 
     </DataSource> 
    </Storage> 
    <Storage Type="filesystem" Id="defaultFile" 
       Class="com.tridion.storage.filesystem.FSDAOFactory" 
       defaultFilesystem="false" 
       defaultStorage="false"> 
     <Root Path="c:\websites\live" /> 
    </Storage> 
    <Storage Type="filesystem" Id="defaultFileAssets" 
       Class="com.tridion.storage.filesystem.FSDAOFactory" 
       defaultFilesystem="false" 
       defaultStorage="true"> 
     <Root Path="c:\websites\live\malvern.com.en\Assets" /> 
    </Storage> 
    <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" 
      Id="malenctrls" defaultFilesystem="false" defaultStorage="false"> 
     <Root Path="c:\websites\live\malvern.com.en\usercontrols" /> 
    </Storage> 
    <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" 
      Id="malcnctrls" defaultFilesystem="false" defaultStorage="false"> 
     <Root Path="c:\websites\live\malvern.com.cn\usercontrols" /> 
    </Storage>  
    <SearchFilter Name="SearchFilter" 
        Class="com.tridion.broker.components.meta.MsSqlSearchFilterHome" 
        defaultStorageId="defaultdb"/> 
    </Storages> 
    <Transaction Timeout="60000" MonitorInterval="5000"/> 
</Global> 
<ItemTypes defaultStorageId="defaultdb" cached="false"> 
    <Item storageId="profiledb" typeMapping="AudienceManagerProfile" cached="false"/> 
    <Item storageId="trackingdb" typeMapping="AudienceManagerTracking" cached="false" /> 
    <!-- GLOBAL MASTER --> 
    <Publication Id="22" defaultStorageId="defaultdb" cached="false"> 
    <Item storageId="defaultFile" typeMapping="Page" cached="false" /> 
    <Item storageId="defaultFile" typeMapping="Binary" cached="false" /> 
    <Item storageId="malenctrls" typeMapping="ComponentPresentation" 
      itemExtension=".ascx" cached="false" /> 
    </Publication> 
    <!-- CHINESE WEB --> 
    <Publication Id="15" defaultStorageId="defaultdb" cached="false"> 
    <Item storageId="defaultFile" typeMapping="Page" cached="false" /> 
    <Item storageId="defaultFile" typeMapping="Binary" cached="false" /> 
    <Item storageId="malcnctrls" typeMapping="ComponentPresentation" 
      itemExtension=".ascx" cached="false" /> 
    </Publication> 
</ItemTypes> 
<License Location="c:/tridion/config/cd_licenses.xml"/> 

+0

在这种情况下,可能是代理日志记录(设置为“调试”模式)和分析Sql数据库(如果您使用Sql服务器)给你一个详细的原因。 –

+2

您可能具有特定于发布的存储配置。你能分享你的cd_storage_conf.xml吗? – Quirijn

+1

是否有可能您的cd_license.xml文件已过期,并且部署者正在回退到有限的文件系统发布?但我认为@Quirijn的评论更可能。 –

回答

0

我认为问题可能是由过期cd_licence文件中所引起的,但我不能确认,已经要求SDL的支持,告诉我如果是这样的话

+0

调试日志记录肯定会告诉你这个? –

1

你有

<Storage Type="filesystem" Id="defaultFileAssets" 
    Class="com.tridion.storage.filesystem.FSDAOFactory" defaultFilesystem="false" 
    defaultStorage="true"> 

并且cd_storage_conf.xml中的任何位置都没有TypeMappings定义。这使得“defaultFileAssets”成为部署者选择的存储位置。

我通常会想到这样的事情

<ItemTypes defaultStorageId="defaultdb" cached="false"> 
    <Item typeMapping="Page" cached="false" storageId="defaultFile"/> 
<Item typeMapping="Binary" storageId="defaultFile" cached="false"/> 
</ItemTypes> 
在配置节点

确保您发布的配置实际上正在使用也会非常有帮助;您可以在Tridion生成的日志文件(带有调试日志启用)中查看它,因为它记录了它正在使用的配置文件;有不止一次,我只是因为看到错误的配置文件而感到困惑......

1

我已经从问题中的存储配置中删除了大量无用的评论。现在很容易看到,正如Quirijn所怀疑的那样,有一些特定于出版物的配置。如果您的网站发布ID以前是15或22,并且发生了变化,这可以解释您的问题。