Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EFS Mount Filesystem: connection reset by peer #151

Open
richardcalahan opened this issue Aug 8, 2021 · 0 comments
Open

EFS Mount Filesystem: connection reset by peer #151

richardcalahan opened this issue Aug 8, 2021 · 0 comments

Comments

@richardcalahan
Copy link

I've seen the same issue raised in various forums related to the creation of an EFS system on Beanstalk.

Including both the create efs and mount efs extensions in a single (initial) deployment consistently fails in the 'mount efs' script with:

mount.nfs4: Connection reset by peer

Various people point out that it's an issue with the mount target and ec2 instances not sharing security groups, or at least not having granted the proper access to each others' security groups.

This is probably true, but after failure I've logged into the ec2 instance that attempted to run the 'mount efs' script, ran it manually from the /tmp directory, and it always succeeds. The 'mount efs' script just runs too soon (at least on Linux 2).

I simply changed the call from "commands" to "container_commands" here. At this point all initial deployments, including rebuilds, succeed. Seems it just need to mount a little later.

I suppose one could also run the mount-efs.sh as a predeploy platform hook. In theory that would happen around the same time.

Anyhow, perhaps the docs should be updated? (Or maybe im just missing it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant