Cron Jobs Failing

Jun 24, 2007

I have jobs that fail every now and then. I get this email:

Looking up www.xxxx.com
www.xxxx.com
Making HTTP connection to www.xxxx.com
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access [url]
Alert!: Unable to access document.

lynx: Can't access startfile

View 3 Replies


ADVERTISEMENT

Per Second Cron Jobs?

Apr 5, 2009

Hey everyone, my friend's dad is looking for a web host that will allow his cron jobs to run every second. Most hosts apparently dont allow cron jobs faster than 5 seconds apart.

How often a host can run cron jobs isn't really advertised on their sites so I'm having a bit of trouble finding a host. I've resorted to just sending emails to sales addresses asking about it.

Does anyone know how I can find a host like this?

View 7 Replies View Related

How To Schedual Cron Jobs

Oct 24, 2009

I have a number of PHP scripts that I would like to automatically run daily at midnight. I am currently running a VPS server but have no idea how to achieve this. I do have webmin on my sever but am unsure of what command I need to run.

View 2 Replies View Related

Cron Jobs Not Running

Jan 5, 2008

I have a machine, that for some reason stopped running it's cron jobs for some reason, and I can figure out how to get them working again.

My /etc/crontab file is as follows.

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
Here are the contents of a sample user cron file.

MAILTO="USER"
10 4 * * * php -q -f /home/USER/public_html/tools/updtransfers.php /home/USER/public_html >/dev/null 2>&1
10 5 * * * php -q -f /home/USER/public_html/tools/updateexp.php /home/USER/public_html >/dev/null 2>&1
10 5 * * * php -q -f /home/USER/public_html/tools/invoice_cron.php /home/USER/public_html >/dev/null 2>&1
and another

*/5 * * * * /usr/local/bin/php -c /home/USER/php.ini /home/USER/public_html/poller.php > /dev/null 2>&1
I've checked my logs, and I can find no errors anywhere. When I run the commands manually via SSH, they work perfectly, they simply are not being run automatically the way they are supposed to be.

I have checked, and the crond service is running. I have tried restarting it, but it seams to have no affect. I really have no idea what the issue is. The only thing I seam to have found at one point, was the possibility that the files within the /etc/cron.d directory might be CHMOD'ed wrong, but I haven't found anything to confirm this either way.

[root@server cron.d]# ls -all
total 60
drwxr-xr-x 2 root root 4096 Dec 17 03:07 .
drwx--x--x 94 root root 12288 Jan 3 09:28 ..
-rw-r--r-- 1 root root 61 Jun 22 2007 csf_update
-rw-r--r-- 1 root root 81 Apr 11 2007 lsm
-rw-r--r-- 1 root root 79 Jun 22 2007 prm
-rw------- 1 root root 366 Feb 23 2007 sa-update
-rw-r--r-- 1 root root 82 Jun 22 2007 spri
-rw-r--r-- 1 root root 188 Nov 16 23:14 sysstat
[root@server cron.d]#

View 3 Replies View Related

Software To Control Cron Jobs?

May 14, 2008

Is there any software which would control cron jobs? I've a problem with cpu load where some customers are running more than enough of them at the same time.

Is there any software which would be able to:

If there are more than x crons running at the same time, put others in queue and execute after there are no more than x-1 are running?

View 1 Replies View Related

How To Schedule Cron Jobs In Windows

Dec 7, 2008

how to set cron jobs in window....

View 6 Replies View Related

Cron Jobs Not Executing PHP Files

Jun 16, 2008

I have a new dedicated server and am trying to set up a cron job via CPanel on on of my accounts (we'll call it "abc" account).

In the Cron job area, where it asks for the command to run, I enter this:

/home/abc/public_html/forum/class/sendnotice.php

But when the job runs, it doesn't seem to be executing the .php file. Instead, I get stuff like this via email:

/home/acb/public_html/forum/class/sendnotice.php: line 1: ?php: No such file or directory
/home/abc/public_html/forum/class/sendnotice.php: line 2: ////////////////////////////: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 3: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 4: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 5: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 6: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 7: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 8: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 9: //: is a directory

So it is as if the cron job is reading each line of the .php file instead of just running it. Am I doing something wrong in setting up the cron job to run that file or could it be a configuration issue with the new server?

View 3 Replies View Related

Plesk 11.x / Linux :: How To Set Cron Jobs

Dec 24, 2014

How I can set CronJobs? Have never to it before.

Here is what i have from developer:

Final Step: Setup Cron Tasks.

Number of cron (background) tasks to ensure redundant files are deleted, accounts are auto downgraded etc. Details of these are below.

0 0 * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/auto_prune.cron.php >> /dev/null 2>&1
0 0 * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
0 * * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
0 0 * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
*/5 * * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1

View 19 Replies View Related

Free Hosting With Access To Cron Jobs?

Oct 25, 2008

I need a reliable, free host where I can run wget on a URL (less than 1k) every 10 minutes via a cron job.

Can anyone reccommend anything?

View 15 Replies View Related

Cron Jobs And Time Zone Differences

Apr 11, 2009

I have a customer billing system.

I would like crons to run at midnight so that the invoices are on schedule and have the right dates etc.

My server is overseas and my time is plus 14 hrs here.

I have set my software up to plus 14 hrs time difference also.

What should I set my crons to?

View 4 Replies View Related

Determine What Cron Jobs Are Killing Server And When

Jan 8, 2009

We're running on Linux/Apache/MySQL/RoR and have a number of cron jobs that run throughout the day on our server. We've been noticing lately that at certain times of the day the site becomes really slow. When I'm online with my engineers I can mention this to them and they can check and see and say "Oh yeah, it's job XYZ that's spiking the server load."

That's great but much of the time when I notice the sluggishness my developers are offline (we're in different time zones). I'm wondering if there's a fairly easy way to track this when they're not online so we can say "Yup, last night at 10 PM your time when you noticed that it was job ABC." There has to be something that allows you to do this right?

View 3 Replies View Related

Variable Filenames By Date In Cron Jobs

Mar 12, 2008

How do you insert variables in cron jobs? e.g. the current date.

Let's say I want to back up a file and append the date to it.

0 0 * * * cp /some/file.txt /some/outputfile_[DATE].txt >/dev/null
(note that I'm not sure the cp will actually work like that, it's just an example)

Where outputfile_[DATE].txt has the date in it.

Are there variables cron can use for date, hour, minute, etc.?

View 4 Replies View Related

Check What Cron Jobs Have Been Added On The Server?

Feb 21, 2008

i find on the certain time,

the mysql of server will run a lot of query,

and the io and load will become very high,

after the time point,

all the io and load with be smoth,

so,i wonder if any Cron job has been add (by certain account) to run something,

View 4 Replies View Related

Is This End Of HDD , Is HDD Failing

May 7, 2008

Today i just noticed i cannot login to my Direct admin panel no more all the sudden, but was working fine 24 hrs back.

So i login to root, and hit yum update, but guess what i get :
-bash: /usr/bin/yum: Input/output error

And to my surprise i go to /home/user/ to look for sites, and the public_html folder is un-accesible and is all pinkish/orangish with question marks besides them :

?--------- ? ? ? ? ? public_html

^^

Even tmp folder says this :
[root@myproxyhost tmp]# ls
ls: reading directory .: Input/output error


i noticed this when i try to update da password or change it so i could login to DA :

[root@myproxyhost tmp]# passwd
passwd: error while loading shared libraries: /usr/lib64/libuser.so.1: cannot read file data: Input/output error


what happened is this end of HDD and data corruption ?
Its got centos 5 64 bit version :

[root@myproxyhost /]# uname -ia
Linux myproxyhost.proxyorama.info 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

View 10 Replies View Related

Yum Is Failing

Feb 18, 2007

Is there a reason why yum is failing for me? Its a brand new server!

Quote:

[root@194 yum.repos.d]# yum update
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - Null is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update

View 14 Replies View Related

@mac.com Email Failing

Aug 7, 2008

All emails from my server to any email @ mac.com are failing.

View 3 Replies View Related

Httpd Keeps Failing

Apr 27, 2007

for the past 4 days i have being having problems with my Apache server. on day one i noticed it was going down irregularly over day 2/3 it got progressively worse by last night httpd would only work after i restarted it then 5minutes later it failed again. now it wont start at all every time i tried restarting from whm it just says 'httpd failed' ive also tried restarting from shell but no joy. ive tried rebuilding apache from whm that hasn't helped either. one error i was getting was 'invalid user name' of a user who i terminated yesturday.

View 7 Replies View Related

Is This Drive Failing

Sep 13, 2007

Just got this server setup, getting some smart errors. Here's a copy of the trouble ticket I posted to the host, they said "If you read through the documentation for smartd you will find that from the results you pasted, your hard disk passed every test. We can give you another hard disk if you want but we will have to charge you 3 credits for the reinstall of the operating system." I could be wrong, maybe everything's fine, but the fact that there are unreadable sectors reported has me a little worried.

Quote:

What is the nature of the problem?

New server, hard drive failing smart tests

What is the error message?

Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, found in smartd database.
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, is SMART capable. Adding to "monitor" list.
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Monitoring 1 ATA and 0 SCSI devices
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, 2 Currently unreadable (pending) sectors
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Sending warning via mail to root ...
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Warning via mail to root: successful
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Device: /dev/hda, 2 Offline uncorrectable sectors
Sep 12 17:51:43 sls-db8p19 smartd[3312]: Sending warning via mail to root ...
Sep 12 17:51:44 sls-db8p19 smartd[3312]: Warning via mail to root: successful

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 066 062 006 Pre-fail Always - 78282665
3 Spin_Up_Time 0x0003 098 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 19
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 2
7 Seek_Error_Rate 0x000f 075 060 030 Pre-fail Always - 29797813
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1175
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 27
194 Temperature_Celsius 0x0022 030 048 000 Old_age Always - 30
195 Hardware_ECC_Recovered 0x001a 066 062 000 Old_age Always - 78282665
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 2
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 2
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0

Was it working before?

No, brand new server

If it was working before, did you do anything before this error occurred?

N/A

Have you done anything after this error occurred?

View 1 Replies View Related

Assp2 Failing

May 31, 2007

Does anyone know any reasons why this process would be failing?

I installed ASSP X onto my cPanel VPS, assp2 seems to be failing every so often.

View 3 Replies View Related

Httpd Keeps Failing

Jan 21, 2007

Before I used to get around 5-6 a day emails saying that httpd has failed and a restart has been attempted automatically.

After I increased the max clients in the httpd.conf the number reduced 1-2 emails a day.

I am not sure what the problem exactly is

Is it because my sites are using up high bandwidth?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved