Copied to clipboard

Flag this post as spam?

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


  • Craig100 1006 posts 2204 karma points c-trib
    Jun 30, 2015 @ 13:13
    Craig100
    0

    Scheduled Publishing Error in Logs

    On a 7.2.2 site, I have recently noticed the following errors occurring about once a minute on a site that's been running for a few months on Azure. As far as I know we have no "Scheduled Tasks" running so I have to assume it's some sort of internal Umbraco scheduled task:-

    An error occurred with the scheduled publishing. The base url used in the request was: http://localhost:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error 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.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 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.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) at System.Net.WebClient.UploadString(Uri address, String method, String data) at Umbraco.Web.Scheduling.ScheduledPublishing.Run()

    The site has the SEO Checker package installed but there's no scheduled tasks set up on it either as far as I'm aware.

    Also there's no scheduledTasks section in web.config.

    Any thoughts appreciated.

    Craig

  • Craig100 1006 posts 2204 karma points c-trib
    Jun 30, 2015 @ 13:34
    Craig100
    0

    Also noted the following error with the same frequency as the scheduled publishing:-

    Error in ping. The base url used in the request was: http://localhost:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error 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.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 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.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at Umbraco.Web.Scheduling.KeepAlive.Start(ApplicationContext appContext, IUmbracoSettingsSection settings)

    Craig

  • Mark Bowser 265 posts 851 karma points c-trib
    Jun 30, 2015 @ 17:20
    Mark Bowser
    0

    What version of SEOChecker is installed?

  • Craig100 1006 posts 2204 karma points c-trib
    Jun 30, 2015 @ 17:40
    Craig100
    0

    It's SEOChecker V1.8.2

    Craig

  • Dallas 127 posts 398 karma points
    Jul 01, 2015 @ 09:36
    Dallas
    0

    We had this same issue in a recent v7 deployment (though not in Azure).

    An error occuring every minute implicates a Scheduled Task or the Umbraco Scheduled Publishing. Umbraco has its own Scheduled Task to check every minute to see if there is any content that has been scheduled for publishing (or unpublishing). This is content that is scheduled on the content Properties tab.

    In our case the site was using https and the errors stopped after changing the umbracoUseSsl setting to true in the web.config. As in your error messsage I could see the base url and it was using http not https.

    The site was using IIS Url Rewriting to force requests to https but this wasn't affecting (or was breaking) the requests.

    If this doesn't solve the issue for you then the link in the error message has some details about explicitly setting the BaseUrl in the umbracoSettings.config.

    Dallas

  • Dallas 127 posts 398 karma points
    Jul 01, 2015 @ 09:37
    Dallas
    0

    From this issue on the tracker it looks like this could still be an issue in versions prior to v7.2

    http://issues.umbraco.org/issue/U4-4737

    Dallas

  • Craig100 1006 posts 2204 karma points c-trib
    Dec 17, 2015 @ 21:00
    Craig100
    0

    Just hitting this problem again with a V7.3.3 site, again on Azure.

  • Craig100 1006 posts 2204 karma points c-trib
    Dec 18, 2015 @ 12:54
    Craig100
    0

    Looking further into this on our Azure installation we see several errors a minute like this-

    Logger: Umbraco.Web.Scheduling.ScheduledPublishing

    An error occurred with the scheduled publishing. The base url used in the request was: http://localhost:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error
    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.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
       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.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
       at System.Net.WebClient.UploadString(Uri address, String method, String data)
       at Umbraco.Web.Scheduling.ScheduledPublishing.
    

    Checked the mentioned documentation and we have no scheduled tasks set up, it's all commented out in the umbracoSettings.config file. We do have SEO Checker installed and a few other packages but nothing I'm aware of that would be scheduling publishing.

    Any thoughts on this would be appreciated.

  • Dallas 127 posts 398 karma points
    Dec 18, 2015 @ 16:50
    Dallas
    0

    Hi Craig

    I think this is the built in Scheduled Publishing task. It runs every minute to check if there any documents that are scheduled to be published (or unpublished). It is an internal task and not listed in the umbracoSettings.config file.

    The task thinks that your site is running on http://localhost:80/umbraco/.

    The BaseUrl attribute overrides the url that should be used for ScheduledTasks but this is obsolete since 7.2.7 (according to documentation) and umbracoApplicationUrl should be used (in the Web.Routing section).

    It says in the documentation (for Web.Routing) that Umbraco guesses the application url from the first request made to the server but in your case it seems to be getting it wrong.

    https://our.umbraco.org/documentation/Reference/Config/umbracoSettings/

    Dallas

  • Craig100 1006 posts 2204 karma points c-trib
    Dec 18, 2015 @ 17:32
    Craig100
    0

    Might be worth creating an "Issue" as I don't think Azure recognises "localhost". I can't be the only one with this issue running on Azure. We have two sites, both have the same issue.

  • Justin Liu 4 posts 74 karma points
    May 05, 2016 @ 10:59
    Justin Liu
    0

    Hi. I've got the same error - did you manage to resolve this? Regards

  • Ismail Mayat 4405 posts 9633 karma points MVP 2x admin c-trib
    May 05, 2016 @ 11:07
    Ismail Mayat
    0

    Justin,

    We recently had this issue where we were running Umbraco in a virtual directory so we had to update umbracoSettings and give it specific url of backend so /umbraco was /whatever/umbraco.

    Regards

    Ismail

  • Justin Liu 4 posts 74 karma points
    May 05, 2016 @ 13:01
    Justin Liu
    0

    Cheers Ismail

    So do you mean use:

    <scheduledTasks>
    <!-- add tasks that should be called with an interval (seconds) -->
    <task log="true" alias="test60" interval="60" url="C:\website\umbraco"/>
    

    on our IIS server?

    Regards

  • Ismail Mayat 4405 posts 9633 karma points MVP 2x admin c-trib
    May 05, 2016 @ 14:38
    Ismail Mayat
    0

    Justin,

    That is a path it should be a url. Also in your case you are on /umbraco in my case i was on /somefolder/umbraco so my case i had to www.somesite/somefolder/umbraco

    Regards

    Ismail

  • Justin Liu 4 posts 74 karma points
    May 06, 2016 @ 10:15
    Justin Liu
    0

    Thanks a lot for your input Ismail - we ended up restoring a backup so its no longer an issue.

    All the best

  • Mahesh 19 posts 89 karma points
    Jan 08, 2020 @ 06:55
    Mahesh
    0

    Hi Craig100,

    Do you got any solution for below issue?

    Umbraco.Web.UI.Umbraco.Umbraco - [Thread 62] A requested app: was not found 2020-01-08 05:06:19,270 [11] INFO umbraco.BusinessLogic.Log - [Thread 20] Log scrubbed. Removed all items older than 2019-11-09 05:06:18 2020-01-08 05:06:57,672 [11] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 62] An error occurred with the scheduled publishing. The base url used in the request was: https://localhost:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error 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.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 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.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) at System.Net.WebClient.UploadString(Uri address, String method, String data) at System.Net.WebClient.UploadString(String address, String data) at Umbraco.Web.Scheduling.ScheduledPublishing.Run() Umbraco.Core.Persistence.UmbracoDatabase - [Thread 58] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallDelegate(Int32 index, IDataReader reader) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count) at Umbraco.Core.Persistence.Database.<>cDisplayClass1a1.

    I want to know is this error belongs to Azure Server or with the application. currently i am using umbraco version:6.2.5

  • Mahesh 19 posts 89 karma points
    Jan 08, 2020 @ 09:46
    Mahesh
    0

    Hi

    I have updated UmbracoSetting.config file. I have set the url under scheduledTasks tag like below

    baseurl="https://mydomain.com/umbraco"/>

    After i update this line of code i am getting different error like below

    2020-01-08 09:23:36,163 [11] INFO umbraco.BusinessLogic.Log - [Thread 34] Log scrubbed. Removed all items older than 2019-11-09 09:23:35 2020-01-08 09:23:38,491 [11] INFO Umbraco.Core.Persistence.UmbracoDatabase - [Thread 32] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Delegate.DynamicInvoke(Object[] args) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallDelegate(Int32 index, IDataReader reader) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count) at Umbraco.Core.Persistence.Database.<>c__DisplayClass1a1.<CreateMultiPocoFactory>b__19(IDataReader reader, Delegate arg3) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext()

  • Craig100 1006 posts 2204 karma points c-trib
    Feb 03, 2020 @ 11:41
    Craig100
    0

    Hi Mahesh,

    I'm really sorry but my issue was 4 years ago and I have no idea which site it related to now. I "think" the site was taken off Azure and put on conventional hosting. Sorry can't be more help.

Please Sign in or register to post replies

Write your reply to:

Draft