I am using Whenever gem for scheduling jobs. But when my job get executed it raises Jan 3 16:05:01 Ubuntu-1604-xenial-64-minimal CRON[17544]: (CRON) error (create tmpfile) this error.

2

There are 2 best solutions below

1
On BEST ANSWER

Try:

  1. umount /tmp or umount overflow
  2. restart server

If still problem occurs then please restart you machine once.

0
On

Actually main reason was same suggested by @jyoti. My tmp folder was out of memory. And this happens often with servers as we never reboot them. So just reboot your server and your /tmp will automatically cleared.