Submitted by impire on Thu, 11/24/2011 - 05:08
Hello,
I ran the command from root# wget OPTION http://exampledomainname.com/update. The error message came back about SSL certificate. I do not have SSL enabled on this virtual server. Any idea why it's not working. Attached is the screenshot capture. IP and domain obscured for security reason.
Thank you in advance for your help.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Thu, 11/24/2011 - 08:58 Comment #1
Howdy -- it looks like the URL you are accessing is doing a redirect, causing wget to instead download it's content from a SSL secured address.
You can pass in the --no-check-certificate option to wget in order to have it access that SSL certificate without throwing an error, as it appears that the certificate may be self-signed.
Submitted by impire on Fri, 11/25/2011 - 09:44 Comment #2
Hi Andrey,
Thank you. It turned out to be a firewall issue on our end. We had to disabled the "DNS Rebinding Checks" and that did the trick.
Now we have different problem. I can't get this command to run under the Cron Job "wget -O - http://exampledomain.com/update".
I placed the command in the "Command" field under Scheduled Cron Job section. I set it for a 5 minutes interval but it never seems to do anything. I also set the Cron job logs under System Logs to "active", nothing seems to show up in the log.
When I clicked on "Run now" or "Save and run now", it seems to work. Just the scheduling part seems to have a problem.
Any pointer would be greatly appreciate. Thank you.
Submitted by andreychek on Fri, 11/25/2011 - 19:46 Comment #3
If you look in /var/log/syslog, you can see a list of all the cron jobs that are running. You can search that file for the term "wget" to see if that's being run at all in there.
Submitted by impire on Sat, 11/26/2011 - 02:36 Comment #4
Hi Andrey,
Thanks. It seems to be running. I wanted it to run every five minutes. Instead, it does the cron job every hour at 7:05, 8:05, 9:05, etc.
On the "When to execute", I selected "Time and dates selected below...". Then on the "Minutes" section, I chose "5". I left the rest of the options for "Hours/Days/Months/Weekdays" default to "All".
What did I do wrong?
Submitted by andreychek on Sat, 11/26/2011 - 08:59 Comment #5
In the "Minutes" section, the number there tells cron to execute it when the clock reaches that minute. So when you select "5", that tells cron to execute it 5 minutes after the hour.
What I'd suggest for what you want is to select every minute you want it executing on -- 5,10,15,20, etc.
Submitted by impire on Tue, 11/29/2011 - 02:07 Comment #6
Thanks very much! It works.
Submitted by impire on Tue, 11/29/2011 - 02:07 Comment #7