Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 944 posts 2076 karma points
    Jan 30, 2017 @ 00:08
    Nigel Wilson
    0

    Scheduled Publishing Not Working

    Hi there

    I have read numerous posts about this issue and have tried numerous things to get working but to no avail, so:

    My site is running 7.5.3 using a SQL database and is a simple 1:1 instance (ie no load balancing).

    The error log is showing:

        2017-01-30 00:00:39,681 [P10828/D6/T68] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://xxxx.com/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: No connection could be made because the target machine actively refused it xxx.xx.xx.xxx:443
    

    I have:

    • Updated umbracosettings.config as follows:

      <scheduledTasks baseUrl="xxx.com/umbraco/">

    and

    <web.routing trySkipIisCustomErrors="true" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="false" disableFindContentByIdPath="false" umbracoApplicationUrl="https://xxx.com/umbraco" disableRedirectUrlTracking="false">

    • Updated web.config as follows:

    <add key="umbracoUseSSL" value="true" />

    • Had the site in IIS be setup on it's own Application Pool and have the idle timeout set to 0, so it doesn't go to sleep.

    Can anyone please suggest what might else can be changed in order to get the scheduled publishing to work ?

    Thanks, Nigel

  • Sjors Pals 617 posts 270 karma points
    Jan 30, 2017 @ 10:42
    Sjors Pals
    0

    I had also some problems with SSL with some older versions, a workaround is to create an alternative URL (ie a subdomain) and use a rewrite to force that to http instead of https, and use that one in your configuration.

  • Nigel Wilson 944 posts 2076 karma points
    Feb 01, 2017 @ 23:39
    Nigel Wilson
    0

    Hi Sjors

    Thanks for the feedback - appreciate it.

    I have had a play on my test site today and believe I might have solution.

    Firstly, I have changed umbracoUseSSL to false in the web.config

    Then in the umbracoSettings.config I have changed the umbracoApplicationUrl to http:// in the web.routing section

    And then I have a URL rewrite as follows:

    <rule name="secure redirect except Umbraco" stopProcessing="true">
    <match url=".*" ignoreCase="true" />
    <conditions>
        <add input="{REQUEST_URI}" pattern="^/umbraco" negate="true" />
        <add input="{HTTPS}" pattern="off" />
    </conditions>
    <action type="Redirect" url="https://{R:0}" />
    

    So far the nasty error in the logs has gone and in having a click around my test site all pages are being served as expected.

    The one downside is that you do not automatically get redirected to https on the admin section. However if you manually enter "https://mysite.com/umbraco" you do remain in secure mode.

    Any thoughts or spot any obvious flaws on this approach ?

    Cheers

    Nigel

  • k 256 posts 654 karma points
    May 08, 2017 @ 09:00
    k
    0

    Hello,

    When he below is done , i get a error 404.

    <add key="umbracoUseSSL" value="true" />
    

    Can someone please help.

    Thanks in advance,

    kusum

  • k 256 posts 654 karma points
    May 09, 2017 @ 05:28
    k
    0
    scheduledTasks baseUrl="www.mydomain.com/umbraco" in umbracoSettings.config
    

    Hello,

    The above resolved my issue.

Please Sign in or register to post replies

Write your reply to:

Draft