Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1470 posts 3427 karma points c-trib
    Mar 18, 2014 @ 10:54
    Simon Dingley
    0

    Courier - 3rd Time Unlucky

    This is my 3rd attempt in as many years to give Courier a chance, not once have I ever had a working installation. This time I really need it and quick so I have the following setup:

    • development
    • staging
    • live

    All 3 are in sync with regards to content.

    • I installed courier in dev and staging - no problems.
    • I setup locations in dev and staging - no child nodes have ever displayed under the locations node in courier in any of my attempted installations
    • I create a new content node in dev and attempt to send to staging and get a timeout error for just one node! I scoured the documentation and find that I need to add a <timeout>30000</timeout> node to the settings node which I do on both ends and increase to 90000 and try again.
    • Next attempt results in the following exception

    Error during packaging: error:System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'. The request failed with an empty response. 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.OpenSession(String sessionKey, String username, String password) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.OpenSession(String sessionKey) at Umbraco.Courier.Core.Packaging.RevisionPackaging.openSessions() at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() at Umbraco.Courier.Core.Tasks.PackagingTask.Run() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 18/03/2014 09:47:45

    The logs are about as much use as a chocolate teapot because they only show the same exceptions you get on screen. So once again I hit a wall with no information to go on with regards to where the problem might lie. A third client has paid for a license for a product they cannot use.

    Any help would be appreciated!?

    Thanks

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Mar 18, 2014 @ 11:35
    Simon Dingley
    0

    Having to dive into my toolbox now and inspect the traffic going back and forth to see if it turned anything up and found the following in Fiddler:

    Request

    POST http://test.mydomain.com/umbraco/plugins/courier/webservices/repository.asmx HTTP/1.1
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.34011)
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://courier.umbraco.org/OpenSession"
    Host: test.mydomain.com
    Content-Length: 480
    Expect: 100-continue
    Connection: Keep-Alive
    
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><OpenSession xmlns="http://courier.umbraco.org/"><sessionKey>xxx-xxx-xxx-xxx-xxx</sessionKey><username>****</username><password>****</password></OpenSession></soap:Body></soap:Envelope>
    

    Response

    HTTP/1.1 500 URL Rewrite Module Error.
    Server: Microsoft-IIS/7.5
    Date: Tue, 18 Mar 2014 10:08:47 GMT
    Content-Length: 0
    

    So at least that is something to go on now.

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Mar 18, 2014 @ 12:12
    Simon Dingley
    0

    So...I excluded the path to the webservice from any rewrite rules and Courier started packaging up a whole lot more content than just the node I selected but it didn't complete because I got another exception the same as the one in the original post which basically means another underlying exception was thrown somewhere, anyone's guess where. Unfortunately this time there was no 500 error in Fiddler however after a few attempts at running the deployment it then decided not to show an error any more and progressed to the next screen listing what will be deployed.

    I thought I'd treat this as a dry run and accept the defaults even though there was much more in the package than I expected. It took some time and was looking promising until...

    'Extracting [PageName]' was not completed, as it returned an error

    Great - another error and no feedback as to what the problem was or what state my remote install has been left in as a result. So I tried running it again, this time there were less items in the package, presumably because it left it in an incomplete state the first time however the good news is that this time it completed successfully!

    Whilst its great that I've finally completed my first deployment I have no confidence in what it actually has done or the fact that if I ask the customer to go ahead with their content updates on staging that they will be able to push them to the live server successfully.

    I hope that something in this thread at least helps someone else in the same situation towards a solution to their problem.

    Simon

Please Sign in or register to post replies

Write your reply to:

Draft