certbot-lambda icon indicating copy to clipboard operation
certbot-lambda copied to clipboard

FileNotFoundError

Open yspreen opened this issue 2 years ago • 1 comments

I'm currently facing an issue with cert renewal from a lambda set up with this repo. This is the error I'm getting:

{
  "errorMessage": "[Errno 2] No such file or directory: '/tmp/certbot/config/archive/domain.com/cert1.pem' -> '/tmp/certbot/config/live/domain.com/cert.pem'",
  "errorType": "FileNotFoundError",
  "stackTrace": [
    [
      "/var/task/lambda_function.py",
      229,
      "lambda_handler",
      "update_symlinks(domain)"
    ],
    [
      "/var/task/lambda_function.py",
      32,
      "update_symlinks",
      "'/tmp/certbot/config/live/{}/{}.pem'.format(domain,k))"
    ]
  ]
}

any idea where this might come from?

yspreen avatar Apr 19 '22 04:04 yspreen

I found that the backup zip inside s3 is just empty. I deleted the file and also made the symlinking part silent on error because even if there is no zip file at all I got the same error during the symlink step

yspreen avatar Apr 19 '22 04:04 yspreen