I was using CF10 on a windows 2012 box. I was unable to use 127.0.0.1, localhost, local IP address, nor any normal url. They all resulted in 401.2
>From what I could gather from the resulting messages, it seems the calls made by Scheduled Tasks could not use the Integrated Windows Authentification in IIS (8.5), but calls worked when I installed and used Basic Authentification. Thankfully it works now. Thanks for replying Xiaofeng and Charlie. On 10 December 2017 at 23:30, Xiaofeng Liu <[email protected]> wrote: > Allan, as Charlie mentioned, I solved my case by using the public IP > address of the machine. So maybe you would like to try that if haven't done > so. > > Cheers > > On Mon, Dec 11, 2017 at 9:16 AM, charlie arehart < > [email protected]> wrote: > >> Did you see the message from the OP, Xiaofeng Liu, of how he solved it >> (for his specific situation)? >> >> https://groups.google.com/d/msg/cfaussie/Ug1tjCcUXCk/RLsTij8XBAAJ >> >> >> He solved it by changing the URL (in the sched task) to be the IP address >> of the machine (not localhost or 127.0.0.1). >> >> If that’s not your solution/issue, did you assess the first few other >> answers, which addressed more typical explanations for problems of a sched >> task URL not working though a browser one does? >> >> /charlie >> >> >> >> *From:* [email protected] [mailto:[email protected]] *On >> Behalf Of *Allan Cliff >> *Sent:* Friday, December 8, 2017 09:11 AM >> *To:* cfaussie <[email protected]> >> >> *Subject:* Re: Re[2]: [cfaussie] CF11 Scheduled Task Not Running - 401 >> Unauthorized >> >> >> >> Did anyone ever get to the bottom of this? >> >> >> >> Having exactly the same problem here. >> >> >> >> Local IP address url calls to another server (Windows 2012 R2) from the >> browser work as expected. >> >> Also urls in my desktop browser (via VPN). >> >> >> >> When I put the url into a scheduled tasks, I just get 401 every time. >> >> >> >> Any solution would be appreciated. >> >> >> >> Regards, >> >> Allan >> >> >> >> >> >> On Thursday, November 19, 2015 at 4:53:35 AM UTC+1, charlie arehart wrote: >> >> Sure, that is curious. If you may ever get to the bottom of things, it >> would be interesting to hear. Thanks for the update. >> >> /charlie >> >> *From:* [email protected] [mailto:[email protected]] *On >> Behalf Of *Xiaofeng Liu >> *Sent:* Wednesday, November 18, 2015 5:07 PM >> *To:* [email protected] >> *Subject:* Re: Re[2]: [cfaussie] CF11 Scheduled Task Not Running - 401 >> Unauthorized >> >> >> >> Hi Charlie, >> >> >> >> I originally was using a URL like "http://localhost:1981/cron/sc >> hedTask.cfm" to run the scheduled task. So that was the URL I specified >> in CF Admin. That threw 401 to me. >> >> >> >> Also I tested from the browser by accessing the same URL which is " >> http://localhost:1981/cron/schedTask.cfm" (normal and icognito mode) and >> it is working fine. >> >> >> >> So now I have to update the URL to use the server's public IP address in >> CF Admin and it works. I don't understand why CF running locally on the >> same server has to use the external IP, I mean not the localhost to run the >> sched task that is also on the same server? Given that localhost is also in >> the host file. >> >> >> >> Cheers, >> >> Xiaofeng >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "cfaussie" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/cfaussie. >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "cfaussie" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/cfaussie. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Best regards, > > Xiaofeng,^_^ > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/cfaussie. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
