cron yum gives different result than running in ssh

gate2vn

Verified User
Joined
Nov 9, 2004
Messages
489
Location
Oslo
I have setup daily cron in crontab like this:
Code:
1 2 * * * yum update -y
Sometimes, I get warning:
Code:
Not using downloaded cloudlinux-imunify360/repomd.xml because it is older than what we have:
  Current   : Mon May 22 15:47:57 2023
  Downloaded: Mon May 22 15:47:42 2023

Then I logg in ssh and run "yum update" manually, the warning is not appearing. Then next day, cron still gives me that warning. And repeatedly at least a week. Searching on the Internet, I see several people also have the same issue: "yum update" in ssh never gives out warning, but cron does.

I contacted CloudLinux. But since warning is not there when running "yum update" manually, and they said they only have one report for that, they don't have enough info for supporting further.

I know that warning can "be fixed" by clearing yum metadata. But I want to find out the reason to avoid the issue happening again.
Any idea? Thanks.
 
Back
Top