Copied to clipboard

Flag this post as spam?

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


  • James Stalley-Moores 5 posts 75 karma points
    Mar 22, 2016 @ 14:57
    James Stalley-Moores
    1

    Umbraco Scheduled Publish Not Working

    Hi,

    We have an azure hosted website, with two web apps on a load balancer. The scheduled publish facility works if I run the umbraco site on my local machine, but on the hosted environment, with servers / distributed calls turned on (or off) it doesn't work. Is there something relating to the environment we need to factor in to get scheduled publishes working? The version we are using is 7.2.7.

    Thanks! :-p

  • Sanjay Sen 33 posts 97 karma points
    May 12, 2016 @ 13:25
    Sanjay Sen
    0

    Hi All,

    I am having the same problem exactly. Though my site is only a standalone site running on azure.

    Any help would be appreciated.

    Thanks Sanjay

  • Carole Logan 17 posts 118 karma points MVP 8x c-trib
    May 12, 2016 @ 14:19
    Carole Logan
    0

    Hi,

    Is there anything useful in the Umbraco trace logs? This can sometimes give a message on why it can't publish like a timeout when making the API call or wrong protocol.

    Thanks, C

  • Sanjay Sen 33 posts 97 karma points
    May 13, 2016 @ 15:13
    Sanjay Sen
    0

    Hi Carole,

    There isn't anything interesting related to this in log file so not able to get exactly why its not working. It does work on local environment.

    Thanks Sanjay

  • Jan Vanuytrecht 32 posts 80 karma points
    May 31, 2016 @ 07:57
    Jan Vanuytrecht
    0

    I think I can shed some extra light on this one. We use Umbraco 7.3.0.

    In our logs we see:

    ScheduledPublishing - Failed (at "http://localhost:80/umbraco"). - System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:80 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Scheduling.ScheduledPublishing.

    In other words, scheduled publishing is done via localhost IP address (that's why it works on your local device).

    Is there a way to tell Umbraco to use the domain instead of local IP?

    Imo that would help

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 31, 2016 @ 08:42
    Dave Woestenborghs
    1

    Hi Jan,

    You need to set this in the umbracoSettings.config in the web.routing section

    <!-- 
        web.routing
          @trySkipIisCustomErrors
            Tries to skip IIS custom errors.
            Starting with IIS 7.5, this must be set to true for Umbraco 404 pages to show. Else, IIS will take
            over and render its built-in error page. See MS doc for HttpResponseBase.TrySkipIisCustomErrors.
            The default value is false, for backward compatibility reasons, which means that IIS _will_ take
            over, and _prevent_ Umbraco 404 pages to show.
          @internalRedirectPreservesTemplate
            By default as soon as we're not displaying the initial document, we reset the template set by the
            finder or by the alt. template. Set this option to true to preserve the template set by the finder
            or by the alt. template, in case of an internal redirect.
            (false by default, and in fact should remain false unless you know what you're doing)
          @disableAlternativeTemplates
            By default you can add a altTemplate querystring or append a template name to the current URL which
            will make Umbraco render the content on the current page with the template you requested, for example:
            http://mysite.com/about-us/?altTemplate=Home and http://mysite.com/about-us/Home would render the 
            "About Us" page with a template with the alias Home. Setting this setting to true stops that behavior
          @disableFindContentByIdPath
            By default you can call any content Id in the url and show the content with that id, for example:
            http://mysite.com/1092 or http://mysite.com/1092.aspx would render the content with id 1092. Setting 
            this setting to true stops that behavior
          @umbracoApplicationUrl
            The url of the Umbraco application. By default, Umbraco will figure it out from the first request.
            Configure it here if you need anything specific. Needs to be a complete url with scheme and umbraco
            path, eg http://mysite.com/umbraco. NOT just "mysite.com" or "mysite.com/umbraco" or "http://mysite.com".
      -->
      <web.routing trySkipIisCustomErrors="false" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false"
        umbracoApplicationUrl="">
      </web.routing>
    

    Dave

  • Jan Vanuytrecht 32 posts 80 karma points
    May 31, 2016 @ 08:51
    Jan Vanuytrecht
    0

    That works!

    Thank you Dave! #H5YR!

Please Sign in or register to post replies

Write your reply to:

Draft