Hersfold | 9 Jun 2012 18:02
Picon

Crontab not running?

Hello,

I'm having some strange issues with my crontab. I've got this line in 
there, which has worked for months:
0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar 
HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out

Last night I replaced the jar in question with a new version (same name, 
location, etc.); since then, it doesn't appear that it's been running or 
even attempting to run. Usually when it fails to run I get an email, or 
at the very least something should be entered in that .out file; 
unfortunately I got no emails, and the file didn't exist, yet my bot 
didn't make any edits until I started it manually a short while ago. It 
should have run just now at 16:00 UTC, but again, no dice. Is there 
something wrong with cron where it's stopped functioning correctly?

----
User:Hersfold
hersfoldwiki <at> gmail.com

DeltaQuad | 9 Jun 2012 18:20
Picon

Re: Crontab not running?

My first inclination is that it's a file permissions error with crontab,
where the server can't read it because of access issues. That's what
happened to me once, though knowing what to change it to, I forget.

DeltaQuad
English Wikipedia Administrator

On 09/06/2012 12:02, Hersfold wrote:
> Hello,
>
> I'm having some strange issues with my crontab. I've got this line in
> there, which has worked for months:
> 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar
> HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
>
> Last night I replaced the jar in question with a new version (same
> name, location, etc.); since then, it doesn't appear that it's been
> running or even attempting to run. Usually when it fails to run I get
> an email, or at the very least something should be entered in that
> .out file; unfortunately I got no emails, and the file didn't exist,
> yet my bot didn't make any edits until I started it manually a short
> while ago. It should have run just now at 16:00 UTC, but again, no
> dice. Is there something wrong with cron where it's stopped
> functioning correctly?
>
> ----
> User:Hersfold
> hersfoldwiki <at> gmail.com
>
>
(Continue reading)

Hersfold | 10 Jun 2012 04:44
Picon

Re: Crontab not running?

Thanks, DQ, it looks like that did it. For reference, I set the 
permissions to 754: rwxr-xr--

----
User:Hersfold
hersfoldwiki <at> gmail.com

On 6/9/2012 12:20 PM, DeltaQuad wrote:
> My first inclination is that it's a file permissions error with crontab,
> where the server can't read it because of access issues. That's what
> happened to me once, though knowing what to change it to, I forget.
>
> DeltaQuad
> English Wikipedia Administrator
>
>
> On 09/06/2012 12:02, Hersfold wrote:
>> Hello,
>>
>> I'm having some strange issues with my crontab. I've got this line in
>> there, which has worked for months:
>> 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar
>> HersfoldArbClerkBot.jar>  HersfoldArbClerkBot.out
>>
>> Last night I replaced the jar in question with a new version (same
>> name, location, etc.); since then, it doesn't appear that it's been
>> running or even attempting to run. Usually when it fails to run I get
>> an email, or at the very least something should be entered in that
>> .out file; unfortunately I got no emails, and the file didn't exist,
>> yet my bot didn't make any edits until I started it manually a short
(Continue reading)

Hersfold Wikipedia | 9 Jun 2012 19:15
Picon

Re: Crontab not running?

That's possible. I'll check when I get back home.

----
User:Hersfold
hersfoldwiki <at> gmail.com

Sent from my Windows Phone
From: DeltaQuad
Sent: 6/9/2012 12:20
To: toolserver-l <at> lists.wikimedia.org
Subject: Re: [Toolserver-l] Crontab not running?
My first inclination is that it's a file permissions error with crontab,
where the server can't read it because of access issues. That's what
happened to me once, though knowing what to change it to, I forget.

DeltaQuad
English Wikipedia Administrator

On 09/06/2012 12:02, Hersfold wrote:
> Hello,
>
> I'm having some strange issues with my crontab. I've got this line in
> there, which has worked for months:
> 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar
> HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
>
> Last night I replaced the jar in question with a new version (same
> name, location, etc.); since then, it doesn't appear that it's been
> running or even attempting to run. Usually when it fails to run I get
> an email, or at the very least something should be entered in that
(Continue reading)

Platonides | 9 Jun 2012 19:31
Picon

Re: Crontab not running?

On 09/06/12 18:02, Hersfold wrote:
> Hello,
> 
> I'm having some strange issues with my crontab. I've got this line in
> there, which has worked for months:
> 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar
> HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
> 
> Last night I replaced the jar in question with a new version (same name,
> location, etc.); since then, it doesn't appear that it's been running or
> even attempting to run. Usually when it fails to run I get an email, or
> at the very least something should be entered in that .out file;
> unfortunately I got no emails, and the file didn't exist, yet my bot
> didn't make any edits until I started it manually a short while ago. It
> should have run just now at 16:00 UTC, but again, no dice. Is there
> something wrong with cron where it's stopped functioning correctly?
> 
> ----
> User:Hersfold
> hersfoldwiki <at> gmail.com

Maybe the new HersfoldArbClerkBot.jar has some dependency which is only
fullfilled in the login server?
(thus it dies in the new version)

What's the point of that % character?

That redirection is also confusing, since cronsub would use
HersfoldAhrbClerkBot.out as output file, and you're also using a
redirection to the same file.
(Continue reading)

Hersfold Wikipedia | 9 Jun 2012 20:10
Picon

Re: Crontab not running?

No, as I said, I ran it manually just fine.

The % is part of the cronsub command, denoting the start of the command
to execute. It's documented on the TS wiki.

The redirection has never caused issues before.

----
User:Hersfold
hersfoldwiki <at> gmail.com

Sent from my Windows Phone
From: Platonides
Sent: 6/9/2012 13:31
To: toolserver-l <at> lists.wikimedia.org
Subject: Re: [Toolserver-l] Crontab not running?
On 09/06/12 18:02, Hersfold wrote:
> Hello,
>
> I'm having some strange issues with my crontab. I've got this line in
> there, which has worked for months:
> 0 */2 * * * cronsub -s HersfoldArbClerkBot % java -jar
> HersfoldArbClerkBot.jar > HersfoldArbClerkBot.out
>
> Last night I replaced the jar in question with a new version (same name,
> location, etc.); since then, it doesn't appear that it's been running or
> even attempting to run. Usually when it fails to run I get an email, or
> at the very least something should be entered in that .out file;
> unfortunately I got no emails, and the file didn't exist, yet my bot
> didn't make any edits until I started it manually a short while ago. It
(Continue reading)


Gmane