Umbraco Courier获得连接到远程站点的Soap Exception

时间:2016-02-04 09:40:54

标签: umbraco

所以我在本地运行一个Umbraco站点,并在我的实时服务器上运行相同的站点。但是我无法让Courier工作以在2之间传输我的数据(虽然我过去没有任何问题)。

我在本地使用SQL CE数据库,在实时站点使用MSSQL(Courier支持团队不认为这应该是一个问题)。

现在问题不在于站点之间的连接,因为我的localhost连接到实时站点,并且从下面的日志中可以看到传递包,但是它在解压缩包时出错。在浏览器中,弹出窗口只是空白,永远不会完成,但日志会告诉我以下报告:

create global temporary table tmp_stage (
    dwh_key         <your_dwh_key_type@to_devstg>,
    serial_number   <your_serial_number_type@@to_devstg>
) on commit preserve rows;

insert into tmp_stage
select dwh_key, serial_number
from TableA@to_devstg sd
where sd.dwh_key = s.dwh_key;


/* index (PK on dwh_key) your temporary table if necessary ...*/

update (select
         src.dwh_key src_key,
         tgt.dwh_key tgt_key,
         src.serial_number src_serial_number,
         tgt.serial_number tgt_serial_number
       from tmp_stage src
       join TableA tgt
         on src.dwh_key = tgt.dwh_key
       )
  set src_serial_number = tgt_serial_number;

或者让它更容易阅读:

2016-02-04 09:27:34,215 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 35] Unloading (count: 0)
2016-02-04 09:27:34,215 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 35] Unloading (count: 0)
2016-02-04 09:27:36,703 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 44] Unloading (count: 0)
2016-02-04 09:27:40,561 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 56] Unloading (count: 0)
2016-02-04 09:27:40,562 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 56] Unloading (count: 0)
2016-02-04 09:27:40,562 [20] INFO  Umbraco.Courier.Core.TaskManager - [Thread 56] Added PackagingTask behind queue of : 0
2016-02-04 09:27:40,562 [20] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 56]  Task added Umbraco.Courier.Core.Tasks.PackagingTask
2016-02-04 09:27:40,562 [20] INFO  Umbraco.Courier.Core.TaskManager - [Thread 25] Starting PackagingTask with id: dbdaaa27-12f0-453e-a272-ee86f42ee320
2016-02-04 09:27:40,562 [20] DEBUG Umbraco.Courier.RepositoryProviders.Local - [Thread 25] Opening session: 5d218615-ecf8-430d-8853-bf7b7a27299a
2016-02-04 09:27:40,563 [20] DEBUG Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider - [Thread 25] Opening session to http://www.adamanthony.co.uk
2016-02-04 09:27:44,390 [20] INFO  Umbraco.Courier.Core.Packaging.RevisionPackaging - [Thread 25] Document types: SkillItem hash-mismatch (local/remote) d1572093dd52efbce27132025a9b70f7 / 736e152936c2d2fbcf35e3f28c23b3bb
2016-02-04 09:27:45,532 [20] DEBUG Umbraco.Courier.RepositoryProviders.Local - [Thread 25] Disposing: True
2016-02-04 09:27:45,532 [20] DEBUG Umbraco.Courier.RepositoryProviders.Local - [Thread 25] Closing session: 5d218615-ecf8-430d-8853-bf7b7a27299a
2016-02-04 09:27:45,532 [20] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider - [Thread 25] Closing session, UseGlobalSession: False, key: 5d218615-ecf8-430d-8853-bf7b7a27299a
2016-02-04 09:27:45,532 [20] DEBUG Umbraco.Courier.Persistence.V6.NHibernate.NHibernateGlobalSessionManager - [Thread 25] Closing session, IsInWebContext: False
2016-02-04 09:27:45,532 [20] DEBUG Umbraco.Courier.RepositoryProviders.Local - [Thread 25] Disposing: True
2016-02-04 09:27:45,532 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 25] Unloading (count: 0)
2016-02-04 09:27:45,532 [20] INFO  Umbraco.Courier.Core.TaskManager - [Thread 25] Completed PackagingTask with id: dbdaaa27-12f0-453e-a272-ee86f42ee320
2016-02-04 09:27:45,746 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 35] Unloading (count: 0)
2016-02-04 09:27:45,748 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 35] Unloading (count: 0)
2016-02-04 09:27:45,748 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 35] Unloading (count: 0)
2016-02-04 09:27:45,766 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 35] Unloading (count: 0)
2016-02-04 09:27:45,779 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 34] Unloading (count: 0)
2016-02-04 09:27:45,783 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 18] Unloading (count: 0)
2016-02-04 09:27:46,021 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 44] Unloading (count: 0)
2016-02-04 09:27:47,958 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 42] Unloading (count: 0)
2016-02-04 09:27:47,958 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 42] Unloading (count: 0)
2016-02-04 09:27:47,958 [20] INFO  Umbraco.Courier.Core.TaskManager - [Thread 42] Added ExtractionTask behind queue of : 0
2016-02-04 09:27:47,958 [20] INFO  Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 42]  Task added Umbraco.Courier.Core.Tasks.ExtractionTask
2016-02-04 09:27:47,958 [20] INFO  Umbraco.Courier.Core.TaskManager - [Thread 22] Starting ExtractionTask with id: cba12ffe-c730-4e38-838d-2c278463332b
2016-02-04 09:27:47,958 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Running PopulateGraph
2016-02-04 09:27:47,959 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Finished PopulateGraph (took 2ms)
2016-02-04 09:27:47,959 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 22] Adding event DeleteContentAndMedia To Queue: DeploymentComplete for session: 8d502ccd-e4ea-49b1-a9b3-4159ea5a8fa3
2016-02-04 09:27:47,959 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Starting extraction
2016-02-04 09:27:47,959 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Opens database session
2016-02-04 09:27:47,959 [20] DEBUG Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider - [Thread 22] Opening session to http://www.adamanthony.co.uk
2016-02-04 09:27:48,215 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Transfering pre-extraction files
2016-02-04 09:27:48,215 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Running ExtractReadyRevisionBatch
2016-02-04 09:27:48,215 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Extracting batch of 1 items
2016-02-04 09:27:48,215 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Extracting: AdamAnthony - Umbraco.Courier.Core.DependencyGraph+GraphNode
2016-02-04 09:27:48,441 [20] WARN  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Finished ExtractItem (took 230ms)
2016-02-04 09:27:48,441 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Finished ExtractReadyRevisionBatch (took 230ms)
2016-02-04 09:27:48,441 [20] ERROR Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] There was a problem with extracting database information for the item: Name:AdamAnthony | Id:Adamanthony | Provider:Document types
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: A call to SetContextId must occur before getting/setting a context
   at Umbraco.Courier.Core.GlobalExecutionContextManager.get_CurrentContext()
   at Umbraco.Courier.Core.GlobalExecutionContextManager.GetContext(Boolean createIfNoneExists)
   at Umbraco.Courier.RepositoryProviders.Webservices.Repository.Extract(String sessionKey, Byte[] item, ItemIdentifier itemId, Boolean overwrite, String user, String pass)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.Extract(String sessionKey, Byte[] item, ItemIdentifier itemId, Boolean overwrite, String user, String pass)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.ExtractItem(Item item, Boolean overwrite)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractItem(GraphNode node, Boolean isDependency)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.ExtractReadyRevisionBatch()
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract()
2016-02-04 09:27:48,441 [20] INFO  Umbraco.Courier.Core.Extraction.RevisionExtraction - [Thread 22] Rolling back changes due to errors
2016-02-04 09:27:48,809 [20] DEBUG Umbraco.Courier.RepositoryProviders.Local - [Thread 22] Disposing: True
2016-02-04 09:27:48,809 [20] WARN  Umbraco.Courier.RepositoryProviders.Local - [Thread 22] Closing session called but there is no session open: 8d502ccd-e4ea-49b1-a9b3-4159ea5a8fa3
2016-02-04 09:27:49,502 [20] DEBUG Umbraco.Courier.Core.EventManager - [Thread 22] Unloading (count: 1)
2016-02-04 09:27:49,502 [20] ERROR Umbraco.Courier.Core.TaskManager - [Thread 22] Error ExtractionTask with id: cba12ffe-c730-4e38-838d-2c278463332b
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Tried opening session with id: 8d502ccd-e4ea-49b1-a9b3-4159ea5a8fa3. - There is already an active session with id: 5d218615-ecf8-430d-8853-bf7b7a27299a and there can only be one
   at Umbraco.Courier.Persistence.V6.NHibernate.NHibernateGlobalSessionManager.set_CurrentSessionId(String value)
   at Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider.CloseSession(String key)
   at Umbraco.Courier.RepositoryProviders.Local.CloseSession(String key)
   at Umbraco.Courier.RepositoryProviders.Webservices.Repository.CloseSession(String sessionKey, String username, String password)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.CloseSession(String sessionKey, String username, String password)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.CloseSession(String sessionKey)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.Dispose(Boolean disposing)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.Dispose()
   at Umbraco.Courier.Core.Common.Extensions.GlobalExtensions.DisposeIfDisposable(Object input)
   at Umbraco.Courier.Core.Repository.Dispose(Boolean disposing)
   at Umbraco.Courier.Core.Repository.Dispose()
   at Umbraco.Courier.Core.BaseRevisionHandler.Dispose(Boolean disposing)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Dispose(Boolean disposing)
   at Umbraco.Courier.Core.BaseRevisionHandler.Dispose()
   at Umbraco.Courier.Core.Tasks.ExtractionTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)
2016-02-04 09:27:49,502 [20] ERROR Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 22] An error occurred consuming task
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Tried opening session with id: 8d502ccd-e4ea-49b1-a9b3-4159ea5a8fa3. - There is already an active session with id: 5d218615-ecf8-430d-8853-bf7b7a27299a and there can only be one
   at Umbraco.Courier.Persistence.V6.NHibernate.NHibernateGlobalSessionManager.set_CurrentSessionId(String value)
   at Umbraco.Courier.Persistence.V6.NHibernate.NHibernateProvider.CloseSession(String key)
   at Umbraco.Courier.RepositoryProviders.Local.CloseSession(String key)
   at Umbraco.Courier.RepositoryProviders.Webservices.Repository.CloseSession(String sessionKey, String username, String password)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.CloseSession(String sessionKey, String username, String password)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.CloseSession(String sessionKey)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.Dispose(Boolean disposing)
   at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.Dispose()
   at Umbraco.Courier.Core.Common.Extensions.GlobalExtensions.DisposeIfDisposable(Object input)
   at Umbraco.Courier.Core.Repository.Dispose(Boolean disposing)
   at Umbraco.Courier.Core.Repository.Dispose()
   at Umbraco.Courier.Core.BaseRevisionHandler.Dispose(Boolean disposing)
   at Umbraco.Courier.Core.Extraction.RevisionExtraction.Dispose(Boolean disposing)
   at Umbraco.Courier.Core.BaseRevisionHandler.Dispose()
   at Umbraco.Courier.Core.Tasks.ExtractionTask.Run()
   at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task)

更多信息:

  • 我的环境是Rackspace Cloud Site
  • 权限全部设置为我可以提供的最大自由
  • 我的用户名和密码包含在courier.config文件中

我肯定不能成为唯一收到此错误的人吗?任何关于此的信息都会很棒。感谢

1 个答案:

答案 0 :(得分:0)

用户是否在两个数据库中使用相同的凭据?

您是否已应用Courier修补程序?

您是否尝试重新启动网站并回收AppPool?它可能与先前部署的卡住有关。