• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Error with sheduled task

regisg

Regular Pleskian
Hello,

I have sheduled a root task :
Fetch a URL : http://myserver/folder/file/

In the crontab i can see :
*/5 * * * * /opt/psa/admin/sbin/fetch_url 'http://myserver/folder/file/'

This URL (php script, no html code) works perfectly whith a browser.

But when i use the sheduled task, i have an error :
Task "http://myserver/folder/file/" completed with error in 0 seconds, output:
Url 'http://myserver/folder/file/' fetched
Status: 404
Output:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /folder/file/ was not found on this server.</p>
<hr>
<address>Apache Server at ns345221.ip-5-196-79.eu Port 80</address>
</body></html>

Please could you help me ?

Thanks a lot :)
 
The syntax of the statement is correct.

To find out why your server is returning a 404, check the error_log of the website from where you are trying to get the data. It is possible that a rewrite configuration on that site detects that the request is not coming from an ordinary browser.
 
Back
Top