Copied to clipboard

Flag this post as spam?

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


  • Bjorn Simpson 9 posts 49 karma points
    Mar 04, 2015 @ 00:15
    Bjorn Simpson
    0

    ScheduledPublishing error with https site

    Hello,

    I've noticed an issue with "Publish At" never publishing my item. I am using Umbraco 7.2.2 on Windows Server 2008 R2/IIS7.5. The log reports this:

    2015-03-03 11:11:04,278 [44] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 36] An error occurred with the scheduled publishing. The base url used in the request was: http://www.mydomain.com/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: The remote server returned an error: (404) Not Found.

       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 issue seems to be that my site has an IIS rewrite rule that forces https, but the base url used for this request is http. I know I can change the baseUrl, i.e. <scheduledTasks baseUrl="OptionalCustomBaseUrl.com/umbraco/">

    But I cannot set the protocol there. If I try using baseUrl="https://www.mydomain.com/umbraco/" I still get the ScheduledPublishing error, only now it says "The base url used in the request was: http://https://www.mydomain.com/umbraco/".

    Can the baseUrl be made so that I can set https?

  • Jeremy 21 posts 45 karma points
    Mar 10, 2015 @ 20:13
    Jeremy
    0

    Yes, from my understanding the logic evaluates the umbracoUseSSL setting in web.config, and then will use the correct protocal for baseUrl.

  • Bjorn Simpson 9 posts 49 karma points
    Mar 11, 2015 @ 21:00
    Bjorn Simpson
    0

    Thanks so much, that was just what I needed!

  • Gus Braz 14 posts 38 karma points
    May 08, 2015 @ 06:59
    Gus Braz
    0

    Hi there,

    I got umbracoUseSSL = "true" in my web.config

    and 

    scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config

    and the following errors still appear:

    2015-05-08 14:50:39,257 [79] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 25] An error occurred with the scheduled publishing

    System.Net.WebException: The remote name could not be resolved: 'https'

       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()

    2015-05-08 14:50:39,257 [79] ERROR Umbraco.Web.Scheduling.KeepAlive - [Thread 15] Error in ping

    System.Net.WebException: The remote name could not be resolved: 'https'

       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)

     

    I am using Umbraco 7.2.1. I don't have any scheduled task that I need to run. Just trying to follow the steps above. 

    I am also not using load balancing.

    Does anybody have a suggestion?

    Many Thanks,

    Gus

     

     

     


     

  • keilo 557 posts 1012 karma points
    Nov 12, 2015 @ 04:45
    keilo
    0

    Gus I have the exact situation, usiing 7.2.4.

    I get the same error

    when umbracoUseSSL = "true" in my web.config

    and

    scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config

    Did you find a solution?

  • yogesh pathak 136 posts 221 karma points
    May 08, 2015 @ 12:32
    yogesh pathak
    0

    hi there ,

    why i am getting follwoing error when trying to host my site in window serevr 2012 , where the same sollution is working fine in my local system

     

    2015-05-08 03:25:44,239 [30] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 99] An error occurred with the scheduled publishing. The base url used in the request was: http://172.28.0.169: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.NullReferenceException: Object reference not set to an instance of an object.
       at Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute.GetAuthHeaderTokenVal(ApplicationContext appContext)
       at Umbraco.Web.Scheduling.ScheduledPublishing.Run()

     

    2015-05-08 03:26:21,927 [30] INFO  Umbraco.Core.UmbracoApplicationBase - [Thread 102] Application shutdown. Reason: ConfigurationChange
    2015-05-08 03:26:46,443 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Determining hash of code files on disk
    2015-05-08 03:26:46,456 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Hash determined (took 4ms)
    2015-05-08 03:26:46,474 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
    2015-05-08 03:26:46,493 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 37 (took 18ms)
    2015-05-08 03:26:46,630 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
    2015-05-08 03:26:46,631 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 0ms)
    2015-05-08 03:26:46,631 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter
    2015-05-08 03:26:46,632 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 16 (took 1ms)
    2015-05-08 03:26:46,647 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Web.Mvc.SurfaceController
    2015-05-08 03:26:46,648 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Web.Mvc.SurfaceController, found 5 (took 1ms)
    2015-05-08 03:26:46,648 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Web.WebApi.UmbracoApiController
    2015-05-08 03:26:46,652 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Web.WebApi.UmbracoApiController, found 35 (took 3ms)
    2015-05-08 03:26:46,704 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.Media.IThumbnailProvider
    2015-05-08 03:26:46,705 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.Media.IThumbnailProvider, found 3 (took 0ms)
    2015-05-08 03:26:46,705 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Starting resolution types of Umbraco.Core.Media.IImageUrlProvider
    2015-05-08 03:26:46,706 [103] INFO  Umbraco.Core.PluginManager - [Thread 108] Completed resolution of types of Umbraco.Core.Media.IImageUrlProvider, found 1 (took 0ms)
    2015-05-08 03:26:48,214 [103] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 108] Initializing Examine and binding to business logic events
    2015-05-08 03:26:48,391 [103] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 108] Adding examine event handlers for index providers: 3
    2015-05-08 03:26:48,982 [103] INFO  Umbraco.Web.UmbracoModule - [Thread 102] Setting OriginalRequestUrl: 172.28.0.169:80/umbraco
    2015-05-08 03:26:49,138 [103] INFO  umbraco.content - [Thread 102] Loading content from disk cache...
    2015-05-08 03:26:49,146 [103] WARN  Umbraco.Web.UmbracoModule - [Thread 102] Umbraco has no content
    2015-05-08 03:26:54,805 [103] INFO  Umbraco.Core.PluginManager - [Thread 104] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
    2015-05-08 03:26:54,807 [103] INFO  Umbraco.Core.PluginManager - [Thread 104] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 44 (took 1ms)
    2015-05-08 03:26:59,059 [103] INFO  Umbraco.Core.PluginManager - [Thread 106] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
    2015-05-08 03:26:59,060 [103] INFO  Umbraco.Core.PluginManager - [Thread 106] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 23 (took 1ms)

     

    can somebody please help?

  • yogesh pathak 136 posts 221 karma points
    May 08, 2015 @ 13:59
    yogesh pathak
    0

    that was my fault , i didnt have data on my live server database :( fixed

  • Paul 4 posts 73 karma points
    Dec 16, 2016 @ 14:59
    Paul
    0

    We had this problem and it seemed to work after we changed the Application Pool identity to Network Service.

  • Wade 11 posts 31 karma points
    Jan 10, 2017 @ 16:36
    Wade
    0

    Just have to add this to the thread that this did fix it - "scheduledTasks baseUrl="https://www.mydomain.com/umbraco" in umbracoSettings.config" however, you must not put the https:// in there. Only have the www.mydomain.com (replace with the domain that Umbraco is on) and that should fix the log files. It worked for all our sites. Hope it helps.

  • Sumesh KP 24 posts 93 karma points
    Jul 19, 2018 @ 06:24
    Sumesh KP
    0

    @Wade

    Your solution is not working for me

    I'm getting the following error

     Failed (at "www.mydomain.com/umbraco").
    System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
       at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)
       at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
       at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
       at Umbraco.Web.Scheduling.ScheduledPublishing.<PerformRunAsync>d__9.MoveNext()
    
Please Sign in or register to post replies

Write your reply to:

Draft