aws-samples / aws-samples/eb-locustio-sample

eb create error: FileMagic version

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
106
Forks
57
PR merge metrics
No merged PRs in 30d

Description

When I run the `eb create` command specified in [this blog post](https://aws.amazon.com/blogs/devops/using-locust-on-aws-elastic-beanstalk-for-distributed-load-generation-and-testing/), Elastic Beanstalk throws this error:

```
Application deployment failed at 2019-10-30T07:09:40Z with exit status 1 and error: Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/01_configure_application.sh failed.

Executing: /usr/bin/unzip -o -d /var/app/staging /opt/elasticbeanstalk/deploy/appsource/source_bundle
FileMagic v0.7.1: compiled magic version [5.21] does not match with shared library magic version [5.34]
Archive: /opt/elasticbeanstalk/deploy/appsource/source_bundle
```

It [sounds like](https://unix.stackexchange.com/questions/460284/file-compiled-magic-version-534-does-not-match-with-shared-library-magic-vers) it's an issue with a recent version of FileMagic, but I'm afraid that I'm not familiar enough with Ruby or python to know exactly what's wrong. Any tips?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the `eb create` command from the linked AWS blog post and inspect the Elastic Beanstalk deployment hook output, especially the `unzip` and FileMagic version mismatch. Done means the sample deploys successfully without the reported `01_configure_application.sh` failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python, ruby
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.