Deploying Rails 4.1 for AWS Failed to Precompile Assets

I know this sounds noob, but I can't figure out what is wrong.

I created an EB instance with the passenger, after the tutorial, the last step is to run

$ eb deploy 

What gives me

  INFO: Environment update is starting. INFO: Deploying new version to instance(s). ERROR: [Instance: i-71f70593] Command failed on instance. Return code: 137 Output: (TRUNCATED)... /var/app/ondeck/public/assets/priorizations/simplified/upper-5154a5b0c3e6cbf5463df08c05ab0bb4.png I, [2015-09-21T23:00:17.233813 #26607] INFO -- : Writing /var/app/ondeck/public/assets/application-ea5935c63d274c4625db69541c62d788.js Killed (core dumped). Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI. INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. ERROR: Unsuccessful command execution on instance id(s) '*****'. Aborting the operation. ERROR: Failed to deploy application. 

There is nothing interesting in the file / var / log / eb -activity.log (I think)

Can someone help me please?

Observation: the project is local to the hero.

+5
source share
1 answer

I also had the same exact error ( Killed (core dumped) ) during resource precompilation. For me it was not intermittent - I would always receive it every time.

Increasing the size of the EC2 instance fixed the problem for me. I suspect that memory was a lack of resources - a 100% processor during pre-compilation was never a problem for me.

+2
source

Source: https://habr.com/ru/post/1231976/


All Articles