{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/curator/issues/151","labels_url":"https://api.github.com/repos/elastic/curator/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/elastic/curator/issues/151/comments","events_url":"https://api.github.com/repos/elastic/curator/issues/151/events","html_url":"https://github.com/elastic/curator/issues/151","id":40888264,"number":151,"title":"Curator cronjob not running","user":{"login":"exklamationmark","id":1295869,"avatar_url":"https://avatars.githubusercontent.com/u/1295869?v=3","gravatar_id":"","url":"https://api.github.com/users/exklamationmark","html_url":"https://github.com/exklamationmark","followers_url":"https://api.github.com/users/exklamationmark/followers","following_url":"https://api.github.com/users/exklamationmark/following{/other_user}","gists_url":"https://api.github.com/users/exklamationmark/gists{/gist_id}","starred_url":"https://api.github.com/users/exklamationmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exklamationmark/subscriptions","organizations_url":"https://api.github.com/users/exklamationmark/orgs","repos_url":"https://api.github.com/users/exklamationmark/repos","events_url":"https://api.github.com/users/exklamationmark/events{/privacy}","received_events_url":"https://api.github.com/users/exklamationmark/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-22T08:24:47Z","updated_at":"2015-03-31T21:15:35Z","closed_at":"2014-08-22T09:06:14Z","body":"Hi, \r\n\r\nThis sounds a bit dumb, but I don't seem to be able to run curator on as cronjob. I 've already checked out <https://github.com/elasticsearch/curator/pull/87> and <https://github.com/elasticsearch/curator/issues/121>\r\n\r\nMy crontab (for `root`) looks like this:\r\n```\r\n$: crontab -l\r\n*/1 * * * * /usr/local/bin/curator bloom --older-than 2 &>> /var/log/opt/curator.log\r\n*/1 * * * * /usr/local/bin/curator optimize --older-than 2 &>> /var/log/opt/curator.log\r\n*/1 * * * * /usr/local/bin/curator close --older-than 7 &>> /var/log/opt/curator.log\r\n*/1 * * * * /usr/local/bin/curator delete --older-than 14 &>> /var/log/opt/curator.log\r\n*/1 * * * * env > /tmp/cronenv\r\n\r\n```\r\n\r\n\r\nCron is running, so I suppose I should see something in `/var/log/opt/curator.log` after a while, but nothing appeared. I don't see the process while doing `ps` either. This make me suspect whether it's acutually running\r\n\r\nRunning the command manually works, however\r\n\r\n```\r\n$: /usr/local/bin/curator bloom --older-than 2 &>> /var/log/opt/curator.log\r\n```\r\n\r\ngives\r\n\r\n```\r\n$: cat /var/log/opt/curator.log \r\n2014-08-22 02:57:01,653 INFO      Job starting...\r\n2014-08-22 02:57:01,655 INFO      Beginning BLOOM operations...\r\n2014-08-22 02:57:01,659 INFO      logstash-2014.08.21 is within the threshold period (2 days).\r\n2014-08-22 02:57:01,659 INFO      logstash-2014.08.22 is within the threshold period (2 days).\r\n2014-08-22 02:57:01,659 INFO      DISABLE BLOOM FILTER index operations completed.\r\n2014-08-22 02:57:01,659 INFO      Done in 0:00:00.010454.\r\n```\r\n\r\nI logged my cron env when i run them too, which is\r\n\r\n```\r\nLANGUAGE=en_US:\r\nHOME=/root\r\nLOGNAME=root\r\nPATH=/usr/bin:/bin\r\nLANG=en_US\r\nSHELL=/bin/sh\r\nPWD=/root\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/curator/issues/comments/88252653","html_url":"https://github.com/elastic/curator/issues/151#issuecomment-88252653","issue_url":"https://api.github.com/repos/elastic/curator/issues/151","id":88252653,"user":{"login":"sjdirect","id":3812834,"avatar_url":"https://avatars.githubusercontent.com/u/3812834?v=3","gravatar_id":"","url":"https://api.github.com/users/sjdirect","html_url":"https://github.com/sjdirect","followers_url":"https://api.github.com/users/sjdirect/followers","following_url":"https://api.github.com/users/sjdirect/following{/other_user}","gists_url":"https://api.github.com/users/sjdirect/gists{/gist_id}","starred_url":"https://api.github.com/users/sjdirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjdirect/subscriptions","organizations_url":"https://api.github.com/users/sjdirect/orgs","repos_url":"https://api.github.com/users/sjdirect/repos","events_url":"https://api.github.com/users/sjdirect/events{/privacy}","received_events_url":"https://api.github.com/users/sjdirect/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T21:15:35Z","updated_at":"2015-03-31T21:15:35Z","body":"I had the same issue with crontab. Turns out crontab only allows so many characters in the command. Otherwise it truncates the command and tries to run it anyway. My solution was to have the crontab call a bash file that runs the curator command. Then everything starting working."}}