Copied to clipboard

Flag this post as spam?

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


  • Delete 61 posts 450 karma points
    Apr 18, 2018 @ 05:39
    Delete
    1

    I receive a error message each 60 seconds - Umbraco.Web.Scheduling.ScheduledPublishing

    Hi everyone,

    I found in my log files, errors like this:

    2018-04-16 00:02:21,794 [P4496/D2/T53] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - Failed (at "https://[site]/umbraco"). System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult) at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.Security.SslStream.EndRead(IAsyncResult asyncResult) at System.Net.TlsStream.EndRead(IAsyncResult asyncResult) at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Scheduling.ScheduledPublishing._9.MoveNext()

    This error I receive each 60 seconds.

    I checked application setting on the subject active schedules:

    But I haven't active items.

    I have Umbraco 7.6.4.

    What I have to do?

    Can it be related to the recently added SignarR in Umbraco?

    Thanks

  • Paul de Quant 403 posts 1520 karma points
    Apr 18, 2018 @ 06:58
    Paul de Quant
    103

    Hi,

    I think it's a TLS thing as you're using https (could be wrong though). Try adding:-

            public void OnApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
        }
    

    To your global or IApplicationEventHandler.

    Thanks Paul

  • Delete 61 posts 450 karma points
    Apr 18, 2018 @ 08:30
    Delete
    0

    Hi,

    I'll try.

    Thank you very much

    Vitaly

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Apr 18, 2018 @ 09:02
    Simon Dingley
    0

    Good advice! I am experiencing this all over the place on various sites as more and more providers tighten up their SSL Configurations.

  • Delete 61 posts 450 karma points
    Apr 19, 2018 @ 05:09
    Delete
    0

    Hi Paul,

    Unfortunately the problem is remained.

    Do you have any ideas?

    Thanks

  • Delete 61 posts 450 karma points
    Apr 19, 2018 @ 05:43
    Delete
    0

    Hi,

    I've set log level like DEBUG and I can provide a little be more information about this problem.

    2018-04-19 06:17:55,434 [P952/D5/T15] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledTasks] Task added Umbraco.Web.Scheduling.ScheduledTasks 2018-04-19 06:17:55,559 [P952/D5/T32] DEBUG Umbraco.Web.Scheduling.ScheduledPublishing - Scheduled publishing executing @ https://[SITE]/umbraco/RestServices/ScheduledPublish/Index 2018-04-19 06:17:55,559 [P952/D5/T38] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - Failed (at "https://[SITE]/umbraco"). System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult) at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.Security.SslStream.EndRead(IAsyncResult asyncResult) at System.Net.TlsStream.EndRead(IAsyncResult asyncResult) at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Scheduling.ScheduledPublishing._9.MoveNext() 2018-04-19 06:17:55,559 [P952/D5/T38] DEBUG Umbraco.Web.Scheduling.ScheduledPublishing - Scheduled publishing complete (took 11ms) 2018-04-19 06:17:55,559 [P952/D5/T38] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledPublishing] Task added Umbraco.Web.Scheduling.ScheduledPublishing

    Also I found another error: 2018-04-19 06:16:55,463 [P952/D5/T15] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [LogScrubber] Task added Umbraco.Web.Scheduling.LogScrubber 2018-04-19 06:16:55,478 [P952/D5/T38] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://[SITE]/umbraco"). System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult) at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.Security.SslStream.EndRead(IAsyncResult asyncResult) at System.Net.TlsStream.EndRead(IAsyncResult asyncResult) at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Scheduling.KeepAlive._4.MoveNext() 2018-04-19 06:16:55,478 [P952/D5/T38] DEBUG Umbraco.Web.Scheduling.KeepAlive - Keep alive complete (took 42ms) 2018-04-19 06:16:55,478 [P952/D5/T38] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [KeepAlive] Task added Umbraco.Web.Scheduling.KeepAlive

    Thanks

  • Delete 61 posts 450 karma points
    Apr 19, 2018 @ 05:56
    Delete
    0

    Also I tried to use:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;
    

    and

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Ssl3;
    

    But it did not help!

  • Delete 61 posts 450 karma points
    Apr 19, 2018 @ 11:01
    Delete
    0

    Hi,

    I've made a local SSL certificate for testing, configured it, but on my local PC I can't reproduce this error.

    Everything is working correctly on my local computer. (((

  • Carlos Gomes 38 posts 184 karma points
    Aug 22, 2019 @ 17:25
    Carlos Gomes
    0

    Hi Delete,

    Did you ever manage to solve this? We are facing the same issue on our client servers while trying to validate the reCAPTCHA response.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft