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

Insufficient Disk Space for a plan causes obtuse failures #1047

Open
dbolack opened this issue May 22, 2020 · 4 comments
Open

Insufficient Disk Space for a plan causes obtuse failures #1047

dbolack opened this issue May 22, 2020 · 4 comments
Labels

Comments

@dbolack
Copy link

dbolack commented May 22, 2020

We run our atlantis instance on a (now clear too) small AWS instance. As we have multiple sets of states being managed and use private github repo for modules, when might have a much larger cache and plan scratch space than most.

We have found that when dis space is close enough to full we end up getting plan failures that frankly, make no sense, and some form of corruption in the plugin cache. The only time there was a clue was when a provider needed to be grabbed for the plan.

I'm not entirely certain how to describe reproducing other than to say full up the disk and run a big plan with multiple providers,

Example error:

running "/usr/local/bin/terraform plan -input=false -refresh -no-color -out \"/home/ec2-user/.atlantis/repos/enthought/terraform/12345/default/silos/projectname/silos::projectname-default.tfplan\" -var-file /home/ec2-user/tfvars/jumpcloud.tfvars" in "/home/ec2-user/.atlantis/repos/enthought/terraform/12345/default/silos/projectname": exit status 1

Error: Failed to instantiate provider "aws" to obtain schema: fork/exec /home/ec2-user/.atlantis/repos/enthought/terraform/12345/default/silos/projectname/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.63.0_x4: permission denied
@lkysow
Copy link
Member

lkysow commented May 26, 2020

Hmm. I'm not sure how best to deal with this in Atlantis. I don't think it makes sense to build disk space checking into Atlantis. I think this is best dealt with via your own health checking.

@grimm26
Copy link
Contributor

grimm26 commented Jul 20, 2020

Could we at least have a status or healthcheck endpoint that would report available disk and that atlantis can run? Or just add available disk to the /status output?

@lkysow
Copy link
Member

lkysow commented Jul 20, 2020

Sure, adding it to the /status endpoint makes sense.

@nitrocode
Copy link
Member

nitrocode commented Jan 13, 2024

As a workaround, this pre_workflow_hook has been helping me keep my volumes clean

#3238 (comment)

@dosubot dosubot bot added the Stale label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants