CRON: "incorrect headers" |
[eluser]Peter Dräxler[/eluser]
Hi guys. I have UBUNTU 10.04 server. I'm want to scheduled tasks with CRON. I'm managing it using Webmin 1.520. When CRON executing many cron jobs in some time, it's crash and CRON "trying again" but it starting new scripts. When I click in Webmin to "Run now" it write: Quote:Output from command wget http://localhost/DT-SERVER/exportovac/in...acia/asbis .. and from "Read error" it's repeating... Please help. Thank's for every reply. Draex
[eluser]tonanbarbarian[/eluser]
is your page you are going to redirecting at all? if so you might need to tell wget to handle the redirections properly
[eluser]Peter Dräxler[/eluser]
On my page is no redirecting but generating one page takes mininimal 40 seconds. Can It be error? Please how I can fix it? I'm noob in Linux :-(
[eluser]Hockeychap[/eluser]
If I remember correctly your issue lies in the fact that Ubuntu (by default) has set up IP6 as well as IP4 on your server. When you go to resolve the address "localhost" an IP6 address is used first (hence the ::1 line) which causes either an issue with PHP or CI (can't remember which). This is causing you your delays. There are two fixes to the problem (one more correct than the other ![]() Quick and Dirty Fix: 1. Remove/ Comment out the line in /etc/hosts which say something like: localhost ::1 Easiest way to do this is to a. Open an terminal window to get a command line up b. Type sudo gedit /etc/hosts c. Put a # in front of the line that says localhost ::1 d. Save the file. e. Exit Proper Fix 1. Disable IP6 on your server unless you need to use it. This will require a quick reboot. Full steps are http://www.webupd8.org/2010/05/how-to-di...-1004.html Hope this helps, Justin
[eluser]Peter Dräxler[/eluser]
OH NO! It's not works :-( Have a another idea?
[eluser]Hockeychap[/eluser]
Have a slot free this afternoon - so will fire up an Ubuntu server to have a look . Will hopefully be able to get back to you tomorrow. Justin
[eluser]Hockeychap[/eluser]
Have had a look at my ubuntu server. I've installed teh ubuntu standard versions of Apache and PHP and put codeigniter 1.72 in /var/www/ci If I run the following wget command : wget -S http://localhost/ci/user_guide/ from a command line I get the following output: Code: --2010-10-22 13:34:48-- http://localhost/ci/user_guide/ The -S setting in wget tells you what headers are being returned from the webserver. Can you run the wget command that you have in your crontab from the command line, but add a -S switch and post the results. It should give as a clue as to what's failing in cron. It's also worth checking the bottom of /var/log/Apache2/access.log and /var/log/Apache2/error.log to see if there's anything else comming up. Cheers Justin
[eluser]Peter Dräxler[/eluser]
I forget say, ipv6 is disabled. And I detect, these problems is only with some controllers. Code: Output from command wget -S http://127.0.0.1/DT-SERVER/exportovac/index.php/asbis/get/najnakup .. Access log: Quote:127.0.0.1 - - [22/Oct/2010:14:00:01 +0200] "GET /DT-SERVER/exportovac/index.php/edsystem/get/najnakup HTTP/1.0" 200 2029 "-" "Wget/1.12 (linux-gnu)" Error log is blank.. Email: Quote:The original message was received at Sun, 17 Oct 2010 14:32:02 +0200 Email attachment (name of file: noname): Quote:Return-Path: <dttrading@DT-SERVER>
[eluser]Hockeychap[/eluser]
Sorry - been away. Your problem on IPV6 appears to have gone away (hoorah). It looks like the timeouts that you are seeing are related to issues with your outbound mail configuration/ DNS. The mail server is asking DNS to resolve the domain DT-SERVER which isn't actually a domain, hence the error. Fixing this depends on whether or not you are running a local DNS service, or if you have a handy fully configured email service available. If you have a local DNS service running, you can invent a domain and tell DNS to make your machine the mail server for that domain. If you have a fully configured email service then just change the email address that you are sending to so that it uses that service (i.e. [email protected]) Cheers Justin |
Welcome Guest, Not a member yet? Register Sign In |