Skip to main content
Marco Colombo
Participating Frequently
February 8, 2024
Answered

[Cold Fusion 2023] Scheduled task not working: Connection refused: no further information

  • February 8, 2024
  • 1 reply
  • 772 views

Hi,

 

I have coldfusion 2023 on windows server.

Scheduled tasks doesn't work. 

They are inserted correctly. (some of these already existed on the old server with CF2016).
If I try to run them from the administration (the little running man) I get the following message: his scheduled task Gioca-resp - message remind of group default was completed successfully. But in reality it is not executed

the URL used in the task is HTTP - so not key issues.

 

I tried to call the url with CFHTTP but I get the following error message:
Connect Exception: Connect to Gioca-responsabile.it:80 [gioca-responsabile.it/194.76.116.40] failed: Connection refused: no further information
whether I use http (therefore on port 80) or https (port 443).

If I try to use CFHTTP with a domain that is not on the server, for example google, it works fine.

 

If I put the URL in the browser it works fine

 

What could it depend on?

 

Thanks

Marco

 

 

    Correct answer Dave Watts

    This could be a DNS issue. When you use CFHTTP, it needs to connect to the right IP address just like a browser, and that requires a correct DNS entry. I see in your error message an external IP address, which is probably what you're getting from the DNS server. That works for everyone else but might not work from the server itself. You can probably fix that by creating an entry in your hosts file, that resolves gioca-responsabile.it to 127.0.0.1.

     

    Dave Watts, Eidolon LLC

    1 reply

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    February 8, 2024

    This could be a DNS issue. When you use CFHTTP, it needs to connect to the right IP address just like a browser, and that requires a correct DNS entry. I see in your error message an external IP address, which is probably what you're getting from the DNS server. That works for everyone else but might not work from the server itself. You can probably fix that by creating an entry in your hosts file, that resolves gioca-responsabile.it to 127.0.0.1.

     

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC
    Marco Colombo
    Participating Frequently
    March 1, 2024

    Hi Dave, 

    sorry for my late reply.

    I looked for a solution that did not involve modifying the hosts file because hosting various sites means modifying the file of each site that requires the skeduler.
    I had to give up so I edited the hosts file and it works.
    Thanks for your help.

    Marco