Ankur Kumar
2014-Jun-30 08:05 UTC
Whenever crontab execution failure on AWS EC2 deployment
I am using whenever gem and I defined 'whenever crontab execution'
command
in .ebextensions folder for AWS EC2 instance.
-RAILS_ROOT/.ebextensions/whenever_task.config
container_commands:
20whenever_task:
command: bundle exec rake whenever --update-crontab --set
environment=production
leader_only: true
The deployment on AWS fails because of following error:
-EC2_ROOT/var/log/eb-tools.log
2014-06-30 00:42:46,257 [INFO] (22990 MainThread)
[directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script
succeeded.
2014-06-30 00:43:58,172 [INFO] (22944 MainThread) [command.py-130] [root
command execute] Command returned: (code: 1, stdout: *Error occurred during
build: Command 20whenever_task failed*
, stderr: None)
2014-06-30 00:43:58,174 [DEBUG] (22944 MainThread) [commandWrapper.py-60]
[root commandWrapper main] Command result: {'status': 'FAILURE',
'results':
[{'status': 'FAILURE', 'config_sets':
['Infra-WriteRuntimeConfig',
'Infra-WriteApplication1', 'Infra-WriteApplication2',
'Infra-EmbeddedPreBuild', 'Hook-PreAppDeploy',
'Infra-EmbeddedPostBuild',
'Hook-EnactAppDeploy', 'Hook-PostAppDeploy'],
'returncode': 1, 'events':
[], 'msg': '*Error occurred during build: Command 20whenever_task
failed*\n'}],
'api_version': '1.0'}
Any help on this?
--
Regards,
Ankur
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CALSL1eMLMmw16J%3DjJuZmLutpz7Ni%2BktxPD0Me1w6Fb9mwfNMoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.