Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
perl errors from cron job [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Mar 16, 2015 6:17 pm    Post subject: perl errors from cron job [SOLVED] Reply with quote

Hi all - suddenly (I don't know which update caused this) I am
getting perl errors from a cron job which is running snapback2

Here is the email from cronie:

Quote:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "",
LC_TIME = "en_IM.UTF-8",
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.utf8").


If I run the job from konsole as the cron user or root I do not get
these errors.

Anyone know the reason / have a fix? TIA
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)


Last edited by albright on Tue Mar 17, 2015 12:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Mar 16, 2015 9:09 pm    Post subject: Reply with quote

Looks like either your cron daemon's initscript isn't loading /etc/profile or cron itself is wiping out the environment, either way you'll have to do that manually.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Mar 17, 2015 12:06 pm    Post subject: Reply with quote

thanks ... what fixed it was adding

Quote:
LANG=en_US.UTF-8


to /etc/environment

don't know what caused the change tho'
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum