Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Conlisk 432 posts 1008 karma points
    Jun 28, 2012 @ 15:13
    David Conlisk
    0

    Deployment fails silently

    Hi all,

    I have two websites on two different servers, staging and live. The website files are identical (apart from web.config), and so is the database. They are both umbraco v 4.7.2 (Assembly version: 1.0.4500.21031). I have installed the latest version of Courier that I can find, i.e. from the file Courier_2.6_2.6.17.zip. There are two issues:

    1. The packages tree is empty on the live version.

    2. When I deploy a single page from staging to live, without including the dependencies, it looks as if everything completed correctly, but the changes are not being deployed (i.e. changes are not visible in Umbraco admin area on the live site).

    There are no error messages in the umbracoLog table in the database that occur when I do a deployment. How do I go about debugging what is going on here?

    Cheers!

    David

  • David Conlisk 432 posts 1008 karma points
    Jun 28, 2012 @ 15:22
    David Conlisk
    0

    Some further information that may be useful here. Compared to the videos out there on Courier, some things are different for me - I'm not sure if this is because I'm using 2.6?

    - In the Courier section, I have three nodes: locations, deploy and task manager. They never have any children. The locations node tells me I have access to the live version. The Task manager node lists the most recent actions. Deploy allows me to choose a type of asset to deploy and seems to work (but again, changes never appear on the live version)

    - I'm using right-click deployment

    - the output I see after transfer says that extraction and packaging were successful - but no mention of transfer/deployment.

     

  • Per Ploug 865 posts 3491 karma points MVP admin
    Jun 28, 2012 @ 15:43
    Per Ploug
    0

    Hi David

    The reason the UI looks different is that you are using the express version.

    To get some better logging of whats going on, open the /config/courier.config and uncomment the debugmode config and set it to true, then restart your site. 

    Do the packaging again, and you should now have logs in /app_data/courier/logs hopefully they will tell us what is going on.

    /per

  • David Conlisk 432 posts 1008 karma points
    Jun 28, 2012 @ 16:00
    David Conlisk
    0

    Hi Per,

    Thanks for the input. I tried doing what you said. Here is the output of the three log files:

    LOG_DEBUG.TXT:

     

    28/06/2012 14:55:26: loading session factory
     
    28/06/2012 14:55:59: Opening session: bec284bc-3df8-441b-859f-1d758aad9582
     
    28/06/2012 14:56:02: Umbraco.Courier.DataResolvers.DataResolvers.RTEstylesheets:ItemResolvers: Executing resolver Umbraco.Courier.DataResolvers.DataResolvers.RTEstylesheets on Packaging event
     
    28/06/2012 14:56:02: Umbraco.Courier.DataResolvers.Images:ItemResolvers: Executing resolver Umbraco.Courier.DataResolvers.Images on Packaging event
     
    28/06/2012 14:56:02: Umbraco.Courier.DataResolvers.Images:ItemResolvers: Executing resolver Umbraco.Courier.DataResolvers.Images on Packaged event
     
    28/06/2012 14:56:02: Closing session: bec284bc-3df8-441b-859f-1d758aad9582
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Files
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Languages
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Folders
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Dictionary items
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Stylesheets
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Tag Relations
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Datatypes
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Relations
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Macros
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Macro property types
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Templates
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Media types
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Media
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Document types
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 1 Items from provider: Documents
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 1 Items from provider: PropertyData
     
    28/06/2012 14:56:11: Umbraco.Courier.Core.Extraction.RevisionExtraction:BuildGraph: Adding 0 Items from provider: Media Property Data
     
    28/06/2012 14:56:11: Setting session on dest to: e0557f57-4b91-43da-8742-8dda7b02aa68
     
    28/06/2012 14:56:11: Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider:ExtractRevisions: Session opening: e0557f57-4b91-43da-8742-8dda7b02aa68
     
    28/06/2012 14:56:12: Opening session: e0557f57-4b91-43da-8742-8dda7b02aa68
     
    28/06/2012 14:56:12: 1 items found ready
     
    28/06/2012 14:56:12: Item: Apply False
     
    28/06/2012 14:56:12: Saving new path... xx
     
    28/06/2012 14:56:12: New path: -1,1048,1084
     
    28/06/2012 14:56:12: Umbraco.Courier.Core.EventManager:EventManager: Adding event PublishDocument To Queue: DBTransactionComplete
     
    28/06/2012 14:56:12: Umbraco.Courier.Core.EventManager:EventManager: Adding event UpdateLuceneIndexes To Queue: DeploymentComplete
     
    28/06/2012 14:56:12: Umbraco.Courier.Core.EventManager:EventManager: Adding event RefreshCache To Queue: DeploymentComplete
     
    28/06/2012 14:56:12: Umbraco.Courier.Core.Extraction.RevisionExtraction:extraction: Item extraction did not complete, status returned: NeedPostProcessing
     
    28/06/2012 14:56:12: Umbraco.Courier.Core.Extraction.RevisionExtraction:extraction: Item needs post processing
     
    28/06/2012 14:56:12: 1 items found ready
     
    28/06/2012 14:56:12: Item: Document Apply Property Data False
     
    28/06/2012 14:56:12: Umbraco.Courier.DataResolvers.DataResolvers.RTEstylesheets:ItemResolvers: Executing resolver Umbraco.Courier.DataResolvers.DataResolvers.RTEstylesheets on Extracting event
     
    28/06/2012 14:56:12: Umbraco.Courier.DataResolvers.Images:ItemResolvers: Executing resolver Umbraco.Courier.DataResolvers.Images on Extracting event
     
    28/06/2012 14:56:13: Umbraco.Courier.DataResolvers.Images:ItemResolvers: Executing resolver Umbraco.Courier.DataResolvers.Images on Extracted event
     
    28/06/2012 14:56:13: Umbraco.Courier.Core.Extraction.RevisionExtraction:extraction: Item extraction completed
     
    28/06/2012 14:56:13: Umbraco.Courier.Core.Extraction.RevisionExtraction:PostProcessing: Postprocessing complete
     
    28/06/2012 14:56:13: Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider:ExtractRevisions: Committing changes
     
    28/06/2012 14:56:13: Committing session: e0557f57-4b91-43da-8742-8dda7b02aa68
     
    28/06/2012 14:56:13: Closing session: e0557f57-4b91-43da-8742-8dda7b02aa68
     
    28/06/2012 14:56:13: Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider:ExtractRevisions: Session closed
     
    28/06/2012 14:56:13: Umbraco.Courier.Core.EventManager:EventManager: Executing event PublishDocument
     
    28/06/2012 14:56:13: Umbraco.Courier.Core.EventManager:EventManager: Executing event UpdateLuceneIndexes
     
    28/06/2012 14:56:13: Umbraco.Courier.Core.EventManager:EventManager: Executing event RefreshCache

     

    LOG_ERROR.TXT (looks like the contents of the page I'm trying to deploy):

     

    28/06/2012 14:56:13: 
    <p>Your application has been submitted and we will be in touch
    shortly if you are successful.</p>
     
    <p><a href="/{localLink:1048}" title="Home">Continue to
    homepage</a></p>
     
    <p><a href="/{localLink:1080}" title="Job Search">Search more
    jobs</a></p>

     

    LOG_TIMER.TXT:

     

    28/06/2012 14:55:31: 4.84344 MS: Loading factory
     
    28/06/2012 14:55:55: 0 MS: Loading factory
     
    28/06/2012 14:55:56: 0.6317955 MS: Find children
     
    28/06/2012 14:55:58: 0.0126945 MS: Find children
     
    28/06/2012 14:55:59: 0 MS: Start Packaging __743913bd-629f-4b94-854b-4ced9ca67ff9
     
    28/06/2012 14:55:59: 0 MS: Stack:    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
       at System.Environment.get_StackTrace()
       at Umbraco.Courier.Core.Helpers.Bench.(String func, Boolean showStack, Boolean showStart)
       at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package()
       at Umbraco.Courier.Core.TaskManager.(IRevisionTask value)
       at Umbraco.Courier.Core.TaskManager.‘()
       at System.Threading.Tasks.Task.Execute()
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
       at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart(Object obj)
     
    28/06/2012 14:56:02: 3.048633 MS: Packing: Apply(9ca80d2e-1f2e-4aa9-9e18-4a11a1ce2adb) from Documents
     
    28/06/2012 14:56:02: 0.0068355 MS: Resolver RTEstylesheets on: Document Apply Property Data for provider: PropertyData
     
    28/06/2012 14:56:02: 0.0107415 MS: Resolver Images on: Document Apply Property Data for provider: PropertyData
     
    28/06/2012 14:56:02: 0.001953 MS: Resolver Images on: Document Apply Property Data for provider: PropertyData
     
    28/06/2012 14:56:02: 0.183582 MS: Packing: Document Apply Property Data(9ca80d2e-1f2e-4aa9-9e18-4a11a1ce2adb) from PropertyData
     
    28/06/2012 14:56:02: 3.24198 MS: Packaging a batch of: 2
     
    28/06/2012 14:56:02: 3.355254 MS: Packaging __743913bd-629f-4b94-854b-4ced9ca67ff9
     
    28/06/2012 14:56:11: 0 MS: Loading factory
     
    28/06/2012 14:56:11: 0.0126945 MS: Find children
     
    28/06/2012 14:56:12: 0.177723 MS: Extracting: Apply from Documents
     
    28/06/2012 14:56:12: 0.005859 MS: Resolver RTEstylesheets on: Document Apply Property Data for provider: PropertyData
     
    28/06/2012 14:56:12: 0.001953 MS: Resolver Images on: Document Apply Property Data for provider: PropertyData
     
    28/06/2012 14:56:13: 0.0029295 MS: Resolver Images on: Document Apply Property Data for provider: PropertyData
     
    28/06/2012 14:56:13: 0.070308 MS: Extracting: Document Apply Property Data from PropertyData

     

    Thanks,

    David

     

  • Per Ploug 865 posts 3491 karma points MVP admin
    Jun 28, 2012 @ 16:04
    Per Ploug
    0

    Hmm, everything looks fine on that log. 

    So if you enable logging on the target machine as well, restart and do the transfer again? 

    also, what version do you use?

  • David Conlisk 432 posts 1008 karma points
    Jun 28, 2012 @ 16:15
    David Conlisk
    0

    Hi Per,

    I get this error below in courier/logs/log_Error.txt on the target machine.

    I'm using versions Courier_2.6_2.6.17.zip and umbraco v 4.7.2 (Assembly version: 1.0.4500.21031).

    Thanks,

    David

    6/28/2012 3:11:40 PM: Can't import provider 'Umbraco.Courier.Persistence.V4.NHibernate.NHibernateProvider' id: e0474ca8-e73b-11df-9492-0800200c9a66: System.InvalidOperationException: Unable to generate a temporary class (result=1).
    error CS2001: Source file 'C:\Windows\TEMP\u1h3sd1h.0.cs' could not be found
    error CS2008: No inputs specified
     
       at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
       at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
       at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
       at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
       at NHibernate.Cfg.Configuration..ctor(SettingsFactory settingsFactory)
       at FluentNHibernate.Cfg.FluentConfiguration..ctor()
       at Umbraco.Courier.Persistence.V4.NHibernate.NHibernateProvider.GetMSSqlSessionFactory(String connectionString) in c:\Program Files (x86)\teamcity\buildAgent\work\2d3247b08adc3338\Umbraco.Courier.Persistence.NHibernate\NHibernate.cs:line 0
       at Umbraco.Courier.Persistence.V4.NHibernate.NHibernateProvider.CreateSessionFactory() in c:\Program Files (x86)\teamcity\buildAgent\work\2d3247b08adc3338\Umbraco.Courier.Persistence.NHibernate\NHibernate.cs:line 222
       at Umbraco.Courier.Core.ProviderCollection`1.™(IEnumerable`1 types)
  • David Conlisk 432 posts 1008 karma points
    Jun 28, 2012 @ 17:11
    David Conlisk
    0

    Hi Per,

    Just a thought, but this is in a corporate environment. Can you confirm that Courier is just using HTTP over port 80 to communicate with the target machine? Are there any other firewall-type issues that I could look into?

    Thanks,

    David

  • Per Ploug 865 posts 3491 karma points MVP admin
    Jul 02, 2012 @ 15:45
    Per Ploug
    0

    no other port then 80 is used, but the error you posed seems like nhibernate cannot run on that enviroment, running with custom trust levels? 

  • David Conlisk 432 posts 1008 karma points
    Jul 02, 2012 @ 16:14
    David Conlisk
    0

    Hmmm, I'll need to check. Does Courier only run in full trust? I'm not sure what the default on a new server is. I'll get back to you...

  • David Conlisk 432 posts 1008 karma points
    Jul 09, 2012 @ 16:19
    David Conlisk
    0

    Hi Per,

    I've checked the server configuration and the site is running in "Full Trust (Internal)" (I had to get the ASP.NET features installed by the IT dept, hence the delay). I'm still getting the same exception as before.

    Any other ideas? At this point Courier is unusable.

    Thanks,

    David

  • Per Ploug 865 posts 3491 karma points MVP admin
    Jul 10, 2012 @ 09:04
  • Eric Schrepel 161 posts 226 karma points
    Jan 02, 2013 @ 23:52
    Eric Schrepel
    0

    Is this issue resolved? I'm also getting incorrect "everything's fine" messages in the log files when transferring using Courier Express (Dec 3 2012 _39 build) and Umbraco 4.11.1. Right-click an item, like a stylesheet or template, transfer via Courier, and the resulting file at the destination is 0k. Happens the same whether transferring new files, or replacing existing. For example, was copying a .LESS file from Settings->Scripts->Less folder to destination server, and see this in the courier/logs/log_RevisionLog.txt file:

    1/2/2013 2:35:48 PM; [Information];~/scripts/less/test.less;Umbraco.Courier.Core.ResourceCollection;Resources;Adding resource: /scripts/less/test.less;
    1/2/2013 2:35:51 PM; [Success];Umbraco.Courier.Core.Resource;Resources;D:\inetpub\devclean\scripts\less\test.less  was overwritten with a new version;

    Overwrites the test.less file with an empty file.

Please Sign in or register to post replies

Write your reply to:

Draft