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.
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)
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.
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.
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 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.
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.
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.
<scheduledTasks>
<!-- add tasks that should be called with an interval (seconds) -->
<task log="true" alias="test60" interval="60" url="C:\website\umbraco"/>
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
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
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.
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:-
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
Also noted the following error with the same frequency as the scheduled publishing:-
Craig
What version of SEOChecker is installed?
It's SEOChecker V1.8.2
Craig
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
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
Just hitting this problem again with a V7.3.3 site, again on Azure.
Looking further into this on our Azure installation we see several errors a minute like this-
Logger: 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.
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
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.
Hi. I've got the same error - did you manage to resolve this? Regards
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
Cheers Ismail
So do you mean use:
on our IIS server?
Regards
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
Thanks a lot for your input Ismail - we ended up restoring a backup so its no longer an issue.
All the best
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
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__DisplayClass1a
1.<CreateMultiPocoFactory>b__19(IDataReader reader, Delegate arg3) at Umbraco.Core.Persistence.Database.<Query>d__1c
1.MoveNext()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.
is working on a reply...