@lain What? ... i've got the same issue over and over in the context of SSL certs renewal (LetsEncrypt certbot)...
After some reading about it...looks like cron runs on particular/specific environment variables.Who knows, what's going on here...
PS: umh..may i just stop using cron for this purpose?